/* Vidarte – Website. Hell und ruhig wie die App: Warmweiß mit Helligkeitsverlauf und feinem Korn,
   Playfair Display für Überschriften, Inter für Text, Olive als einzige Aktionsfarbe.
   Dunkel (data-look="dunkel" am html-Element, Knopf im Kopf): die dunkle Palette der App mit Gold als Aktionsfarbe.
   Farben aus app/Vidarte/Design/VidarteTheme.swift und Components/VidarteBackground.swift. */
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg-top: #FCFBF8; --bg-bottom: #F1EEE7; --bg: #FAF8F3;
  --surface: #FFFDF9; --surface-2: #EADFCC; --text: #2E2E2A; --text-2: #66675F;
  --border: #E2DCD2; --olive: #3F4A3B; --terra: #C46A4B; --terra-text: #A9533A; --gold: #9A7436;
  --sand: #CEB894; --on-primary: #FAF8F3; --primary: #3F4A3B;
  --glass: rgba(252, 251, 248, 0.72);
  --shadow: 0 1px 2px rgba(46, 46, 42, 0.04), 0 12px 32px -12px rgba(46, 46, 42, 0.18);
  --shadow-lg: 0 2px 4px rgba(46, 46, 42, 0.04), 0 30px 60px -20px rgba(46, 46, 42, 0.28);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-screen: 34px;
  --glow: rgba(255, 255, 255, 0.75); --bar-edge: rgba(255, 255, 255, 0.7); --hover: rgba(46, 46, 42, 0.05);
  --primary-hover: #333D30; --ghost: rgba(255, 255, 255, 0.5); --tile: rgba(255, 253, 249, 0.85); --em: #3F4A3B;
  --mat: #FFFEFB; --mat-edge: rgba(46, 46, 42, 0.07);
  --mark-sand: #CEB894; --mark-olive: #3F4A3B; --mark-terra: #C46A4B;
  color-scheme: light;
}
[data-look="dunkel"] {
  --bg-top: #121519; --bg-bottom: #0B0D12; --bg: #0D0F14;
  --surface: #1F2228; --surface-2: #34383F; --text: #EDE7DC; --text-2: #B3B5AE;
  --border: #2F333A; --olive: #AEBE9E; --terra: #C66A4B; --terra-text: #DE8263; --gold: #D4B06A;
  --sand: #DAC5A1; --on-primary: #0B0D12; --primary: #D4B06A; --primary-hover: #E0BF7E;
  --glass: rgba(26, 29, 35, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  --glow: rgba(255, 255, 255, 0.045); --bar-edge: rgba(255, 255, 255, 0.08); --hover: rgba(255, 255, 255, 0.07);
  --ghost: rgba(255, 255, 255, 0.04); --tile: rgba(31, 34, 40, 0.7); --em: #D4B06A;
  --mat: #262A31; --mat-edge: rgba(255, 255, 255, 0.07);
  --mark-sand: #CEB48F; --mark-olive: #6B7F5E; --mark-terra: #C66A4B;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text); background-color: var(--bg);
  /* Lichtschein oben, Verlauf nach unten, kaum sichtbares Korn – wie VidarteBackground in der App */
  background-image:
    radial-gradient(ellipse 80% 520px at 50% -40px, var(--glow), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(var(--bg-top), var(--bg-bottom) 1100px);
  background-repeat: no-repeat, repeat, no-repeat;
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* Kopf: schwebende Glasleiste */
.site-header { position: sticky; top: 0; z-index: 10; padding-block: 12px; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--bar-edge); box-shadow: 0 0 0 1px rgba(46, 46, 42, 0.05), 0 8px 24px -16px rgba(46, 46, 42, 0.25);
  border-radius: 999px; padding: 8px 10px 8px 18px;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .torbogen { height: 28px; width: auto; display: block; }
.wordmark { font-family: var(--serif); font-size: 23px; letter-spacing: -0.3px; line-height: 1; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--text-2); padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--hover); }
/* Hell/Dunkel: Mond im Hellen, Sonne im Dunkeln */
.look { appearance: none; width: 36px; height: 36px; margin-left: 2px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background-color .2s ease; }
.look:hover { background: var(--hover); }
.look svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .3s ease, transform .4s ease; }
.look .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-look="dunkel"] .look .sun { opacity: 1; transform: none; }
[data-look="dunkel"] .look .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
@media (prefers-reduced-motion: reduce) { .look svg { transition: none; } }
.site-nav .lang { border: 1px solid var(--border); }
.site-nav .lang .short { display: none; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 22px; font: 500 16px/1 var(--sans); text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
[hidden] { display: none !important; }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--ghost); }
.btn-ghost:hover { background: var(--surface); }
.btn svg { width: 18px; height: 18px; }
.soon { font-size: 14px; color: var(--text-2); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 24px; }
.hero-text { min-width: 0; }
.app-id { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.app-id img { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--shadow); }
.app-id span { font-size: 15px; color: var(--text-2); line-height: 1.3; }
.app-id strong { display: block; color: var(--text); font-weight: 500; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--em); }
.hero .lead { font-size: 19px; color: var(--text-2); margin: 0 0 32px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.hero-screens { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 18px; min-width: 0; }
.hero-screens .screen { width: min(270px, 46%); }
.hero-screens .screen:nth-child(2) { margin-top: 64px; }

/* App-Ansichten im Passepartout: schmaler heller Rand, ohne Gerätezeichnung */
.screen { position: relative; padding: 7px; border-radius: calc(var(--radius-screen) + 7px); background: var(--mat); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--mat-edge); max-width: 100%; }
.screen .pane { position: relative; border-radius: var(--radius-screen); overflow: hidden; background: var(--surface); aspect-ratio: 720 / 1565; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s ease; }
.screen .dunkel { opacity: 0; }
[data-look="dunkel"] .screen .dunkel { opacity: 1; }
[data-look="dunkel"] .screen .hell { opacity: 0; }

/* Abschnitte */
.section { padding-block: 72px 24px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.section .intro { color: var(--text-2); font-size: 18px; margin: 0 0 32px; max-width: 36em; }

/* Zahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border); margin-top: 40px; }
.facts div { padding: 22px 8px; text-align: center; }
.facts div + div { border-left: 1px solid var(--border); }
.facts b { display: block; font: 400 34px/1.1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--text-2); }

/* Funktionen als Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--tile); border: 1px solid var(--border); border-radius: 28px; padding: 28px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: balance; }
.tile p { margin: 0; color: var(--text-2); font-size: 16px; }
.tile .crop { margin: 24px -8px -28px; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.tile .crop .screen { width: min(250px, 82%); box-shadow: var(--shadow); }
.screen.cropped { padding-bottom: 0; border-radius: calc(var(--radius-screen) + 7px) calc(var(--radius-screen) + 7px) 0 0; }
.screen.cropped .pane { border-radius: var(--radius-screen) var(--radius-screen) 0 0; aspect-ratio: 720 / 1000; }
.t-wide { grid-column: span 4; }
.t-narrow { grid-column: span 2; }
.t-half { grid-column: span 3; }
.t-third { grid-column: span 2; }
.t-full { grid-column: 1 / -1; }
.tile.band { flex-direction: row; align-items: center; gap: 20px; padding: 24px 28px; }
.tile.band .mark { margin: 0; flex: none; }
.tile.band h3 { margin-bottom: 2px; }
.credits { margin: 28px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-2); max-width: 62em; }
.credits a { color: var(--text-2); }
.t-wide.split { flex-direction: row; gap: 24px; }
.t-wide.split > div:first-child { flex: 1; min-width: 0; }
.t-wide.split .crop { margin: 0 -8px -28px 0; flex: 0 0 auto; width: 44%; }
.t-wide.split .crop .screen { width: 100%; }
.mark { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; margin-bottom: 18px; }
.mark svg { width: 20px; height: 20px; }
.m-terra { background: rgba(196, 106, 75, 0.12); color: var(--terra-text); }
.m-olive { background: rgba(63, 74, 59, 0.1); color: var(--olive); }
.m-gold { background: rgba(154, 116, 54, 0.12); color: var(--gold); }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--text); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 15px/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--text-2); }

.cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cities li { background: var(--tile); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: 15px; }

/* Versprechen */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.promise h3 { font-size: 17px; font-weight: 500; margin: 14px 0 4px; }
.promise p { margin: 0; color: var(--text-2); font-size: 16px; }
.promise svg { width: 22px; height: 22px; color: var(--olive); }

/* Abschluss */
.closing { text-align: center; padding-block: 96px 80px; }
.closing img { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.closing h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.closing p { color: var(--text-2); margin: 0 0 28px; }
.closing .cta-row { justify-content: center; }

/* Sanftes Anheben beim Scrollen (nur Bewegung, Inhalt ist immer sichtbar) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
  }
}

/* Textseiten */
.page { padding: 40px 0 72px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 8px; text-wrap: balance; }
.page .stand { color: var(--text-2); font-size: 15px; margin: 0 0 32px; }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 44px 0 8px; text-wrap: balance; }
.page h3 { font-size: 17px; font-weight: 500; margin: 24px 0 4px; }
.page p, .page li { max-width: 40em; }
.page ul { padding-left: 1.2em; }
.page address { font-style: normal; }
.placeholder { background: rgba(196, 106, 75, 0.14); color: var(--terra-text); border: 1px dashed var(--terra); border-radius: 6px; padding: 1px 6px; font-weight: 500; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 0 0 28px; font-size: 15px; color: var(--text-2); }
.note strong { color: var(--terra-text); }
details { background: var(--tile); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 0 0 10px; }
details summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-2); font-size: 20px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 2px; color: var(--text-2); }
.contact { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; margin: 8px 0 40px; box-shadow: var(--shadow); }
.contact a.mail { font-family: var(--serif); font-size: 28px; text-decoration: none; }

/* Fuß */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 44px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide, .t-half { grid-column: span 2; }
  .t-narrow, .t-third { grid-column: span 1; }
  .t-wide.split { flex-direction: column; }
  .t-wide.split .crop { width: auto; margin: 24px -8px -28px; justify-content: center; }
  .t-wide.split .crop .screen { width: min(240px, 80%); }
  .steps, .promise { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide, .t-half, .t-narrow, .t-third { grid-column: auto; }
  .site-header .bar { border-radius: 24px; padding: 8px 10px 8px 14px; }
  .site-nav { font-size: 14px; }
  .site-nav a { padding: 6px 9px; }
  .site-nav .opt { display: none; }
  .site-nav .lang .long { display: none; }
  .site-nav .lang .short { display: inline; }
  .look { width: 32px; height: 32px; }
  .tile.band { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero h1 { font-size: 42px; }
  .hero-screens .screen { width: 46%; }
  .hero-screens .screen:nth-child(2) { margin-top: 40px; }
}
