/* ==========================================================================
   Fran Projekt – style.css
   --------------------------------------------------------------------------
   SCHRIFTEN
   - Überschriften: "Outfit" – geometrische Sans-Serif. Runde, klare Formen
     passen zum linearen Monogramm-Logo, ohne verspielt zu wirken.
   - Fließtext:     "Inter" – neutrale, sehr gut lesbare Sans-Serif.

   DSGVO: Die Schriften werden LOKAL vom eigenen Server geladen, nicht über das
   Google-Fonts-CDN (Einbindung über Google-Server ist in DE abmahnrelevant,
   vgl. LG München I, 20.01.2022). Einmalig von Google Fonts heruntergeladen
   (Variable Fonts, Zeichensatz "latin" inkl. ä ö ü ß à è ì ò ù):
     fonts/outfit-variable.woff2
     fonts/inter-variable.woff2
   Lizenz: SIL Open Font License 1.1 (kommerzielle Nutzung erlaubt).
   Fehlen die Dateien, greift automatisch die System-Schrift (Seite bleibt nutzbar).

   FARBEN
   - Basis: Weiß + warmes Off-White für abwechselnde Sektionen
   - Schwarz: #111 – entspricht dem Schwarz des Logos
   - Akzent: Terrakotta #A65A3A – erinnert an gebranntes/gelasertes Holz
     (die Brandkante einer Lasergravur), warm, aber gedämpft genug, um den
     minimalistischen Look nicht zu stören. Kontrast auf Weiß ≈ 5:1 (WCAG AA),
     daher auch für Text und Buttons geeignet.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --bg: #ffffff;
  --surface: #faf8f6;        /* warmes Off-White */
  --ink: #111111;            /* Logo-Schwarz */
  --ink-soft: #3d3d3d;
  --muted: #6a6a6a;
  --line: #e7e2dd;
  --accent: #a65a3a;         /* Terrakotta – Akzentfarbe */
  --accent-hover: #8c4a2e;
  --accent-tint: #f4ebe5;
  --error: #b42318;
  --success: #2f6b3a;

  /* Typografie */
  --font-head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --gutter: 16px;
  --max: 1160px;
  --radius: 4px;
  --header-h: 64px;          /* Header-Höhe nach dem Scrollen (kompakt) */
  --header-h-top: 84px;      /* Header-Höhe ganz oben auf der Seite (großes Logo) */
  --logo-top: 68px;          /* Logo ganz oben */
  --logo-small: 46px;        /* Logo nach dem Scrollen */
  --section-y: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 104px; --header-h: 72px; --header-h-top: 116px; --logo-top: 100px; --logo-small: 54px; }
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* Startseite + Kategorieseiten (Header mit id="top", schrumpft beim Scrollen):
   fest positioniert, der Platz für den großen Header ist dauerhaft reserviert.
   So verschiebt das Schrumpfen den Inhalt nicht (kein Layout-Shift → Core Web Vitals / CLS). */
.site-header#top { position: fixed; left: 0; right: 0; }
.site-header#top ~ main { margin-top: var(--header-h-top); }
/* Ohne JavaScript (wird über assets/js-check.js vor dem ersten Zeichnen entfernt): normal im Fluss */
.no-js .site-header#top { position: sticky; }
.no-js .site-header#top ~ main { margin-top: 0; }
/* Ganz oben: hoher Header mit großem Logo. Beim Scrollen (Klasse .is-scrolled, gesetzt in script.js)
   schrumpfen Header und Logo weich auf die kompakte Größe. */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h-top); transition: height .3s ease; }
.site-header.is-scrolled .header-inner { height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
/* Das Logo ist ein feiner Schriftzug im Kreis – braucht Größe, um lesbar zu bleiben */
.brand-logo { width: var(--logo-top); height: var(--logo-top); object-fit: contain; transition: width .3s ease, height .3s ease; }
.site-header.is-scrolled .brand-logo { width: var(--logo-small); height: var(--logo-small); }
.brand-name { font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: .02em; transition: font-size .3s ease; }
.site-header.is-scrolled .brand-name { font-size: 1.125rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 1.5px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile: Navigation als Panel unter dem Header */
.site-nav {
  /* absolute statt fixed: backdrop-filter am Header würde fixed-Kinder einschließen */
  position: absolute; left: 0; right: 0; top: 100%;
  /* volle Bildschirmhöhe; der Teil unterhalb des Bildschirms wird per padding-bottom ausgeglichen,
     damit es bei großem und kleinem Header passt */
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  padding: 24px var(--gutter) calc(32px + var(--header-h-top));
  display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  pointer-events: none; /* geschlossenes Menü darf nie Klicks auf Formularfelder abfangen */
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s, transform .2s; }
.nav-list a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 1.375rem; text-decoration: none;
}
/* Ohne JavaScript: Menü immer sichtbar unter dem Logo */
@media (max-width: 899px) {
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; }
  .no-js .site-nav { position: static; height: auto; width: 100%; padding: 0 0 16px; visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
}

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); width: max-content; }
.lang-btn {
  min-width: 44px; height: 40px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--muted);
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn[aria-pressed="true"] { color: var(--ink); background: var(--surface); }
.lang-btn:hover { color: var(--ink); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    /* height: auto ist wichtig – sonst behält die Leiste die Bildschirmhöhe des Mobilmenüs
       und liegt unsichtbar über dem Seiteninhalt (blockierte die Formularfelder). */
    position: static; height: auto; padding: 0; background: none;
    flex-direction: row; align-items: center; gap: 32px;
    visibility: visible; opacity: 1; transform: none; overflow: visible;
    pointer-events: auto; transition: none;
  }
  .nav-list { display: flex; gap: 28px; }
  .nav-list a {
    padding: 6px 0; border: 0; font-family: var(--font-body); font-size: .9375rem; color: var(--ink-soft);
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
    transition: background-size .25s, color .2s;
  }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
  .lang-btn { height: 32px; min-width: 38px; }
}

/* ---------------------------------------------------------------- Shared section */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); margin-bottom: 16px; }
.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.0625rem; color: var(--ink-soft); }
@media (min-width: 768px) { .lead { font-size: 1.1875rem; } }
.fineprint { font-size: .8125rem; color: var(--muted); }

.grid { display: grid; gap: 20px; }

/* ---------------------------------------------------------------- Image placeholders */
/* Fehlt ein Foto, zeigt .media einen ruhigen Platzhalter: Logo + „Foto folgt“ (Text aus data-soon,
   übersetzt über data-i18n-soon). Der geplante Dateiname steht weiterhin in data-ph und img/LEGGIMI.txt. */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--accent-tint);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { display: none; }
.media.is-missing::before {
  content: ""; position: absolute; left: 50%; top: 44%;
  width: 34%; max-width: 132px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("assets/logo.svg") center / contain no-repeat;
  opacity: .22;
}
.media.is-missing::after {
  content: attr(data-soon);
  position: absolute; left: 0; right: 0; bottom: 14%; text-align: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-hover); opacity: .75;
}

/* ---------------------------------------------------------------- Hero */
.hero { padding: 40px 0 var(--section-y); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 4rem); font-weight: 400; margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-actions .btn { flex: 1 1 200px; }
.materials { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--muted); }
.materials li { position: relative; }
.materials li + li::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateY(-50%);
}
.hero-media { aspect-ratio: 4 / 5; border-radius: var(--radius); max-height: 70vh; }

@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-media { max-height: none; }
}

/* ---------------------------------------------------------------- Portfolio */
.portfolio-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .25s; }
.card:hover { border-color: #cfc7bf; transform: translateY(-2px); }
/* Kategorie-Karten (Startseite): ganze Karte ist ein Link zur Kategorieseite */
.cat-card { position: relative; }
.cat-card .media { aspect-ratio: 3 / 2; }

/* Kategorie-Icons (Lineart, Terrakotta) mit Zeichen-Effekt.
   Jeder Pfad hat pathLength="1" → stroke-dasharray/-offset 1 = „noch nicht gezeichnet“.
   script.js setzt .is-drawn, sobald die Karte sichtbar wird (und erneut beim Hover). */
.cat-media { display: grid; place-items: center; }
.cat-icon { width: 46%; height: 70%; color: var(--accent); overflow: visible; }
/* Strich 1 + Lücke 2, Start knapp außerhalb des Pfads – so bleiben vor dem Zeichnen keine runden Linienenden als Punkte sichtbar */
html:not(.no-js) .cat-icon path { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.cat-icon.is-drawn path {
  animation: cat-draw var(--dur, .9s) cubic-bezier(.45, .05, .35, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes cat-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .cat-icon path { stroke-dashoffset: 0 !important; }
}
.cat-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.cat-card h3 { margin-bottom: 14px; }
.cat-link { color: inherit; text-decoration: none; }
.cat-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* Klickfläche = ganze Karte */
.cat-link:focus-visible { outline: none; }
.cat-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-more { margin-top: auto; font: 500 .9375rem var(--font-head); color: var(--accent); transition: color .2s; }
.cat-card:hover .cat-more { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.cat-list { display: grid; gap: 7px; margin-bottom: 20px; }
.cat-list li { position: relative; padding-left: 16px; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); }
.cat-list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
/* Kategorieseiten: Produktkarten */
.breadcrumb { margin-bottom: 28px; font-size: .8125rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }
.cat-page { padding-top: 40px; }
.cat-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }

.product-grid { grid-template-columns: 1fr; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
/* Produktfotos im Format 3:2 (wie das Foto-Preset), Hintergrund #F4EBE5 – werden nie beschnitten */
.product-card .media { aspect-ratio: 3 / 2; }
.product-card .media img { object-fit: contain; }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.product-name { font-size: 1.1875rem; margin-bottom: 8px; }
.product-card .card-body > p { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 16px; }
.specs { display: grid; gap: 0; margin: 0 0 20px; font-size: .875rem; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.cat-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 500 .9375rem var(--font-head); color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.cat-cta:hover { color: var(--accent-hover); border-bottom-color: currentColor; }
.cat-note { margin-top: 28px; }

.cat-more-inner { display: grid; gap: 48px; }
@media (min-width: 900px) { .cat-more-inner { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; } }
.idea-band h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 12px; }
.idea-band p { color: var(--ink-soft); margin-bottom: 24px; max-width: 520px; }
.other-cats ul { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: .875rem; color: var(--ink); text-decoration: none; transition: border-color .2s;
}
.chip-link:hover { border-color: var(--ink); }
.other-cats .legal-back { margin-top: 24px; }

/* Über uns */
.about-page { padding-top: 40px; }
.about-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.about-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; } }
.about-media { aspect-ratio: 3 / 4; border-radius: var(--radius); width: 100%; max-width: 420px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: grid; gap: 16px; font-size: 1.0625rem; color: var(--ink-soft); }
.about-text p { max-width: 620px; }
@media (min-width: 900px) { .about-grid.no-photo { grid-template-columns: minmax(0, 720px); } }

/* „Work in progress“ – Kategorie in Vorbereitung (Seite und Karte auf der Startseite) */
.wip-badge {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover);
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.wip-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: wip-pulse 1.8s ease-in-out infinite; }
@keyframes wip-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.cat-card-wip .wip-badge { margin-bottom: 12px; }
.cat-wip { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 20px; }

.wip-panel {
  display: grid; gap: 32px; align-items: center;
  padding: 36px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
@media (min-width: 800px) { .wip-panel { grid-template-columns: 240px 1fr; gap: 56px; padding: 56px; } }
.wip-visual { width: 160px; margin: 0 auto; }
@media (min-width: 800px) { .wip-visual { width: 220px; } }
.wip-visual svg { width: 100%; height: auto; overflow: visible; }
.wip-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.wip-heart {
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 240; stroke-dashoffset: 240; animation: wip-draw 4s ease-in-out infinite;
}
.wip-beam { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: .5; }
.wip-dot { fill: var(--accent); animation: wip-pulse 1.2s ease-in-out infinite; }
@keyframes wip-draw { 0% { stroke-dashoffset: 240; } 60%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -240; } }
@media (prefers-reduced-motion: reduce) { .wip-heart { stroke-dashoffset: 0; } }
.wip-copy { display: grid; gap: 16px; justify-items: start; }
.wip-copy h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); }
.wip-copy p { color: var(--ink-soft); max-width: 560px; }
.wip-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.wip-actions .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .wip-actions .btn { flex: 0 0 auto; } }
.wip-soon { margin-top: 40px; }
.wip-soon .tag-list { margin-bottom: 0; }

/* Abschlusskarte „Ihre Idee ist nicht dabei?" */
.idea-card {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(168, 90, 58, .45) 0%, rgba(168, 90, 58, 0) 55%), var(--ink);
  border: 0; border-left: 6px solid var(--accent);
}
.idea-card:hover { border-color: var(--accent); }
.idea-card .card-body { display: grid; gap: 24px; flex: 1; padding: 36px 28px; }
.idea-main { display: grid; gap: 12px; justify-items: start; }
.idea-icon { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idea-card .eyebrow { color: #e3a98c; margin: 0; }
.card.idea-card h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.12; margin: 0; color: #fff; }
.card.idea-card .idea-text { color: #e2e2e2; font-size: 1.0625rem; max-width: 560px; }
.idea-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.idea-points li { position: relative; padding-left: 32px; color: #f2f2f2; }
.idea-points li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.idea-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.idea-actions .btn { flex: 1 1 220px; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
/* Desktop: über die ganze Zeile – Text links, Vorteile und Buttons rechts */
@media (min-width: 960px) {
  .portfolio-grid .idea-card { grid-column: 1 / -1; margin-top: 16px; }
  .portfolio-grid .idea-card .card-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 28px 56px; padding: 48px 56px;
  }
  .portfolio-grid .idea-main { grid-row: span 2; }
  .idea-actions .btn { flex: 0 0 auto; }
}
.card-body { padding: 20px; }
.card-tag { display: inline-block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { font-size: .9375rem; color: var(--ink-soft); }


/* ---------------------------------------------------------------- Ablauf (gilt für alle Anfragen) */
/* Mobil: Schritte untereinander mit senkrechter Linie · Desktop: nebeneinander mit waagerechter Linie */
.flow { display: grid; gap: 28px; margin: 8px 0 40px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.flow-step { position: relative; padding-left: 64px; }
.flow-num {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 50%; background: var(--bg);
  font: 500 .875rem var(--font-head); color: var(--accent);
}
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 50px; bottom: -24px; width: 1px; background: #d9cfc7;
}
@media (min-width: 900px) {
  .flow-step { padding-left: 0; padding-top: 68px; }
  .flow-step:not(:last-child)::before { left: 54px; right: -26px; top: 23px; bottom: auto; width: auto; height: 1px; }
}
.flow-step h3 { font-size: 1.125rem; margin-bottom: 6px; }
.flow-step p { font-size: .9375rem; color: var(--ink-soft); }
.flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.flow-actions .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .flow-actions .btn { flex: 0 0 auto; } }

/* ---------------------------------------------------------------- B2B (Beispiele für Unternehmen) */
.b2b-head { display: grid; gap: 28px 64px; align-items: end; margin-bottom: 40px; }
@media (min-width: 900px) { .b2b-head { grid-template-columns: 1.35fr 1fr; } }
.b2b-head .section-head { margin-bottom: 0; }
.b2b-audience .footer-title { margin-bottom: 12px; }
.b2b-audience .tag-list { margin-bottom: 0; }
.b2b-label { font: 600 .75rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.service-grid { grid-template-columns: 1fr; margin-bottom: 32px; gap: 16px; }
@media (min-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.service { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.service-icon { width: 32px; height: 32px; margin-bottom: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service h4 { font-family: var(--font-head); font-weight: 500; font-size: 1.125rem; line-height: 1.25; margin: 0 0 8px; }
.service p { font-size: .9375rem; color: var(--ink-soft); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag-list li { padding: 8px 14px; border-radius: 999px; background: var(--accent-tint); font-size: .875rem; color: var(--ink-soft); }
.custom-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.custom-actions .btn { flex: 1 1 280px; } /* schmale Bildschirme: Buttons untereinander */
@media (min-width: 900px) { .custom-actions .btn { flex: 0 0 auto; } }

/* ---------------------------------------------------------------- Kontakt / Formular */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } .contact-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.contact-direct { margin-top: 28px; display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-soft); }
.contact-direct a { color: var(--ink); text-underline-offset: 3px; }
.btn-whatsapp { margin-top: 24px; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 20px; min-width: 0; }
@media (min-width: 768px) { .form { padding: 40px; } }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 500; }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }

.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); border: 1px solid #d6d0ca; border-radius: var(--radius);
  font-size: 1rem; /* ≥16px verhindert Auto-Zoom auf iOS */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input[type="file"] { padding: 10px; cursor: pointer; font-size: .875rem; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166, 90, 58, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-hint { font-size: .8125rem; color: var(--muted); }
.field-error { font-size: .8125rem; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }

.field.check { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.field.check label { font-weight: 400; font-size: .875rem; color: var(--ink-soft); cursor: pointer; }
.field.check label a { color: var(--ink); text-underline-offset: 2px; }
.field.check .field-error { grid-column: 2; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .form-foot .btn { flex: 0 0 auto; } }

.form-status { font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error { padding: 12px 14px; border-radius: var(--radius); }
.form-status.is-success { background: #eef6ef; color: var(--success); }
.form-status.is-error { background: #fdf0ef; color: var(--error); }

.field.is-highlight input { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px rgba(166, 90, 58, .35); } 100% { box-shadow: 0 0 0 0 rgba(166, 90, 58, 0); } }

/* Honeypot – visuell und für Screenreader versteckt */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* ---------------------------------------------------------------- Bewertungen */
.reviews-head { display: grid; gap: 8px 48px; align-items: end; margin-bottom: 40px; }
.reviews-head .section-head { margin-bottom: 0; }
@media (min-width: 800px) { .reviews-head { grid-template-columns: 1fr auto; } }
.rating-summary { display: flex; align-items: center; gap: 16px; }
.rating-score { font: 500 3.5rem/1 var(--font-head); letter-spacing: -.02em; }
.rating-summary > span:last-child { display: grid; gap: 4px; }
.rating-meta { font-size: .875rem; color: var(--muted); }
.stars { color: #c98a2e; letter-spacing: 2px; font-size: 1.125rem; line-height: 1; }

.reviews-grid { grid-template-columns: 1fr; }
@media (min-width: 800px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.review-card {
  margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
}
.review-text { margin: 0; position: relative; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.review-text p { margin: 0; }
.review-text p + p { margin-top: .75em; }
.review-author { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9375rem; }
.review-author > span:last-child { display: grid; gap: 2px; }
.review-avatar {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 500 1rem var(--font-head);
}
.review-source, .review-lang { font-size: .8125rem; color: var(--muted); }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.reviews-actions .btn { flex: 1 1 240px; }
@media (min-width: 640px) { .reviews-actions .btn { flex: 0 0 auto; } }
.reviews-note { margin-top: 20px; max-width: 760px; }

/* ---------------------------------------------------------------- Footer */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 300px; }
.footer-brand .brand-logo { width: 88px; height: 88px; }
.footer-brand .brand-name { display: none; } /* großes Logo enthält den Namen bereits */
.footer-title { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer address, .footer-links { color: var(--ink-soft); line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.social { display: grid; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); display: grid; gap: 6px; }
.footer-vat { max-width: 760px; }

/* ---------------------------------------------------------------- Rechtsseiten */
.legal { padding: 48px 0 var(--section-y); }
.legal .container { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.375rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal-todo {
  padding: 16px 18px; margin-bottom: 32px;
  border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-tint);
  font-weight: 600; color: var(--accent-hover);
}
.legal-back { display: inline-block; margin-top: 40px; color: var(--accent); }
.legal-actions { margin-top: 24px; }
.error-page h1 { margin-bottom: 16px; }
.error-page .btn { margin-top: 24px; }
