/* ============================================================
   BLANC ET NOBLE — Relaunch in Farbe
   Porzellan-Ivory + Royalblau, Cormorant Garamond + Manrope
   Radius-System: interaktiv = Pill, Medien/Karten = 18px, Inputs = 10px
   ============================================================ */

@import url('../fonts/fonts.css');

:root {
  --paper:        #fbfaf7;
  --porcelain:    #f2f0ea;
  --ink:          #0f1b2d;
  --ink-soft:     #46566e;
  --ink-faint:    #7c889c;
  --royal:        #1e3f8f;
  --royal-deep:   #15306f;
  --royal-tint:   #e9eef9;
  --royal-line:   rgba(30, 63, 143, 0.22);
  --line:         rgba(15, 27, 45, 0.12);
  --line-soft:    rgba(15, 27, 45, 0.07);
  --shadow-soft:  0 24px 60px -28px rgba(15, 27, 45, 0.28);
  --shadow-card:  0 18px 44px -24px rgba(21, 48, 111, 0.25);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, sans-serif;

  --t-eyebrow: 0.74rem;
  --t-body:    clamp(0.98rem, 0.9rem + 0.25vw, 1.08rem);
  --t-lead:    clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
  --t-h3:      clamp(1.45rem, 1.2rem + 0.9vw, 2rem);
  --t-h2:      clamp(2rem, 1.55rem + 2vw, 3.2rem);
  --t-h1:      clamp(2.35rem, 1.7rem + 2.5vw, 3.8rem);

  --gutter:    clamp(1.25rem, 3vw, 2.5rem);
  --container: 1280px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --speed:     0.45s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  hanging-punctuation: first last;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--royal); color: #fff; }

/* ============ GRAIN (feine Porzellan-Textur, gegen flachen Flächeneindruck) ============ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  transform: translateZ(0);
  will-change: transform;
}

/* Edler Fokus-Ring, durchgängig */
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible { outline-offset: 4px; }

h1, h2, h3 {
  font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em;
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "onum" 1;
  font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
}
h1 { font-size: var(--t-h1); text-wrap: balance; }
h2 { font-size: var(--t-h2); text-wrap: balance; }
h3 { font-size: var(--t-h3); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--royal); line-height: 1.1; }
p  { margin: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: var(--t-lead); color: var(--ink-soft); line-height: 1.6; max-width: 38em; }
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
/* Signature-Motiv: kurze Royal-Haarlinie vor jedem Eyebrow */
.eyebrow::before {
  content: "";
  width: clamp(1.6rem, 3vw, 2.6rem);
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  flex: none;
}

/* ============ BUTTONS (Pill, animiert) ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              color var(--speed) var(--ease), border-color var(--speed) var(--ease),
              background-color var(--speed) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .arr { transition: transform var(--speed) var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-primary { background: var(--royal); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--royal-deep);
  transform: translateY(101%);
  transition: transform var(--speed) var(--ease);
  border-radius: inherit;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 22px 50px -20px rgba(21, 48, 111, 0.5); transform: translateY(-2px); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--royal); color: var(--royal); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--royal-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.4); }

/* ============ HEADER ============ */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 1.6rem; align-items: center; }
.lang { display: flex; align-items: center; gap: 0.6rem; padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,0.22); }
.lang a { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.72); font-weight: 600; letter-spacing: 0.06em; transition: color var(--speed) var(--ease); }
.lang a:hover { color: #fff; }
.lang a[aria-current] { color: #fff; font-weight: 800; }
.lang .flag { display: inline-flex; flex: none; height: 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.3); opacity: 0.9; transition: opacity var(--speed) var(--ease); }
.lang .flag svg { display: block; height: 12px; width: auto; }
.lang a:hover .flag, .lang a[aria-current] .flag { opacity: 1; }
@media (max-width: 760px) {
  .topbar .tb-left span { display: none; }
  .topbar .tb-hours { display: none; }
}

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-stuck { border-color: var(--line-soft); box-shadow: 0 12px 30px -22px rgba(15,27,45,0.35); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-logo { height: 56px; width: auto; }
.footer-logo { height: 38px; width: auto; opacity: 0.92; }
@media (max-width: 560px) { .brand-logo { height: 44px; } }
.brand-mark {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--royal); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: 0.16em; white-space: nowrap; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links .menu-cta { display: none; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 0.4rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--royal); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--speed) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav .btn { padding: 0.7rem 1.35rem; font-size: 0.88rem; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0.5rem;
}
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem 0 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem var(--gutter); }
  .nav-burger { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 700px) {
  .nav-cta .btn-primary { display: none; }
  .nav-links .menu-cta { display: block; padding: 0.6rem var(--gutter) 0.2rem; }
  .nav-links .menu-cta a.btn { display: inline-flex; padding: 0.8rem 1.5rem; color: #fff; }
  .nav-links .menu-cta a.btn::after { display: none; }
}
@media (max-width: 560px) {
  .nav .container { gap: 0.6rem; padding-inline: 1rem; }
  .brand { gap: 0.55rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.05rem; }
  .brand-name { font-size: 0.92rem; letter-spacing: 0.12em; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.22em; }
  .nav .btn { padding: 0.55rem 0.95rem; font-size: 0.8rem; }
}

/* ============ HERO ============ */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5.5rem);
  min-height: min(calc(100dvh - 110px), 760px);
}
.hero-copy .eyebrow { color: var(--royal); }
.hero-copy h1 { margin-bottom: 1.3rem; }
.hero-copy .lead { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3.1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; left: clamp(-1.5rem, -3vw, -2.5rem); bottom: 2.2rem;
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: 0.9rem;
  max-width: 270px;
}
.hero-chip .chip-ico {
  flex: none; width: 42px; height: 42px; border-radius: 999px;
  background: var(--royal-tint); color: var(--royal);
  display: grid; place-items: center;
}
.hero-chip strong { display: block; font-size: 0.92rem; }
.hero-chip span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; display: block; }

.hero-facts {
  display: flex; gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.hero-facts div span { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.2rem; }
.hero-facts div strong { font-weight: 600; font-size: 0.97rem; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; }
  .hero-media .frame { aspect-ratio: 16 / 10; }
  .hero-chip { position: static; margin-top: 0.9rem; max-width: none; box-shadow: 0 10px 26px -18px rgba(15,27,45,0.3); border: 1px solid var(--line-soft); }
}

/* ============ KONZEPT (Editorial Split) ============ */
.konzept { background: var(--porcelain); padding-block: var(--section-y); }
.konzept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.konzept-media { position: relative; }
.konzept-media .frame {
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.konzept-media .frame img { transition: transform 1.2s var(--ease); }
.konzept-media .frame:hover img { transform: scale(1.04); }
.konzept-quote {
  margin-top: 1.4rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink-soft);
  line-height: 1.5; max-width: 34em;
}
.konzept-quote cite { font-style: normal; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); display: block; margin-top: 0.4rem; }
.konzept-copy h2 { margin-bottom: 1.4rem; }
.konzept-copy p + p { margin-top: 1.1rem; }
.konzept-copy .lead { margin-bottom: 0; }
.konzept-points { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.konzept-points li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--ink-soft); }
.konzept-points .tick {
  flex: none; width: 26px; height: 26px; margin-top: 0.1rem;
  border-radius: 999px; background: var(--royal-tint); color: var(--royal);
  display: grid; place-items: center;
}
@media (max-width: 900px) { .konzept-grid { grid-template-columns: 1fr; } }

/* ============ ATELIER (Sticky Split) ============ */
.atelier { padding-block: var(--section-y); }
.atelier-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.atelier-head h2 { margin-bottom: 1.2rem; }
.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.atelier-sticky { position: sticky; top: 110px; }
.atelier-sticky .frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4 / 5; }
.atelier-sticky .frame img { width: 100%; height: 100%; object-fit: cover; }
.atelier-sticky figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.8rem; }
.principles { display: grid; gap: 0; }
.principle { padding: 2rem 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .p-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--royal);
}
.principle h3 { margin: 0.5rem 0 0.8rem; }
.principle p { color: var(--ink-soft); max-width: 46em; }
@media (max-width: 900px) {
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-sticky { position: static; }
}

/* ============ ATELIER-RUNDGANG (Walkthrough-Sequenz) ============ */
.rundgang { background: var(--paper); padding-block: var(--section-y); }
.rundgang-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.rundgang-head h2 { margin-bottom: 1.2rem; }
.tour { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.stop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.stop:nth-child(even) .stop-media { order: 2; }
.stop-media .frame {
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 2;
}
.stop-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.stop-media .frame:hover img { transform: scale(1.04); }
.stop-body { max-width: 30em; }
.stop-index { display: flex; align-items: baseline; gap: 0.85rem; margin-bottom: 0.85rem; }
.stop-index .s-num { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); color: var(--royal); line-height: 1; }
.stop-index .s-room { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.stop h3 { margin-bottom: 0.7rem; }
.stop p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .stop { grid-template-columns: 1fr; gap: 1.4rem; }
  .stop:nth-child(even) .stop-media { order: 0; }
  .stop-media { order: -1; }
}

/* ============ STATEMENT (Royal Band) ============ */
.statement { background: #295080; color: #fff; padding-block: clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; }
.statement::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 85% 110%, rgba(255,255,255,0.12), transparent 65%),
              radial-gradient(700px 380px at 8% -20%, rgba(30,63,143,0.55), transparent 60%);
  pointer-events: none;
}
.statement .container { position: relative; max-width: 980px; text-align: center; }
.statement p.big {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.25;
}
.statement p.big em { color: #c9d6f5; }
.statement .src { margin-top: 1.6rem; font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ============ TECHNOLOGIE (Bento) ============ */
.tech { background: var(--paper); padding-block: var(--section-y); }
.tech-head { display: grid; gap: 1.2rem; max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 1.1rem;
}
.bento-cell {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--porcelain);
}
.bento-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bento-cell:hover img { transform: scale(1.05); }
.bento-cell .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(10, 18, 34, 0.78), transparent);
  color: #fff;
}
.bento-cell .cap strong { display: block; font-size: 1.02rem; letter-spacing: 0.01em; }
.bento-cell .cap span { font-size: 0.84rem; color: rgba(255,255,255,0.78); }
.bento-text {
  background: var(--royal); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.6rem;
}
.bento-text h3 { font-size: 1.35rem; }
.bento-text p { font-size: 0.92rem; color: rgba(255,255,255,0.82); margin-top: 0.6rem; }
.bento-text .num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; }
.b-a { grid-column: span 7; grid-row: span 2; }
.b-b { grid-column: span 5; }
.b-c { grid-column: span 5; }
.b-d { grid-column: span 4; }
.b-e { grid-column: span 4; }
.b-f { grid-column: span 4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .b-a { grid-column: span 2; grid-row: span 2; }
  .b-b, .b-c, .b-d, .b-e, .b-f { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .b-a, .b-b, .b-c, .b-d, .b-e, .b-f { grid-column: span 1; grid-row: span 1; }
  .b-a { grid-row: span 2; }
}

/* ============ FÜR WEN (Dual Panels) ============ */
.fuerwen { background: var(--porcelain); padding-block: var(--section-y); }
.fuerwen-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.fuerwen-head h2 { margin-bottom: 1.2rem; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.panel {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.panel .panel-media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; }
.panel .panel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.panel:hover .panel-media img { transform: scale(1.05); }
.panel-body { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; flex: 1; }
.panel-body h3 { margin-bottom: 0.4rem; }
.panel-body .sub { color: var(--royal); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.panel-body p { color: var(--ink-soft); }
.panel-list { list-style: none; margin: 1.3rem 0 1.8rem; padding: 0; display: grid; gap: 0.65rem; }
.panel-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.panel-list svg { flex: none; margin-top: 0.25rem; color: var(--royal); }
.panel-body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 880px) { .panels { grid-template-columns: 1fr; } }

/* ============ LEISTUNGEN (Akkordeon) ============ */
.leistungen { padding-block: var(--section-y); }
.leistungen-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.leistungen-intro { position: sticky; top: 110px; }
.leistungen-intro h2 { margin-bottom: 1.2rem; }
.leistungen-intro .lead { margin-bottom: 2rem; }
.leistungen-intro .frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; background: none; border: 0;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem 0.2rem;
  text-align: left;
  transition: color 0.3s ease;
}
.acc-btn .a-num { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--royal); flex: none; width: 2.2rem; }
.acc-btn .a-title { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 500; flex: 1; line-height: 1.2; }
.acc-btn .a-ico {
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: transform var(--speed) var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.acc-btn:hover .a-ico { border-color: var(--royal); color: var(--royal); }
.acc-item.open .a-ico { background: var(--royal); border-color: var(--royal); color: #fff; transform: rotate(45deg); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 0.55s var(--ease); }
.acc-inner { padding: 0 0.2rem 1.8rem 3.4rem; color: var(--ink-soft); max-width: 56em; }
@media (max-width: 900px) {
  .leistungen-grid { grid-template-columns: 1fr; }
  .leistungen-intro { position: static; }
  .acc-inner { padding-left: 0.2rem; }
}

/* ============ TEAM ============ */
.team { background: var(--porcelain); padding-block: var(--section-y); }
.team-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.team-head h2 { margin-bottom: 1.2rem; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 920px; }
.team-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-soft);
}
.team-media { aspect-ratio: 4 / 5; overflow: hidden; }
.team-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform 1.1s var(--ease); }
.team-card:hover .team-media img { transform: scale(1.04); }
.team-card figcaption { padding: 1.3rem 1.5rem 1.5rem; }
.team-card figcaption strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.team-card figcaption span { display: block; margin-top: 0.35rem; color: var(--royal); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

/* ============ KONTAKT ============ */
.kontakt { background: var(--ink); color: #fff; padding-block: var(--section-y); position: relative; overflow: hidden; }
.kontakt::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 500px at 100% 0%, rgba(30, 63, 143, 0.4), transparent 60%);
  pointer-events: none;
}
.kontakt .container { position: relative; }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
.kontakt-info h2 { margin-bottom: 1.2rem; }
.kontakt-info .lead { color: rgba(255,255,255,0.72); margin-bottom: 2.4rem; }
.k-block { padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,0.14); display: flex; gap: 1.1rem; }
.k-block:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.14); }
.k-block .k-ico { flex: none; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #c9d6f5; }
.k-block strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.k-block p, .k-block a { color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.55; }
.k-block a:hover { color: #fff; }

.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(1.6rem, 3.5vw, 2.8rem); box-shadow: 0 40px 90px -40px rgba(0,0,0,0.55); }
.form-card h3 { margin-bottom: 0.5rem; }
.form-card .form-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
  padding: 0.85rem 1rem; font: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(30, 63, 143, 0.18);
}
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.consent input { margin-top: 0.25rem; accent-color: var(--royal); }
.consent a { color: var(--royal); text-decoration: underline; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note { display: none; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px; background: var(--royal-tint); color: var(--royal-deep); font-size: 0.9rem; }
.form-note.show { display: block; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer { background: #295080; color: rgba(255,255,255,0.72); border-top: 1px solid rgba(255,255,255,0.14); padding: 2.2rem 0; font-size: 0.88rem; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); letter-spacing: 0.16em; color: #fff; font-size: 1rem; }
.footer nav { display: flex; gap: 1.6rem; }
.footer a:hover { color: #fff; }

/* ============ MEDIENRAHMEN-VEREDELUNG (feiner Inset-Ring) ============ */
.frame { position: relative; }
.frame::after,
.bento-cell::after,
.panel .panel-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 27, 45, 0.10),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  pointer-events: none; z-index: 2;
}
.bento-cell, .panel .panel-media { position: relative; }

/* ============ REVEALS & PARALLAX ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* Wenn Motion (JS) die Reveals treibt: CSS-Transition aus, Motion animiert per WAAPI.
   will-change wird gezielt in JS pro Element nur während der Animation gesetzt. */
html.motion .reveal { transition: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; scale: 1.12; }
    @keyframes drift {
      from { transform: translateY(4%); }
      to   { transform: translateY(-4%); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bento-cell img, .panel .panel-media img, .konzept-media .frame img { transition: none; }
}

/* ============ SCROLL-PERFORMANCE ============
   Offscreen-Sektionen werden erst beim Heranscrollen gerendert -> deutlich
   weniger Layout-/Paint-Arbeit pro Frame, flüssigeres Scrollen auf langen Seiten.
   contain-intrinsic-size: auto -> Browser merkt sich die echte Höhe nach dem
   ersten Rendern, daher kein Scrollbalken-Springen. Hero bleibt außen vor. */
.konzept, .atelier, .rundgang, .statement,
.tech, .fuerwen, .leistungen, .team, .kontakt {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* ============ UNTERSEITEN (Impressum/Datenschutz) ============ */
.legal { padding-block: clamp(3rem, 6vw, 5rem); min-height: 60vh; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: var(--t-h2); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; font-family: var(--sans); font-weight: 700; margin: 2.2rem 0 0.7rem; }
.legal p { color: var(--ink-soft); margin-bottom: 0.8rem; }

/* ============ COOKIE-CONSENT ============
   Bottom-Card, zwei Zustände (Banner / Einstellungen). Per JS injiziert,
   Auswahl in localStorage. Liegt über dem Grain-Overlay (z-index 9999). */
.cc {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 10000;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.5rem 1.35rem;
  font-size: 0.92rem; line-height: 1.55;
  transform: translateY(14px); opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cc.in { transform: none; opacity: 1; }
.cc[hidden] { display: none; }
.cc.cc--settings { width: min(470px, calc(100vw - 2 * var(--gutter))); }

.cc h2 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 0.55rem; }
.cc p { margin: 0 0 1.05rem; color: var(--ink-soft); }
.cc a { color: var(--royal); text-decoration: underline; text-underline-offset: 2px; }

.cc .cc-settings { display: none; }
.cc.cc--settings .cc-banner { display: none; }
.cc.cc--settings .cc-settings { display: block; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.cc-btn {
  border-radius: 999px; padding: 0.62rem 1.15rem; font-weight: 600; font-size: 0.86rem;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.cc-btn:active { transform: scale(0.97); }
.cc-btn--primary { background: var(--royal); color: #fff; }
.cc-btn--primary:hover { background: var(--royal-deep); transform: translateY(-1px); }
.cc-btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.cc-btn--ghost:hover { border-color: var(--royal); color: var(--royal); }
.cc-btn--link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; padding: 0.62rem 0.35rem; font-size: 0.84rem; }
.cc-btn--link:hover { color: var(--royal); }

.cc-list { display: grid; margin: 0 0 1.15rem; }
.cc-row { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: start; padding: 0.85rem 0; border-top: 1px solid var(--line-soft); }
.cc-row:first-child { border-top: none; padding-top: 0.2rem; }
.cc-row strong { font-size: 0.9rem; font-weight: 700; display: block; }
.cc-row span { color: var(--ink-faint); font-size: 0.82rem; line-height: 1.45; display: block; margin-top: 0.2rem; }

.cc-switch { position: relative; width: 42px; height: 24px; flex: none; margin-top: 0.1rem; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .3s var(--ease); }
.cc-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.cc-switch input:checked + .cc-track { background: var(--royal); }
.cc-switch input:checked + .cc-track::after { transform: translateX(18px); }
.cc-switch input:disabled { cursor: default; }
.cc-switch input:disabled + .cc-track { opacity: 0.55; }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--royal); outline-offset: 2px; }

/* Reopen-Link im (dunklen) Footer */
.footer .cc-reopen { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.footer .cc-reopen:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .cc, .cc-btn, .cc-track, .cc-track::after { transition: none; }
}
@media (max-width: 560px) {
  .cc, .cc.cc--settings { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; }
}
