/* Schatzkammer Website. Farben und Schriften aus design/DESIGN_TOKENS.md. Größen in rem, damit die Schriftgröße des Browsers gilt. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ground: #F5F1E8;
  --surface: #FFFDF8;
  --surface-muted: #ECE6DA;
  --border: #E3DCCD;
  --divider: #EEE8DC;
  --ink: #1E2420;
  --ink-secondary: #3E423D;
  --ink-muted: #595E57;
  --primary: #24382C;
  --primary-soft: #E1E8DF;
  --accent-ink: #7A4F17;
  --accent-soft: #FBF4E6;
  --accent-soft-border: #E8D7B6;
  --source-photo: #C9B48E;
  --source-story: #9DB39A;
  --danger: #9A3412;
  --tint-whisky: #E9DFCB;
  --tint-art: #E4DACB;
  --tint-stamps: #DDE3E6;
  --tint-pictures: #E6E0D2;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 8.3vw, 7.5rem);
  --section-space: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: #5C3A10; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 600; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.75rem 1rem; background: var(--primary); color: #fff; border-radius: 0.75rem; }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--border); background: var(--ground); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6.8rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; min-height: 3rem; }
.brand svg { color: var(--primary); flex-shrink: 0; }
.brand span { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav ul { display: flex; gap: 2.25rem; list-style: none; padding: 0; }
.site-nav ul a { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; min-width: 3rem; padding-inline: 0.25rem; color: var(--ink-secondary); text-decoration: none; font-size: 1.0625rem; font-weight: 500; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; }
.menu-button { display: none; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 3.75rem; padding: 0.75rem 1.75rem; border-radius: 1rem; font: inherit; font-size: 1.125rem; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; }
.btn--primary { background: var(--primary); color: #fff; border: 0; }
.btn--primary:hover { background: #1A2A20; color: #fff; }
.btn--secondary { min-height: 3.5rem; border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn--secondary:hover { background: var(--primary-soft); color: var(--primary); }
.btn--light { background: var(--surface); color: var(--primary); }
.btn--light:hover { background: #fff; color: var(--primary); }
.btn--outline-light { border: 1.5px solid var(--surface); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--small { min-height: 3.25rem; padding: 0.5rem 1.5rem; border-radius: 0.875rem; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Typografie */
.kicker { font-size: 1.0625rem; font-weight: 500; color: var(--accent-ink); }
.display { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -0.02em; }
.display--page { font-size: clamp(2.5rem, 4.4vw, 3.75rem); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
.section-title--small { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink-secondary); }
.body-lg { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-secondary); }
.muted { color: var(--ink-muted); font-size: 1rem; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 400; line-height: 1.42; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack--s { gap: 1rem; }
.stack--xs { gap: 0.5rem; }
.measure { max-width: 47.5rem; }
.center { text-align: center; margin-inline: auto; }

/* Abschnitte */
.section { padding-block: var(--section-space); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section--accent { background: var(--accent-soft); border-block: 1px solid var(--accent-soft-border); }
.section--dark { background: var(--primary); color: #fff; }
.section--dark .lead { color: var(--primary-soft); }
.section__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6.7vw, 6rem); align-items: center; }
.aside-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: start; }

/* Einstieg */
.hero { padding-block: clamp(2.5rem, 6.7vw, 6rem) clamp(3.5rem, 7.8vw, 7rem); }
.hero .split { gap: 5rem; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual::before { content: ""; position: absolute; inset: 2.5rem 1rem -1rem 2.5rem; border-radius: 2.5rem; background: var(--tint-art); }

.phone { position: relative; width: min(21.25rem, 100%); padding: 0.75rem; border-radius: 2.75rem; background: var(--ink); box-shadow: 0 30px 60px rgba(30, 36, 32, 0.18); }
.phone__screen { border-radius: 2.125rem; overflow: hidden; background: var(--ground); }
.phone__photo { height: 15rem; display: flex; align-items: center; justify-content: center; background: var(--tint-art); }
.phone__body { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem; }
.phone__meta { font-size: 0.8125rem; color: var(--ink-muted); }
.phone__title { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; line-height: 1.1; }
.phone__chip { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem; border-radius: 0.875rem; background: var(--primary-soft); font-size: 0.875rem; line-height: 1.35; }
.phone__story { display: flex; flex-direction: column; gap: 0.625rem; padding: 1rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); }
.phone__story-head { display: flex; align-items: center; gap: 0.75rem; }
.phone__play { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone__story-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.phone__story .quote { font-size: 1rem; }

/* Versprechen */
.promises { background: var(--surface); border-block: 1px solid var(--border); padding-block: 2.75rem; }
.promise { display: flex; gap: 0.875rem; align-items: flex-start; }
.promise svg { color: var(--primary); flex-shrink: 0; }
.promise__title { font-weight: 600; }
.promise__text { font-size: 1rem; color: var(--ink-muted); margin-top: 0.25rem; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; gap: 1.25rem; }
.card--accent { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.card--selected { border: 1.5px solid var(--primary); }
.card h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.card p { color: var(--ink-secondary); }
.card__icon { color: var(--primary); }
.step-number { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--accent-ink); }
.step-visual { height: 11.25rem; border-radius: 0.875rem; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.step-visual--photo { background: var(--tint-whisky); }
.step-visual--voice { background: var(--primary-soft); gap: 0.375rem; }
.step-visual--voice span { width: 0.375rem; border-radius: 0.1875rem; background: var(--primary); }
.step-visual--card { background: var(--ground); border: 1px solid var(--border); padding: 1.25rem; flex-direction: column; align-items: stretch; gap: 0.625rem; font-size: 0.9375rem; }
.field-row { display: flex; justify-content: space-between; gap: 1rem; }
.field-row span:first-child { color: var(--ink-muted); }
.field-row b { border-bottom: 2px solid var(--source-story); }
.field-row b.from-photo { border-color: var(--source-photo); }

/* Sichtbarkeitsstufen */
.levels { display: flex; flex-direction: column; gap: 0.875rem; }
.level { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.375rem; border-radius: 1rem; background: var(--ground); border: 1px solid var(--border); }
.level svg { color: var(--ink-secondary); flex-shrink: 0; }
.level__text { flex-grow: 1; }
.level__title { font-weight: 600; }
.level__desc { font-size: 1rem; color: var(--ink-muted); }
.level--active { background: var(--primary-soft); border: 1.5px solid var(--primary); }
.level--active svg { color: var(--primary); }
.level--active .level__desc { color: var(--ink-secondary); }

/* Sammlungen */
.tile { border-radius: 1.125rem; padding: 1.75rem 1.5rem; min-height: 12.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.tile__title { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.tile__desc { font-size: 1rem; color: var(--ink-secondary); margin-top: 0.25rem; }

/* Nummerierte Schritte */
.numbered { display: flex; gap: 1.125rem; padding: 1.5rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--accent-soft-border); }
.numbered__n { font-family: var(--serif); font-size: 1.375rem; color: var(--accent-ink); min-width: 1.5rem; line-height: 1.3; }
.numbered__title { font-weight: 600; }
.numbered__text { font-size: 1rem; color: var(--ink-secondary); margin-top: 0.25rem; }

/* Preise */
.pricing { width: min(60rem, 100%); margin-inline: auto; }
.price { font-family: var(--serif); font-size: clamp(2.25rem, 3vw, 2.75rem); font-weight: 600; line-height: 1.1; }
.price-row { display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap; }
.card .btn { margin-top: auto; }
.notice { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1.125rem 1.5rem; border-radius: 0.875rem; background: var(--primary-soft); }
.notice svg { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.notice--accent { background: var(--accent-soft); border: 1px solid var(--accent-soft-border); }
.notice--accent svg { color: var(--accent-ink); }

/* Fragen */
.faq-list { display: flex; flex-direction: column; }
.faq { padding-block: 1.5rem; border-bottom: 1px solid var(--divider); }
.faq:last-child { border-bottom: 0; }
.faq h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.faq p { margin-top: 0.625rem; color: var(--ink-secondary); }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 0.5rem; }
.faq-group .faq { border-color: var(--border); }

/* Kontaktkasten */
.contact-box { background: var(--primary); color: #fff; border-radius: 1.25rem; padding: 2rem; display: flex; flex-direction: column; gap: 0.875rem; }
.contact-box h2 { font-size: 1.375rem; font-weight: 600; }
.contact-box p { color: var(--primary-soft); font-size: 1.0625rem; }
.topic-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.topic-nav a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 500; }

/* Listen */
.cross-list { list-style: none; padding: 0; }
.cross-list li { display: flex; gap: 1rem; align-items: center; padding-block: 1.125rem; border-bottom: 1px solid var(--divider); font-size: 1.1875rem; }
.cross-list li:last-child { border-bottom: 0; }
.cross-list svg { color: var(--danger); flex-shrink: 0; }
.plain-list { padding-left: 1.375rem; color: var(--ink-secondary); line-height: 1.8; }

/* Rechtstexte */
.legal { display: flex; flex-direction: column; gap: 2.5rem; color: var(--ink-secondary); }
.legal h2 { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 0.625rem; }
.legal ul { padding-left: 1.375rem; margin-bottom: 0.625rem; }
.facts { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.125rem 2rem; }
.facts dt { color: var(--ink-muted); }
.draft-note { padding: 1.25rem; border-radius: 0.875rem; background: var(--accent-soft); border: 1px solid var(--accent-soft-border); color: var(--accent-ink); font-size: 1rem; }
.placeholder { background: var(--accent-soft); color: var(--accent-ink); padding: 0 0.25em; border-radius: 0.25em; }

/* Einladung */
.invite-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; display: flex; flex-direction: column; gap: 1.125rem; }
.invite-card__head { display: flex; align-items: center; gap: 1rem; }
.invite-card__meta { font-size: 1rem; color: var(--ink-muted); }
.invite-card__thumb { width: 3.75rem; height: 3.75rem; border-radius: 0.75rem; background: var(--tint-whisky); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.invite-card .quote { font-size: 1.1875rem; padding: 1.25rem; border-radius: 1rem; background: var(--ground); }
.role-label { font-size: 1rem; font-weight: 600; color: var(--primary); }
.card--accent .role-label { color: var(--accent-ink); }
.role-title { font-family: var(--serif); font-size: 1.875rem; font-weight: 600; line-height: 1.15; }

/* Abschluss */
.cta { text-align: center; }
.cta .stack { align-items: center; }
.cta .btn-row { justify-content: center; }

/* Fußzeile */
.site-footer { background: var(--ink); color: var(--surface-muted); font-size: 1rem; padding-block: 2.5rem; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: #fff; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }
.site-footer a { color: var(--surface-muted); display: inline-flex; align-items: center; min-height: 3rem; }
.site-footer a:hover { color: #fff; }

/* Tablet */
@media (max-width: 75rem) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 1.5rem; }
  .site-nav ul { gap: 1.5rem; }
}

/* Handy und schmale Fenster */
@media (max-width: 60rem) {
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; align-items: center; min-height: 5rem; padding-block: 0.75rem; }
  .brand { gap: 0.625rem; min-width: 0; }
  .brand svg { width: 30px; height: 30px; }
  /* Der Name bleibt ein Wort: er schrumpft mit der Bildschirmbreite statt umzubrechen. */
  .brand span { font-size: min(1.375rem, 6.2vw); white-space: nowrap; }
  .menu-button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 0.875rem; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; }
  .site-nav { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1.25rem; }
  .js .site-nav:not(.is-open) { display: none; }
  html:not(.js) .menu-button { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--divider); }
  .site-nav ul a { width: 100%; min-height: 3.5rem; font-size: 1.125rem; }
  .site-nav .btn { min-height: 3.75rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }

  .split, .aside-layout, .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hero .split { gap: 3rem; }
  .split--reverse > :first-child { order: 2; }
  .grid--4 { grid-template-columns: minmax(0, 1fr); gap: 1.375rem; }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .grid { gap: 1.25rem; }
  .hero__visual::before { inset: 2rem -0.5rem -1rem -0.5rem; border-radius: 1.75rem; }
  .step-visual { height: 8rem; }
  .step-visual--card { height: auto; }
  .tile { min-height: 8.5rem; padding: 1.125rem; gap: 1rem; }
  .tile svg { display: none; }
  .aside-layout { gap: 2.5rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .facts dd { margin-bottom: 1rem; }
  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 25rem) {
  .brand svg { display: none; }
}

@media (max-width: 22.5rem) {
  .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-button { padding: 0; width: 3rem; justify-content: center; }
}

/* Hilfsklassen, damit keine Inline-Styles nötig sind (strenge CSP) */
.bare { list-style: none; padding: 0; }
.ink { color: var(--ink); }
.tile--whisky { background: var(--tint-whisky); }
.tile--art { background: var(--tint-art); }
.tile--stamps { background: var(--tint-stamps); }
.tile--watches { background: var(--tint-pictures); }
.tile--silver { background: var(--primary-soft); }
.step-visual--voice span:nth-child(1) { height: 1.75rem; }
.step-visual--voice span:nth-child(2) { height: 3.25rem; }
.step-visual--voice span:nth-child(3) { height: 2.25rem; }
.step-visual--voice span:nth-child(4) { height: 4.5rem; }
.step-visual--voice span:nth-child(5) { height: 2.75rem; }
.step-visual--voice span:nth-child(6) { height: 3.75rem; }
.step-visual--voice span:nth-child(7) { height: 1.5rem; }
.step-visual--voice span:nth-child(8) { height: 3rem; }
.step-visual--voice span:nth-child(9) { height: 2rem; }

/* Unterseiten */
.section--flush-top { padding-top: 0; }
.section--page { padding-block: clamp(2.5rem, 6.7vw, 6rem) var(--section-space); }
.split--top { align-items: start; }
.card__title { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.icon-tile { width: 3.5rem; height: 3.5rem; border-radius: 0.875rem; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.with-icon { display: flex; align-items: center; gap: 0.625rem; }
.with-icon svg { flex-shrink: 0; }
.step-number--large { font-size: 2.25rem; line-height: 1; }
.steps { gap: 2rem; }
.aside-sticky { position: sticky; top: 2rem; }
.notice p { margin: 0; }
@media (max-width: 60rem) {
  .aside-sticky { position: static; }
}
