/* ==========================================================================
   GASTROFUXX — fuxx.css (Redesign Juli 2026)
   Shared Shell + Komponenten für ALLE Seiten.
   Quelle: design/DESIGN-GUIDE-2026-07.md + startseite-design.html + kassensysteme-design.html
   Ersetzt werkstatt-shell.css / tabloid-landing.css (alte Dateien bleiben liegen,
   werden nur nicht mehr verlinkt).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS — Space Grotesk, SELBST GEHOSTET (kein Google-CDN, DSGVO).
   Google liefert Space Grotesk als Variable Font: EINE Datei deckt 400–700 ab.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --bg:         #fbfaf7;               /* Seitenhintergrund */
  --ink:        #1c1b18;               /* Text, dunkle Flächen (Footer, Teaser) */
  --fuxx:       #e8763a;               /* Akzent Orange: Logo, CTAs, Hover, Badges */
  --fuxx-dark:  #d0662e;               /* Hover auf Orange-Buttons */
  --fuxx-tint:  rgba(232, 118, 58, .12);  /* Orange-Tint (Icon-Boxen) */
  --fuxx-glow:  rgba(232, 118, 58, .16);  /* Badge-BG auf Ink */
  --muted:      #4a463f;               /* Sekundärtext */
  --faint:      #8b8375;               /* Tertiärtext, Captions */
  --line:       #e3ddd2;               /* Borders (kräftiger) */
  --line-soft:  #eee8dc;               /* Borders (Karten, Tabellen) */
  --panel:      #f3efe7;               /* Abgesetzte Sektionen, Tabellen-Header */
  --green:      oklch(0.55 0.13 145);  /* Zweitakzent Kategorien */
  --green-tint: oklch(0.68 0.17 145 / .12);
  --font:       'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --mono:       ui-monospace, Menlo, monospace;   /* Kategorie-Nummern, Captions */
  --radius-card:   16px;
  --radius-card-l: 18px;
  --radius-teaser: 22px;
  --pad-x: 56px;                       /* horizontales Seitenpadding (mobile: 20px) */
  --maxw:  1280px;
}

/* --------------------------------------------------------------------------
   3. BASIS
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--fuxx); }
img { max-width: 100%; height: auto; }

h1 { font-weight: 700; font-size: 56px; line-height: 1.06; letter-spacing: -.025em; margin: 0 0 20px; }
h2 { font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 20px; }

/* Zentrierter Seiten-Container: auf JEDER Sektion nutzen */
.fx-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* --------------------------------------------------------------------------
   4. SHELL: TRANSPARENZ-BAR
   -------------------------------------------------------------------------- */
.fx-transparenz {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 9px 20px;
  font-size: 12px;
  line-height: 1.4;
}
.fx-transparenz b { color: var(--fuxx); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. SHELL: HEADER
   -------------------------------------------------------------------------- */
.fx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;                     /* Nav wrappt auf schmalen Screens */
  padding-top: 22px;
  padding-bottom: 22px;
}
.fx-logo { display: flex; align-items: center; gap: 10px; }
.fx-logo-box {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--fuxx);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  flex: 0 0 auto;
}
.fx-wordmark { font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.fx-logo:hover .fx-wordmark { color: var(--fuxx); }

.fx-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}
.fx-nav a[aria-current="page"],
.fx-nav a.is-active { color: var(--fuxx); }

/* --------------------------------------------------------------------------
   6. BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.fx-btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fx-btn--primary { background: var(--ink); color: var(--bg); }
.fx-btn--primary:hover { background: var(--fuxx); color: #fff; }
.fx-btn--orange { background: var(--fuxx); color: #fff; }
.fx-btn--orange:hover { background: var(--fuxx-dark); color: #fff; }
.fx-btn--secondary { border: 1.5px solid var(--line); color: var(--ink); }
.fx-btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
/* dunkle Sekundär-Variante (Karten-CTA „Zum Angebot") */
.fx-btn--outline-ink { border: 1.5px solid var(--ink); color: var(--ink); padding: 12px; font-size: 13px; }
.fx-btn--outline-ink:hover { background: var(--ink); color: var(--bg); }
/* kompakte Karten-Variante */
.fx-btn--card { padding: 13px; font-size: 13px; border-radius: 11px; }
/* Header-CTA: Orange-Pill */
.fx-btn--cta {
  background: var(--fuxx);
  color: #fff;
  padding: 11px 20px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
}
.fx-btn--cta:hover { background: var(--fuxx-dark); color: #fff; }

/* Badge-Pill: heller Kontext (Hero „Für Neueröffnungen …") */
.fx-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 14px;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.fx-badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fuxx); flex: 0 0 auto; }
/* Badge-Pill auf Ink-Flächen (Dark-Teaser) */
.fx-badge-pill--dark {
  border: 0;
  background: var(--fuxx-glow);
  color: var(--fuxx);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. BREADCRUMB
   -------------------------------------------------------------------------- */
.fx-breadcrumb { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.fx-breadcrumb a:hover { color: var(--fuxx); }
.fx-breadcrumb .current { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   8. GRIDS & PANEL
   -------------------------------------------------------------------------- */
.fx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.fx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.fx-panel { background: var(--panel); }   /* abgesetzte Voll-Breite-Sektion; innen .fx-wrap nutzen */

/* --------------------------------------------------------------------------
   9. KARTEN
   -------------------------------------------------------------------------- */
.fx-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
}
/* Vergleichs-Karten (größerer Radius wie im Kassensystem-Design) */
.fx-card--compare { border-radius: var(--radius-card-l); padding: 26px 24px; gap: 14px; }
/* Testsieger: 2px Orange + Badge oben */
.fx-card--winner { border: 2px solid var(--fuxx); border-radius: var(--radius-card-l); position: relative; }
.fx-card-badge {
  position: absolute;
  top: -13px; left: 22px;
  background: var(--fuxx);
  color: #fff;
  border-radius: 99px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Karten-Innereien (Vergleichs-Karte) */
.fx-card-title { font-weight: 600; font-size: 19px; margin-top: 6px; }
.fx-card-score { font-weight: 700; font-size: 34px; }
.fx-card-score small { font-size: 15px; color: var(--faint); font-weight: 500; }
.fx-card-desc { font-size: 13px; line-height: 1.55; color: var(--muted); }
.fx-card-facts {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.fx-card-facts span { display: flex; justify-content: space-between; gap: 12px; }
.fx-card .fx-btn { margin-top: auto; }
/* Kategorie-Icon-Kachel (01–04, Mono-Nummer) */
.fx-card-num {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--fuxx-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 600; font-size: 15px;
  color: var(--fuxx);
  flex: 0 0 auto;
}
.fx-card-num--green { background: var(--green-tint); color: var(--green); }

/* --------------------------------------------------------------------------
   10. DARK-TEASER-BANNER
   -------------------------------------------------------------------------- */
.fx-dark-teaser {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-teaser);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.fx-dark-teaser h2,
.fx-dark-teaser .fx-dark-teaser-title {
  font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.02em;
  max-width: 560px; margin: 0;
}
.fx-dark-teaser .fx-badge-pill--dark { margin-bottom: 16px; }
.fx-dark-teaser .fx-btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   11. VERGLEICHSTABELLE
   Nutzung: <div class="fx-table"><table>…</table></div>
   Erste Datenspalte (Testsieger) bekommt th/td class="win".
   -------------------------------------------------------------------------- */
.fx-table {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card-l);
  overflow: hidden;
  overflow-x: auto;                    /* mobil horizontal scrollbar */
  -webkit-overflow-scrolling: touch;
}
.fx-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.fx-table thead th {
  background: var(--panel);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 14px 18px;
}
.fx-table thead th:first-child { padding-left: 22px; }
.fx-table thead th.win { color: var(--fuxx); }
.fx-table tbody td, .fx-table tbody th {
  font-size: 13.5px;
  font-weight: 400;
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
}
.fx-table tbody th, .fx-table tbody td:first-child { padding-left: 22px; color: var(--muted); }
.fx-table tbody td.win { font-weight: 600; }

/* --------------------------------------------------------------------------
   12. ARTIKEL-TYPOGRAFIE (Ratgeber / Blog)
   -------------------------------------------------------------------------- */
.fx-article {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.fx-article p { margin: 0 0 22px; }
.fx-article h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; margin: 44px 0 16px; }
.fx-article h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin: 34px 0 12px; }
.fx-article a { color: var(--fuxx); text-decoration: underline; text-underline-offset: 3px; }
.fx-article a:hover { color: var(--fuxx-dark); }
/* Buttons in Artikel-Karten: Link-Farbe/Unterstreichung der Artikel-Typo neutralisieren */
.fx-article a.fx-btn { text-decoration: none; }
.fx-article a.fx-btn--orange, .fx-article a.fx-btn--orange:hover { color: #fff; }
.fx-article a.fx-btn--primary { color: var(--bg); }
.fx-article a.fx-btn--primary:hover { color: #fff; }
.fx-article ul, .fx-article ol { margin: 0 0 22px; padding-left: 24px; }
.fx-article li { margin-bottom: 8px; }
.fx-article li::marker { color: var(--fuxx); font-weight: 600; }
.fx-article blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--fuxx);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.fx-article blockquote p:last-child { margin-bottom: 0; }
.fx-article img { border-radius: 14px; }
.fx-article figcaption,
.fx-article .caption { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 8px; }
.fx-article hr { border: 0; border-top: 1px solid var(--line-soft); margin: 36px 0; }
.fx-article table { font-size: 15px; }

/* --------------------------------------------------------------------------
   13. SHELL: FOOTER
   -------------------------------------------------------------------------- */
.fx-footer { background: var(--ink); color: var(--bg); margin-top: 72px; }
.fx-footer-inner {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.fx-footer-brand { max-width: 320px; }
.fx-footer-brand .fx-logo { margin-bottom: 14px; }
.fx-footer-brand .fx-logo-box { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.fx-footer-brand .fx-wordmark { font-size: 18px; color: var(--bg); }
.fx-footer-disclaimer { font-size: 13px; line-height: 1.6; opacity: .6; }
.fx-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; font-size: 13px; line-height: 2.2; }
.fx-footer-col h4 {
  font-weight: 600;
  margin: 0 0 6px;
  opacity: .5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.fx-footer-col a { display: block; color: var(--bg); }
.fx-footer-col a:hover { color: var(--fuxx); }
.fx-footer-bottom {
  border-top: 1px solid rgba(251, 250, 247, .1);
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  opacity: .4;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE ≤760px (harte Regel Nr. 7)
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --pad-x: 20px; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  .fx-header { gap: 16px; padding-top: 16px; padding-bottom: 16px; }
  .fx-nav { gap: 14px 18px; order: 3; width: 100%; }
  .fx-grid-2, .fx-grid-4 { grid-template-columns: 1fr; gap: 18px; }
  .fx-dark-teaser { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .fx-dark-teaser h2, .fx-dark-teaser .fx-dark-teaser-title { font-size: 24px; }
  .fx-footer-inner { flex-direction: column; gap: 32px; }
  .fx-footer-cols { gap: 32px; }
  .fx-article { font-size: 16px; }
  .fx-article h2 { font-size: 23px; }
}
