/* SCHM Mockup — gemeinsame Styles · v5
   Zwei Schriften (Cabinet Grotesk Display + General Sans Body).
   Lesbarere Basis-Typografie, sauberere Hero-Behandlung, editorial Scroll-Choreografie. */

:root {
  --color-navy-900: #0B1F2E;
  --color-navy-800: #122B3E;
  --color-navy-700: #1A3A52;
  --color-navy-200: #C5D5E1;
  --color-sand-50:  #FBFAF7;
  --color-sand-100: #F4EFE6;
  --color-water-500: #3DA5D9;
  --color-water-600: #2C7BB6;
  --color-sun-500:  #F2C14E;
  --color-deep-800: #0E3A47;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv01", "cv02";
}

h1, h2, h3, h4, .display {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-feature-settings: "ss01", "ss02";
}
h1 { letter-spacing: -0.045em; }
h2 { letter-spacing: -0.035em; }

/* "Mono" labels — jetzt aus Cabinet Grotesk Medium, uppercase, generös getrackt.
   Vereinheitlicht das Schriftsystem und ist bei kleinen Größen klar lesbar. */
.mono {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-feature-settings: "ss01";
  line-height: 1.4;
}
.mono-sm {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
}

section[id] { scroll-margin-top: 5rem; }

/* Focus state */
*:focus-visible {
  outline: 2px solid var(--color-sun-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Subtle paper grain — site-wide */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Hero gradient — etwas weicher als vorher */
.hero-gradient {
  background:
    linear-gradient(180deg, rgba(11,31,46,0.45) 0%, rgba(11,31,46,0.05) 35%, rgba(11,31,46,0.7) 100%),
    linear-gradient(90deg, rgba(11,31,46,0.3) 0%, rgba(11,31,46,0) 55%);
}

.hero-gradient-short {
  background:
    linear-gradient(180deg, rgba(11,31,46,0.4) 0%, rgba(11,31,46,0.1) 45%, rgba(11,31,46,0.65) 100%);
}

/* =========================================================================
   Scroll-Choreografie
   ========================================================================= */

/* Per-line Headline-Reveal beim Pageload */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: reveal-line-rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-line:nth-of-type(2) > span { animation-delay: 140ms; }
.reveal-line:nth-of-type(3) > span { animation-delay: 280ms; }
@keyframes reveal-line-rise { to { transform: translateY(0); } }

/* Basis-Reveal: subtiler Translate + Fade */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Editorial Image-Reveal: Clip-Mask schiebt sich von unten rein.
   Wirkt wie ein Vorhang, der das Foto freigibt — typisch für Magazine. */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.06);
  transition:
    clip-path 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, transform;
}
.img-reveal.in {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* Variante: horizontal aus der Bahn */
.img-reveal--left {
  clip-path: inset(0 100% 0 0);
}
.img-reveal--left.in {
  clip-path: inset(0 0 0 0);
}

/* Stagger-Container: Children erscheinen versetzt, sobald der Container sichtbar wird */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(1) { transition-delay:  60ms; }
.stagger.in > *:nth-child(2) { transition-delay: 140ms; }
.stagger.in > *:nth-child(3) { transition-delay: 220ms; }
.stagger.in > *:nth-child(4) { transition-delay: 300ms; }
.stagger.in > *:nth-child(5) { transition-delay: 380ms; }
.stagger.in > *:nth-child(6) { transition-delay: 460ms; }
.stagger.in > *:nth-child(7) { transition-delay: 540ms; }
.stagger.in > *:nth-child(8) { transition-delay: 620ms; }
.stagger.in > *:nth-child(9) { transition-delay: 700ms; }
.stagger.in > *:nth-child(10) { transition-delay: 780ms; }
.stagger.in > *:nth-child(11) { transition-delay: 860ms; }
.stagger.in > *:nth-child(12) { transition-delay: 940ms; }

/* Hero-Bild für Parallax-Effekt — wird von shared.js per transform bewegt */
.hero-img {
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.08);
  transition: transform 100ms linear;
}

/* Reduced motion — alles flach + sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-line > span { transform: none; animation: none; }
  .reveal,
  .img-reveal,
  .stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .animate-bounce { animation: none !important; }
  .hero-img { transform: none; }
  body::before { opacity: 0.03; }
}

/* =========================================================================
   Typografische Bausteine
   ========================================================================= */

/* Editorial photo with caption */
figure.editorial { margin: 0; }
figure.editorial img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure.editorial figcaption {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.85rem;
  color: rgba(11, 31, 46, 0.55);
}
.on-dark figure.editorial figcaption { color: rgba(255, 255, 255, 0.55); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-navy-900);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 200;
}
.skip-link:focus-visible { top: 1rem; }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 31, 46, 0.96);
  backdrop-filter: blur(8px);
  display: none;
}
@media (max-width: 1023px) {
  .mobile-cta { display: block; }
  main, footer { padding-bottom: 84px; }
}

/* Persona card hover */
.persona-card {
  transition:
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.persona-card:hover { transform: translateY(-4px); }

/* Tariff table */
table.tariff {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.tariff th,
table.tariff td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(11, 31, 46, 0.12);
}
table.tariff th {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 31, 46, 0.55);
}
table.tariff td:not(:first-child) { text-align: right; }
table.tariff tr:hover td { background: rgba(244, 239, 230, 0.55); }

/* Field-Card */
.field-card {
  background: white;
  border: 1px solid rgba(11, 31, 46, 0.08);
  border-radius: 0.5rem;
  padding: 1.1rem 1.35rem;
}

/* Quote glyph */
.quote-glyph {
  font-family: 'Cabinet Grotesk', serif;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.6;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
  pointer-events: none;
}

/* Step number */
.step-num {
  font-family: 'Cabinet Grotesk', system-ui;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

/* Hero scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.55) 60%, transparent);
  overflow: hidden;
}
.scroll-hint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9));
  animation: scroll-hint-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes scroll-hint-pulse {
  0%   { transform: translateY(-100%); opacity: 0.2; }
  50%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint::before { animation: none; opacity: 0.55; }
}

/* =========================================================================
   Photo Placeholder — für Bilder, die noch geschossen werden müssen
   ========================================================================= */
.photo-placeholder {
  position: relative;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(11,31,46,0.04) 0%, rgba(11,31,46,0) 60%),
    repeating-linear-gradient(45deg, #F4EFE6 0px, #F4EFE6 14px, #EDE5D4 14px, #EDE5D4 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(11, 31, 46, 0.55);
  overflow: hidden;
  isolation: isolate;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 65%);
  pointer-events: none;
}
.photo-placeholder .ph-icon {
  width: 38px;
  height: 38px;
  opacity: 0.5;
  margin-bottom: 14px;
  position: relative;
}
.photo-placeholder .ph-label {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
}
.photo-placeholder.on-dark {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    repeating-linear-gradient(45deg, #122B3E 0px, #122B3E 14px, #0E2438 14px, #0E2438 28px);
  color: rgba(255, 255, 255, 0.5);
}
.photo-placeholder.on-dark::before {
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 65%);
}

/* Bento-Grid — flexible große/kleine Karten in einem Raster */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 1.25rem;
}
.bento > * { min-width: 0; }
.bento .b-span-2 { grid-column: span 2; }
.bento .b-span-3 { grid-column: span 3; }
.bento .b-span-4 { grid-column: span 4; }
.bento .b-row-2 { grid-row: span 2; }
.bento .b-row-3 { grid-row: span 3; }

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
  }
  .bento .b-span-2,
  .bento .b-span-3,
  .bento .b-span-4 { grid-column: span 2; }
  .bento .b-row-3 { grid-row: span 2; }
}

.bento-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid rgba(11, 31, 46, 0.06);
}
.bento-card .bento-media {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.bento-card .bento-media .photo-placeholder,
.bento-card .bento-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-card .bento-caption {
  padding: 0.85rem 1.1rem 0.95rem;
  background: white;
  border-top: 1px solid rgba(11, 31, 46, 0.06);
}
.bento-card .bento-caption .b-kicker {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-water-600);
  display: block;
  margin-bottom: 4px;
}
.bento-card .bento-caption .b-title {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-navy-900);
  line-height: 1.25;
}
.bento-card .bento-caption .b-note {
  font-size: 13px;
  color: rgba(11, 31, 46, 0.6);
  margin-top: 3px;
  line-height: 1.4;
}

/* Timeline mit Foto-Slot */
.tl-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  border-radius: 3px;
  overflow: hidden;
}

/* Scrollbarer Termin-Kalender (Startseite) */
.term-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 31, 46, 0.25) transparent;
  overscroll-behavior: contain;
}
.term-scroll::-webkit-scrollbar {
  width: 6px;
}
.term-scroll::-webkit-scrollbar-thumb {
  background: rgba(11, 31, 46, 0.22);
  border-radius: 3px;
}
.term-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 31, 46, 0.4);
}
