/* ==========================================================================
   Apimanufaktur — Studio-/Agentur-Front
   Gemeinsames Stylesheet für Landing-, Portfolio- und Detailseiten.

   Designidee: warmes, redaktionelles „Studio"-Gefühl statt generischer
   Baukasten-Optik. Bernstein-/Waben-Akzent aus dem favicon.svg, weiter-
   entwickelt zu einer eigenständigen Sprache:
   - Serifen-Display (System-Serifen) für Überschriften -> Handschrift/Charakter
   - System-Sans für Text/UI -> Ruhe und Lesbarkeit
   - Waben-Geometrie als wiederkehrendes Struktur-Motiv (Hex-Marker, Hex-Grid)
   - warmes Papierweiß / warmes Anthrazit statt kalter Grautöne
   Kein Build, keine externen Fonts — bewusst dependency-frei und offline-fest.
   ========================================================================== */

:root {
  /* Warme, redaktionelle Palette */
  --bg: #faf6ef;            /* warmes Papier */
  --bg-2: #f3ece0;          /* leicht abgesetzt */
  --surface: #ffffff;
  --surface-2: #fbf7f1;
  --border: #e7ddcd;
  --border-strong: #d8cbb4;

  --text: #1c1813;          /* warmes fast-schwarz */
  --text-soft: #433c31;
  --muted: #7a7060;

  --accent: #d97706;        /* amber-600 — Markenfarbe */
  --accent-strong: #b45309; /* amber-700 */
  --accent-bright: #f59e0b; /* favicon-Gelb */
  --accent-soft: #fdf3e3;   /* zarter Bernstein-Hauch */
  --accent-line: #f0c98a;

  --ink: #17130d;           /* dunkle „Studio"-Bänder */
  --ink-2: #211b12;
  --on-ink: #f3ece0;
  --on-ink-soft: #cdbfa6;
  --on-ink-muted: #9c8f78;

  --maxw: 1140px;
  --maxw-read: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 24, 19, .05), 0 4px 14px rgba(28, 24, 19, .05);
  --shadow: 0 2px 6px rgba(28, 24, 19, .06), 0 18px 40px rgba(28, 24, 19, .09);
  --shadow-lg: 0 30px 70px rgba(28, 24, 19, .16);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", "Fira Code", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110b;
    --bg-2: #1a160f;
    --surface: #1d1810;
    --surface-2: #241e14;
    --border: #322a1c;
    --border-strong: #453a26;

    --text: #f3ece0;
    --text-soft: #d7cdbb;
    --muted: #9c8f78;

    --accent: #f59e0b;
    --accent-strong: #fbbf24;
    --accent-bright: #fbbf24;
    --accent-soft: #241b0d;
    --accent-line: #6b4d1e;

    --ink: #0e0b07;
    --ink-2: #17120b;
    --on-ink: #f3ece0;
    --on-ink-soft: #cdbfa6;
    --on-ink-muted: #9c8f78;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .4);
    --shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent-bright); color: #17130d; }

/* Skip-Link (A11y) */
.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--accent); color: #fff; padding: .5rem .9rem;
  border-radius: 8px; z-index: 2000;
}
.skip-link:focus { left: .5rem; }

/* ==========================================================================
   Kopfzeile / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; color: var(--text);
  font-size: 1.08rem; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand .tld { color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border-strong);
  border-radius: 9px; padding: .4rem .55rem; cursor: pointer;
  color: var(--text); line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.6rem;
  font-size: .94rem;
}
.site-nav a { color: var(--text-soft); font-weight: 500; }
.site-nav a:hover { color: var(--accent-strong); text-decoration: none; }
.site-nav a.is-active { color: var(--text); }
.site-nav a.nav-cta {
  background: var(--accent); color: #fff;
  padding: .5rem .95rem; border-radius: 10px; font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--accent-strong); color: #fff; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--border); }
  .site-nav a.nav-cta { text-align: center; margin-top: .7rem; border-bottom: 0; }
}

/* ==========================================================================
   Sprach-Umschalter DE|EN
   ========================================================================== */
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
}
.lang-switch a { color: var(--text-soft); padding: .1rem .15rem; }
.lang-switch a:hover { color: var(--accent-strong); text-decoration: none; }
.lang-switch a.is-active { color: var(--accent-strong); }
.lang-switch .sep { color: var(--border-strong, var(--border)); opacity: .85; }

/* ==========================================================================
   WIP-Hinweisband
   ========================================================================== */
.wip-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  color: var(--text-soft);
  font-size: .82rem; text-align: center;
  padding: .5rem 1.5rem;
}
.wip-banner b { color: var(--accent-strong); }

/* ==========================================================================
   Bausteine
   ========================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.5rem; }
.section { padding: 5rem 0; }
.section.tight { padding: 3.5rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700;
  color: var(--accent-strong); margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 16px; height: 14px;
  background: var(--accent);
  -webkit-mask: var(--hex) center / contain no-repeat;
  mask: var(--hex) center / contain no-repeat;
}
:root { --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M5 1h10l5 8-5 8H5L0 9z'/%3E%3C/svg%3E"); }

h1, h2, h3 { font-family: var(--serif); color: var(--text); font-weight: 600; }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .8rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans);
  font-weight: 600; font-size: .96rem;
  padding: .8rem 1.35rem; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-ink { background: var(--accent-bright); color: #17130d; }
.btn-ink:hover { background: #fff; color: #17130d; }
.btn-outline-ink {
  background: transparent; color: var(--on-ink);
  border-color: color-mix(in srgb, var(--on-ink) 35%, transparent);
}
.btn-outline-ink:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Tag/Badge */
.tag {
  display: inline-block; padding: .22rem .7rem;
  border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid var(--accent-line);
}
.tag.plain {
  background: transparent; color: var(--muted);
  border-color: var(--border-strong);
}
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Status-Pille */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: .24rem .7rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.status.progress { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-soft); }
@media (prefers-color-scheme: dark) {
  .status.live { background: #0f2417; border-color: #1f6b3a; color: #86efac; }
}

/* ==========================================================================
   HERO (dunkles Studio-Band mit Waben-Grid)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
}
.hero::before { /* Waben-Grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23f59e0b' stroke-width='1.1' stroke-opacity='0.11'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z'/%3E%3Cpath d='M28 48l24 14v28L28 104 4 90V62z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 96px;
  -webkit-mask: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 62%);
  mask: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 62%);
}
.hero::after { /* warmer Bernstein-Glow */
  content: ""; position: absolute; z-index: -1;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -12vw; top: -18vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.28) 0%, rgba(245,158,11,0) 70%);
  filter: blur(6px);
}
.hero .wrap { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .74rem; font-weight: 700; color: var(--accent-bright);
  margin: 0 0 1.4rem;
}
.hero-eyebrow::before {
  content: ""; width: 18px; height: 16px; background: var(--accent-bright);
  -webkit-mask: var(--hex) center / contain no-repeat;
  mask: var(--hex) center / contain no-repeat;
}
.hero h1 {
  color: var(--on-ink);
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.06; letter-spacing: -.025em;
  margin: 0 0 1.3rem; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lead {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--on-ink-soft); max-width: 56ch; margin: 0 0 2.2rem;
  line-height: 1.6;
}
.hero .btn-row { margin-bottom: 2.6rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 14%, transparent);
  font-size: .9rem; color: var(--on-ink-muted);
}
.hero-meta b { color: var(--on-ink); font-weight: 600; }

/* ==========================================================================
   Leistungen
   ========================================================================== */
.svc-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.svc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.svc-ico {
  width: 46px; height: 46px; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  /* Waben-Form */
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.svc-ico svg { width: 22px; height: 22px; }
.svc h3 { font-size: 1.22rem; margin: 0 0 .55rem; letter-spacing: -.01em; }
.svc p { margin: 0 0 1rem; color: var(--muted); font-size: .96rem; }
.svc ul { margin: 0; padding: 0; list-style: none; }
.svc li {
  position: relative; padding-left: 1.35rem; margin: .3rem 0;
  font-size: .9rem; color: var(--text-soft);
}
.svc li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 8px; background: var(--accent);
  -webkit-mask: var(--hex) center / contain no-repeat;
  mask: var(--hex) center / contain no-repeat;
}

/* ==========================================================================
   Leistungen als Waben-Raster (6 Kompetenz-Waben)
   Baut auf der bestehenden Hex-Sprache auf (Hex-Icons, Hex-Bullets, --hex).
   ========================================================================== */
.hive-section { position: relative; overflow: hidden; }
.hive-section::before {              /* dezenter Waben-Teppich im Hintergrund */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23d97706' stroke-width='1.1' stroke-opacity='0.13'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z'/%3E%3Cpath d='M28 48l24 14v28L28 104 4 90V62z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 96px;
  -webkit-mask: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 72%);
  mask: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 72%);
}
.hive-section .wrap { position: relative; z-index: 1; }

.hive {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
@media (min-width: 960px) { .hive { grid-template-columns: repeat(3, 1fr); } }

.wabe {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.wabe:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.wabe::after {                        /* großes, sehr dezentes Waben-Signet */
  content: ""; position: absolute; right: -28px; top: -28px;
  width: 132px; height: 132px; opacity: .05; pointer-events: none;
  background: var(--accent);
  -webkit-mask: var(--hex) center / contain no-repeat;
  mask: var(--hex) center / contain no-repeat;
}
.wabe-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .95rem; }
.wabe-ico {                           /* Wabe als Kopf-Marker der Zelle */
  flex: none; width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.wabe-ico svg { width: 25px; height: 25px; }
.wabe-head h3 { font-size: 1.16rem; margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.wabe > p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.wabe ul { margin: 0; padding: 0; list-style: none; }
.wabe li {
  position: relative; padding-left: 1.35rem; margin: .3rem 0;
  font-size: .89rem; color: var(--text-soft);
}
.wabe li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 8px; background: var(--accent);
  -webkit-mask: var(--hex) center / contain no-repeat;
  mask: var(--hex) center / contain no-repeat;
}

/* Alternierendes Band */
.band { background: var(--bg-2); border-block: 1px solid var(--border); }
.band-ink { background: var(--ink-2); color: var(--on-ink); }
.band-ink h2, .band-ink h3 { color: var(--on-ink); }
.band-ink .section-head p { color: var(--on-ink-soft); }

/* ==========================================================================
   Portfolio-Karten
   ========================================================================== */
.work-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.work {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
a.work:hover { text-decoration: none; transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.work:hover .work-shot img { transform: scale(1.04); }
.work-shot .status { position: absolute; top: .85rem; left: .85rem; backdrop-filter: blur(6px); }

/* Placeholder-Kachel (kein echtes Bild vorhanden — z. B. habiterra) */
.work-shot.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(245,158,11,.14), transparent 60%),
    var(--ink);
}
.work-shot.placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='68' viewBox='0 0 40 68'%3E%3Cg fill='none' stroke='%23f59e0b' stroke-width='1' stroke-opacity='0.18'%3E%3Cpath d='M20 1l18 10v20L20 41 2 31V11z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 68px;
}
.work-shot.placeholder span {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 1.5rem; color: var(--on-ink-soft);
  letter-spacing: .02em;
}
.work-body { padding: 1.5rem 1.55rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.3rem; margin: 0 0 .5rem; line-height: 1.2; letter-spacing: -.01em; }
.work-body p { margin: 0 0 1.1rem; color: var(--muted); font-size: .96rem; flex: 1; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.work-more {
  font-weight: 600; font-size: .9rem; color: var(--accent-strong);
  display: inline-flex; align-items: center; gap: .35rem;
}
a.work:hover .work-more { gap: .6rem; }

/* ==========================================================================
   Kontakt / CTA
   ========================================================================== */
.contact-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem;
  align-items: center;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-lg);
  padding: 3rem 3rem;
  position: relative; overflow: hidden; isolation: isolate;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23f59e0b' stroke-width='1.1' stroke-opacity='0.1'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z'/%3E%3Cpath d='M28 48l24 14v28L28 104 4 90V62z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 96px;
  -webkit-mask: radial-gradient(90% 120% at 90% 10%, #000 0%, transparent 65%);
  mask: radial-gradient(90% 120% at 90% 10%, #000 0%, transparent 65%);
}
.contact-card h2 { color: var(--on-ink); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .7rem; line-height: 1.15; letter-spacing: -.02em; }
.contact-card p { color: var(--on-ink-soft); margin: 0 0 1.6rem; }
.contact-card .mail {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: 1.05rem; color: var(--accent-bright);
}
.contact-side { display: flex; flex-direction: column; gap: .8rem; }
.contact-side .btn { justify-content: center; }
@media (max-width: 780px) {
  .contact-card { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; gap: 1.8rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 3rem 0 2.5rem;
  font-size: .9rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: .6rem; }
.footer-brand p { margin: 0; font-size: .88rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin: 0 0 .8rem;
}
.footer-col a { display: block; color: var(--muted); padding: .18rem 0; }
.footer-col a:hover { color: var(--accent-strong); text-decoration: none; }
.footer-legal {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .82rem; text-align: center; color: var(--muted);
}

/* ==========================================================================
   Portfolio-Detailseite (gerenderte Case-Study)
   ========================================================================== */
.detail-hero { background: var(--ink); color: var(--on-ink); padding: 3.5rem 0 2.6rem; }
.detail-hero .back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--on-ink-muted); font-size: .88rem; margin-bottom: 1.4rem;
}
.detail-hero .back:hover { color: var(--accent-bright); text-decoration: none; }
.detail-hero h1 { color: var(--on-ink); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: .3rem 0 .8rem; max-width: 20ch; }
.detail-hero .lead { font-family: var(--sans); color: var(--on-ink-soft); font-size: 1.15rem; max-width: 60ch; margin: 0 0 1.6rem; }
.detail-hero .tag-row { margin-bottom: 1.6rem; }
.detail-hero .tag { background: color-mix(in srgb, var(--accent-bright) 16%, transparent); border-color: color-mix(in srgb, var(--accent-bright) 40%, transparent); color: var(--accent-bright); }

.detail-figure { max-width: var(--maxw); margin: -2rem auto 0; padding-inline: 1.5rem; }
.detail-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* Fakten-Leiste */
.factbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 2.5rem 0;
}
.factbar div { background: var(--surface); padding: 1.1rem 1.3rem; }
.factbar dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.factbar dd { margin: 0; color: var(--text); font-weight: 600; font-size: .95rem; }

/* Lesbarer Textkörper */
.prose { max-width: var(--maxw-read); margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 .9rem; letter-spacing: -.01em; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.prose p { margin: 0 0 1.15rem; }
.prose ul { margin: 0 0 1.3rem; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5rem; margin: .55rem 0; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 10px; background: var(--accent);
  -webkit-mask: var(--hex) center / contain no-repeat;
  mask: var(--hex) center / contain no-repeat;
}
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 0 0 1.6rem; padding: 1.1rem 1.4rem;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 1.12rem; color: var(--text-soft);
}
.prose blockquote p:last-child { margin: 0; }
.prose code {
  font-family: var(--mono); font-size: .86em;
  background: var(--accent-soft); color: var(--accent-strong);
  padding: .12em .45em; border-radius: 6px; border: 1px solid var(--accent-line);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.tech-line { font-size: .95rem; line-height: 2.1; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; text-align: center; }

/* „in Arbeit"-Hinweis auf Detailseite */
.wip-note {
  max-width: var(--maxw-read); margin: 2rem auto;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
}
.wip-note strong { color: var(--accent-strong); }
.wip-note p { margin: .3rem 0 0; color: var(--text-soft); }

/* ==========================================================================
   Zugangsschutz (WIP-Gate) — identisch zum Tutorials-Mechanismus
   ========================================================================== */
#gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  background: linear-gradient(150deg, #b45309 0%, #7c2d12 55%, #431407 100%);
}
#gate .gate-card {
  width: 100%; max-width: 390px; background: var(--surface);
  border-radius: 18px; padding: 2.2rem 1.9rem; text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
#gate img { width: 54px; height: 54px; margin-bottom: .9rem; }
#gate h2 { font-family: var(--serif); margin: 0 0 .35rem; font-size: 1.35rem; }
#gate p { color: var(--muted); font-size: .92rem; margin: 0 0 1.3rem; }
#gate form { display: flex; flex-direction: column; gap: .75rem; }
#gate input {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface-2); color: var(--text); text-align: center;
}
#gate input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
#gate button {
  font: inherit; font-weight: 600; padding: .75rem;
  border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer;
}
#gate button:hover { background: var(--accent-strong); }
#gate .err { color: #dc2626; font-size: .82rem; min-height: 1.1em; margin: 0; }
body.locked { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ==========================================================================
   THEME-SYSTEM (umschaltbar) — Honig (Default) + 3 Showreel-Themes
   Standard = :root oben (Honig, warm, Waben, Serifen). data-theme auf <html>
   schaltet um. Die 3 Showreel-Themes sind bewusst „nüchtern": System-Schrift
   statt Serifen-Display, keine Waben-Deko — nur Farbtokens + Struktur.
   ========================================================================== */

/* --- gemeinsame „nüchtern"-Anpassungen für die 3 Showreel-Themes --- */
:root[data-theme="dark"],
:root[data-theme="amber"],
:root[data-theme="cream"] {
  --serif: var(--sans);   /* Serifen-Display -> System-Sans */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Ccircle cx='10' cy='9' r='6.5'/%3E%3C/svg%3E");
}
/* Waben-Hintergründe + Glow ausblenden */
[data-theme="dark"] .hive-section::before, [data-theme="amber"] .hive-section::before, [data-theme="cream"] .hive-section::before,
[data-theme="dark"] .hero::before, [data-theme="amber"] .hero::before, [data-theme="cream"] .hero::before,
[data-theme="dark"] .hero::after, [data-theme="amber"] .hero::after, [data-theme="cream"] .hero::after,
[data-theme="dark"] .contact-card::before, [data-theme="amber"] .contact-card::before, [data-theme="cream"] .contact-card::before,
[data-theme="dark"] .wabe::after, [data-theme="amber"] .wabe::after, [data-theme="cream"] .wabe::after,
[data-theme="dark"] .work-shot.placeholder::before, [data-theme="amber"] .work-shot.placeholder::before, [data-theme="cream"] .work-shot.placeholder::before {
  display: none !important;
}
/* Hex-Icon-Marker -> abgerundetes Quadrat */
[data-theme="dark"] .svc-ico, [data-theme="amber"] .svc-ico, [data-theme="cream"] .svc-ico,
[data-theme="dark"] .wabe-ico, [data-theme="amber"] .wabe-ico, [data-theme="cream"] .wabe-ico {
  clip-path: none; border-radius: 12px;
}

/* --- 🌙 STUDIO DARK (Showreel „studio", Petrol) --- */
:root[data-theme="dark"] {
  --bg:#0e1b1f; --bg-2:#0b171b; --surface:#13252b; --surface-2:#172c33;
  --border:#27424a; --border-strong:#3a565f;
  --text:#eef3f4; --text-soft:#ccd8da; --muted:#9fb3b8;
  --accent:#d8a657; --accent-strong:#e7c281; --accent-bright:#4fd1c5;
  --accent-soft:#182a2f; --accent-line:#3c4f47;
  --ink:#0a1418; --ink-2:#0b171b;
  --on-ink:#eef3f4; --on-ink-soft:#b9c7ca; --on-ink-muted:#8aa0a4;
  --shadow-sm:0 1px 2px rgba(0,0,0,.5),0 6px 18px rgba(0,0,0,.35);
  --shadow:0 4px 12px rgba(0,0,0,.5),0 20px 44px rgba(0,0,0,.45);
  --shadow-lg:0 30px 70px rgba(0,0,0,.6);
}

/* --- 🟠 AMBER (Showreel „studio-amber", warm hell) --- */
:root[data-theme="amber"] {
  --bg:#fbf2e4; --bg-2:#f5e7d2; --surface:#fffaf2; --surface-2:#faf0e0;
  --border:#eedcc4; --border-strong:#e0c9a8;
  --text:#2c2218; --text-soft:#5a4c3a; --muted:#8c7a64;
  --accent:#c2741f; --accent-strong:#9c5b16; --accent-bright:#c2741f;
  --accent-soft:#fbe7cd; --accent-line:#f0d6b3;
  --ink:#2c2218; --ink-2:#241b12;
  --on-ink:#fbf2e4; --on-ink-soft:#e7d4bb; --on-ink-muted:#c3ab8b;
}

/* --- 📄 CREAM (Showreel „studio-cream", elegant hell, Teal) --- */
:root[data-theme="cream"] {
  --bg:#f3f0e8; --bg-2:#eae6da; --surface:#fbf9f3; --surface-2:#f3efe6;
  --border:#e3ddcf; --border-strong:#d3cbb8;
  --text:#212630; --text-soft:#3c434f; --muted:#6c7480;
  --accent:#1f7a70; --accent-strong:#17615a; --accent-bright:#caa24a;
  --accent-soft:#e7efec; --accent-line:#cfe0da;
  --ink:#212630; --ink-2:#2a303b;
  --on-ink:#f3f0e8; --on-ink-soft:#d4d7db; --on-ink-muted:#a7adb6;
}

/* --- Theme-Umschalter (Farb-Swatches im Header) --- */
.theme-switch { display:inline-flex; align-items:center; gap:.4rem; }
.theme-switch button {
  width:17px; height:17px; padding:0; border-radius:50%;
  border:2px solid var(--border-strong); background:var(--sw,#ccc);
  cursor:pointer; transition:transform .15s var(--ease), box-shadow .15s;
}
.theme-switch button:hover { transform:scale(1.18); }
.theme-switch button.on { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
@media (max-width:520px){ .theme-switch button{ width:15px; height:15px; } }
