/* ─── Spaceflow · Design-Tokens (Palette A „Champagne“, hell) ───────── */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Palette A „Champagne“ – hell */
  --bg: #FAF9F6;             /* Off White */
  --bg-2: #F3EEE7;           /* zwischen Off White und Warm Grey */
  --bg-deep: #EDE7DF;        /* Warm Grey */
  --heading: #1A1A1A;        /* Graphite */
  --text: #2A2724;
  --muted: #6B655E;
  --subtle: #8A847C;
  --accent: #A88762;         /* Champagne, abgedunkelt – für Text/Linien */
  --accent-deep: #8A6C4B;
  --accent-fill: #D6C2AA;    /* Champagne – für Flächen/Buttons */
  --accent-fill-hi: #CDB698;
  --line: rgba(26, 26, 26, .09);
  --surface: #FFFFFF;

  --radius: 18px;
  --radius-pill: 999px;
  --max: 1180px;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 18px 40px -24px rgba(120, 90, 50, .4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent-fill); color: var(--heading); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

h1, h2, h3 { color: var(--heading); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--subtle);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  font: 600 .95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent-fill); color: var(--heading); box-shadow: 0 10px 26px -12px rgba(168,135,98,.7); }
.btn-primary:hover { background: var(--accent-fill-hi); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(26,26,26,.22); color: var(--heading); background: rgba(255,255,255,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--heading); background: rgba(255,255,255,.7); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ─── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(250, 249, 246, .9);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: block; text-decoration: none; }
.brand svg { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--heading); position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 11px 22px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--heading); margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav { height: 68px; }
  .brand svg { height: 36px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links li:last-child { margin-top: 18px; }
  .nav-links .btn { width: 100%; justify-content: center; padding: 15px; }
  .site-header:has(.nav-links.open) { background: var(--bg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ─── Hero (Vollbild-Foto) ────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 110px 0 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;   /* Person sitzt rechts, links Himmel/See für den Text */
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(250,249,246,.97) 0%, rgba(250,249,246,.9) 32%, rgba(250,249,246,.45) 55%, rgba(250,249,246,0) 72%),
    linear-gradient(180deg, rgba(250,249,246,.75) 0%, rgba(250,249,246,0) 20%, rgba(250,249,246,0) 60%, rgba(250,249,246,.97) 100%);
}
.hero-content { flex: 1; display: flex; align-items: center; }
.hero-text { max-width: 600px; padding: 40px 0 56px; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { font-size: 1.16rem; color: #3E3A36; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 420px) { .hero-cta .btn { flex: 1 1 100%; justify-content: center; } }
.hero-badge {
  display: flex; align-items: center; gap: 12px; margin-top: 34px;
  font-size: .86rem; color: #4A4540; line-height: 1.4;
}
.hero-badge .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #7DC08A; box-shadow: 0 0 0 5px rgba(125,192,138,.18); animation: pulse 2.4s ease-in-out infinite; }
.hero-badge strong { color: var(--heading); font-weight: 600; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(125,192,138,0); } }

@media (max-width: 860px) {
  .hero { padding-top: 90px; }
  .hero-bg { object-position: 76% 50%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(250,249,246,.95) 0%, rgba(250,249,246,.8) 50%, rgba(250,249,246,.55) 68%, rgba(250,249,246,.97) 100%);
  }
  .hero-text { padding: 8px 0 40px; }
}

/* ─── Stats (im Hero unten) ───────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(26,26,26,.12);
  padding-bottom: 36px;
}
.stat { display: flex; gap: 16px; align-items: flex-start; padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(26,26,26,.1); }
.stat svg { flex: none; width: 30px; height: 30px; color: var(--accent); margin-top: 6px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--heading); letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: .9rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; padding-bottom: 20px; }
  .stat, .stat + .stat { padding: 18px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(26,26,26,.1); }
  .stat b { font-size: 1.6rem; }
}

/* ─── Sections ────────────────────────────────────────────────────── */
section { scroll-margin-top: 80px; }
.section { padding: 120px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head h2 { margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
}
.bg-alt { background: var(--bg-2); }

/* ─── Lösungen ────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 32px; transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-fill); box-shadow: var(--shadow-soft); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid #E6D9C8; background: #FAF6F0; color: var(--accent); margin-bottom: 26px;
}
.icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: span 1; }
}

/* ─── Ablauf ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 36px 0 0; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line); }
.step .num { font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.step h3 { margin: 14px 0 10px; font-size: 1.35rem; }
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* ─── Beispiele / Projekte ────────────────────────────────────────── */
.project {
  display: grid; grid-template-columns: 1.25fr 1fr;
  background: var(--surface); border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
}
.project-media { background: #22201E; padding: 36px; display: flex; align-items: center; min-height: 380px; border-right: 1px solid var(--line); }
.project-media svg { width: 100%; height: auto; }
.project-body { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: var(--radius-pill); background: #F1ECE5; color: var(--heading); }
.tag.status { background: transparent; border: 1px solid var(--accent-fill); color: var(--accent-deep); }
.project h3 { font-size: 1.6rem; margin-bottom: 14px; }
.project-body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; font-size: .96rem; line-height: 1.5; color: var(--text); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.project-foot { margin-top: auto; padding-top: 28px; font-size: .84rem; color: var(--subtle); }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-media { min-height: 0; padding: 26px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-body { padding: 32px 26px; }
}

.pilot {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border: 1.5px dashed var(--accent-fill); border-radius: 24px; padding: 36px 44px;
  background: linear-gradient(120deg, rgba(214,194,170,.22), rgba(214,194,170,0));
}
.pilot h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pilot p { color: var(--muted); max-width: 58ch; }
@media (max-width: 760px) { .pilot { flex-direction: column; align-items: flex-start; padding: 30px 26px; } }

/* ─── Über mich ───────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, #F3ECE2 0%, #E6D7C4 60%, #D6C2AA 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { width: 34%; height: auto; object-fit: contain; }
.about h2 { margin: 18px 0 26px; }
.about p + p { margin-top: 18px; }
.about .text p { color: var(--muted); font-size: 1.05rem; }
.about .text p.strong { color: var(--heading); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.value { border-top: 1px solid var(--heading); padding-top: 14px; }
.value b { display: block; color: var(--heading); font-size: .98rem; }
.value span { font-size: .87rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 44px; }
  .portrait { aspect-ratio: 4 / 3.4; max-height: 440px; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ─── Kontakt (Foto-Hintergrund) ──────────────────────────────────── */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 85% 60%; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(250,249,246,.97) 0%, rgba(250,249,246,.9) 50%, rgba(250,249,246,.35) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(250,249,246,0) 25%);
}
.contact h2 { margin: 18px 0 22px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact p.lead { font-size: 1.12rem; max-width: 44ch; color: #3E3A36; }
.contact-box {
  border: 1px solid rgba(26,26,26,.08); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-soft);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.contact-box ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; font-size: .96rem; }
.contact-box li { display: flex; gap: 12px; }
.contact-box li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.contact-box .btn { width: 100%; justify-content: center; }
.contact-mail { display: block; text-align: center; margin-top: 16px; font-size: .92rem; color: var(--accent-deep); text-decoration: none; }
.contact-mail:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(250,249,246,.85) 30%, rgba(250,249,246,.92) 100%); }
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-deep); color: var(--subtle); font-size: .86rem; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 32px; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ─── Reveal-Animation ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.flow-line { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-line, .hero-badge .dot { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ─── Rechtliches (impressum.html) ────────────────────────────────── */
.legal { padding: 150px 0 120px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 18px 0 40px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent); }

/* Hero: sofort sichtbar (kein Scroll-Trigger), nur sanftes Einblenden beim Laden */
.intro { animation: intro 1s cubic-bezier(.2,.7,.2,1) both; }
.intro-2 { animation-delay: .25s; }
@keyframes intro { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .intro { animation: none; } }
@media (min-width: 861px) and (max-height: 960px) {
  .hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 18px 0 20px; }
  .hero-text { padding: 20px 0 36px; }
  .hero-cta { margin-top: 28px; }
  .hero-badge { margin-top: 24px; }
  .stat { padding-top: 20px; }
  .stats { padding-bottom: 28px; }
}

/* ─── Bereiche (Beispiel-Listen) ──────────────────────────────────── */
.cards.areas .card, .cards.areas .card:nth-child(4), .cards.areas .card:nth-child(5) { grid-column: span 2; }
.mini { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.mini li { position: relative; padding-left: 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mini li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
@media (max-width: 980px) { .cards.areas .card, .cards.areas .card:nth-child(4), .cards.areas .card:nth-child(5) { grid-column: span 1; } }
.skills b { font-size: 1.25rem; line-height: 1.3; margin-top: 2px; }

/* ─── Kontakt-Box ─────────────────────────────────────────────────── */
.contact-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); }
.contact-address { display: block; margin: 10px 0 26px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--heading); text-decoration: none; word-break: break-all; }
.contact-address:hover { color: var(--accent-deep); }

/* ═══ PROJEKTE (Startseite + Detailseiten) ═══════════════════════════ */
.brand svg { height: 36px; }
@media (max-width: 860px) { .brand svg { height: 30px; } }
.site-header { background: rgba(250, 249, 246, .9); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); }

/* Startseite – kompakter Einstieg */
.intro-block { padding: 150px 0 56px; }
.intro-block h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin: 20px 0 18px; max-width: 18ch; }
.intro-block .lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--muted); max-width: 52ch; }
@media (max-width: 860px) { .intro-block { padding: 112px 0 36px; } }

/* Projekt-Raster */
.projects { padding: 0 0 110px; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; gap: 24px; } .projects { padding-bottom: 72px; } }
.pcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,26,26,.03), 0 10px 30px -18px rgba(120,90,50,.25);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(26,26,26,.04), 0 26px 50px -24px rgba(120,90,50,.45); border-color: #E6D9C8; }
.pcard-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.pcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-img img { transform: scale(1.035); }
.pcard-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.pcard-cat { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.pcard h3 { font-size: 1.45rem; margin: 10px 0 10px; color: var(--heading); }
.pcard p { color: var(--muted); font-size: .98rem; line-height: 1.65; }
.pcard-more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--accent-deep); }
.pcard-more .arr { transition: transform .2s ease; }
.pcard:hover .pcard-more .arr { transform: translateX(4px); }
@media (max-width: 560px) { .pcard-body { padding: 22px 22px 24px; } .pcard h3 { font-size: 1.3rem; } }

.contact-simple h2 { margin: 18px 0 20px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-simple .contact-address { margin: 0; color: var(--accent-deep); }

/* Chips (Technologien) */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #F3EEE7; border: 1px solid #E8DFD3; color: #3E3A36; line-height: 1.2; }

/* Detailseite */
.proj { padding-top: 112px; }
.proj-head { max-width: 820px; padding-top: 24px; }
.proj-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.proj-back:hover { color: var(--accent-deep); }
.proj-head .eyebrow { display: flex; }
.proj-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 16px 0 16px; }
.proj-head .lead { font-size: clamp(1.02rem, 1.7vw, 1.14rem); line-height: 1.7; color: var(--muted); max-width: 64ch; }

.proj-cover { margin: 36px auto 0; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: var(--bg-deep); }
.proj-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proj-tech { max-width: 1040px; margin: 18px auto 0; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.proj-tech-label { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.proj-tech .chips { flex: 1; min-width: 220px; }

.proj-body { max-width: 760px; padding-top: 40px; padding-bottom: 20px; }
.proj-sec { padding: 36px 0; border-top: 1px solid var(--line); }
.proj-sec:first-child { border-top: 0; padding-top: 24px; }
.proj-body h3 { font-size: 1.28rem; line-height: 1.3; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.proj-body h3::before { content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: var(--accent-fill); }
.proj-sec--chapter { padding-top: 56px; }
.proj-body h2.proj-h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); line-height: 1.2; margin: 0 0 16px; }
.proj-body p { color: #3E3A36; font-size: 1.03rem; line-height: 1.8; }
.proj-body p + p { margin-top: 14px; }
.proj-body ul { padding-left: 1.2em; color: #3E3A36; }
.proj-body code { font-size: .86em; background: #F1ECE5; padding: 2px 6px; border-radius: 6px; }
.proj-sec--beitrag { border-top: 0; margin: 20px 0; padding: 28px 30px; background: #FFFFFF; border: 1px solid #E8DFD3; border-radius: 20px; }
.proj-sec--beitrag + .proj-sec { border-top: 0; }
.proj-sec--beitrag h3::before { background: var(--accent); }

.proj-figure { margin: 28px -120px; }
.proj-figure a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; box-shadow: var(--shadow-soft); }
.proj-figure img { display: block; width: 100%; height: auto; }
.proj-figure figcaption { margin-top: 10px; font-size: .85rem; color: var(--subtle); text-align: center; }
@media (max-width: 1040px) { .proj-figure { margin: 28px 0; } }

.proj-video { margin: 30px 0 6px; display: flex; flex-direction: column; align-items: center; }
.proj-video .phone { width: min(320px, 78vw); aspect-ratio: 9 / 16; padding: 10px; border-radius: 42px; background: #1A1A1A; box-shadow: 0 30px 60px -28px rgba(60,40,20,.55); }
.proj-video video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #000; }
.proj-video figcaption { margin-top: 14px; font-size: .85rem; color: var(--subtle); text-align: center; max-width: 40ch; }

.proj-table { margin: 6px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.proj-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.proj-table th { text-align: left; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: 14px 18px; background: #FAF6F0; font-weight: 700; }
.proj-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; color: #3E3A36; line-height: 1.55; }
.proj-table td:first-child { width: 38%; color: var(--heading); }
@media (max-width: 600px) {
  .proj-table table, .proj-table tbody, .proj-table tr, .proj-table td { display: block; width: 100%; }
  .proj-table thead { display: none; }
  .proj-table tr { padding: 14px 18px; border-top: 1px solid var(--line); }
  .proj-table tr:first-child { border-top: 0; }
  .proj-table td { padding: 0; border: 0; }
  .proj-table td:first-child { width: 100%; margin-bottom: 4px; }
}

.proj-pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 34px; padding-bottom: 96px; margin-top: 30px; border-top: 1px solid var(--line); }
.pnav { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.pnav:hover { border-color: var(--accent-fill); box-shadow: var(--shadow-soft); }
.pnav.next { text-align: right; }
.pnav-label { font-size: .78rem; font-weight: 600; color: var(--accent); }
.pnav-title { font-weight: 700; color: var(--heading); font-size: 1.05rem; }
@media (max-width: 560px) { .proj-pnav { grid-template-columns: 1fr; } .pnav.next { text-align: left; } .pnav-empty { display: none; } }

/* Karten: Badge, Fakten-Zeile, Video-Vorschau */
.pcard-badge {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--heading);
  padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px -8px rgba(0,0,0,.3);
}
.pcard-preview { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; background: #1A1A1A; }
.pcard.is-playing .pcard-preview { opacity: 1; }
.pcard-facts { margin: -2px 0 10px; font-size: .84rem !important; font-weight: 600; color: var(--accent-deep) !important; line-height: 1.5 !important; }
.proj-facts { margin-top: 16px; display: inline-block; font-size: .88rem; font-weight: 600; color: var(--accent-deep); background: #F6F0E8; border: 1px solid #E8DFD3; border-radius: 999px; padding: 7px 14px; }

/* ─── Team: KI-Agenten als Profilkarten ─── */
.team { display: grid; gap: 14px; margin: 22px 0 6px; counter-reset: agent; }
.agent { counter-increment: agent; }
.agent-ph::before { content: counter(agent, decimal-leading-zero); }
.agent { display: grid; grid-template-columns: 148px 1fr; gap: 22px; align-items: start; padding: 22px 24px; background: var(--surface); border: 1px solid #E8DFD3; border-radius: 20px; box-shadow: var(--shadow-soft); }
.agent-ava { width: 148px; height: 148px; border-radius: 18px; overflow: hidden; background: linear-gradient(145deg, var(--bg-2), var(--bg-deep)); border: 1px solid #E8DFD3; display: grid; place-items: center; }
.agent-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-ph { font-size: 2.1rem; font-weight: 700; color: var(--accent); }
.agent-role { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.proj-body .agent h4 { font-size: 1.18rem; line-height: 1.3; margin: 4px 0 12px; color: var(--heading); }
.agent dl { margin: 0; display: grid; gap: 8px; }
.agent dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: .94rem; line-height: 1.6; }
.agent dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); padding-top: 3px; }
.agent dd { margin: 0; color: #3E3A36; }
.agent dl > div.neg dt { color: #A0573F; }
@media (max-width: 600px) {
  .agent { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .agent-ava { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; }
  .agent dl > div { grid-template-columns: 1fr; gap: 2px; }
}
