/* Erinnerungen in Farbe. Leitbild: ein altes Fotoalbum. Dunkle Albumseiten, Abzüge mit Büttenrand,
   Pergamin dazwischen. Schrift für gute Lesbarkeit im Alter (Atkinson Hyperlegible Next), Überschriften Fraunces. */

@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-next-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --karton: #2c2621;
  --karton-tief: #221d19;
  --kreide: #f2eee5;
  --kreide-leise: #cfc7ba;
  --pergamin: #eaebe5;
  --papier: #fafaf7;
  --abzug: #f6f3ec;
  --tinte: #22201d;
  --tinte-leise: #57534d;
  --gruen: #2d6a55;
  --gruen-tief: #22533f;
  --fokus: #d9a441;
  --rahmen: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Atkinson", system-ui, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
  padding-bottom: 5.5rem;
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
@media (min-width: 900px) { body { font-size: 1.25rem; } }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 560; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.015em; font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 600; margin-bottom: .4rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }

.sprung { position: absolute; left: 1rem; top: -4rem; background: var(--kreide); color: var(--tinte); padding: .75rem 1rem; z-index: 50; }
.sprung:focus { top: 1rem; }

.rahmen { width: 100%; max-width: var(--rahmen); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 760px) { .rahmen { padding: 0 2rem; } }
.schmal { max-width: 46rem; }

.abschnitt { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.papier { background: var(--papier); }
.pergamin { background: var(--pergamin); }
.karton {
  background-color: var(--karton);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23k)'/%3E%3C/svg%3E");
  color: var(--kreide);
}
.karton a:not(.knopf) { color: var(--kreide); }

.fliesstext { max-width: 36em; }
.einleitung { font-size: 1.15em; line-height: 1.5; max-width: 32em; }
.hinweis { font-size: .95em; color: var(--kreide-leise); }
.quelle { font-size: .8rem; color: var(--tinte-leise); }
.karton .quelle { color: var(--kreide-leise); }

/* Kopf */
.kopf { border-bottom: 1px solid rgba(242, 238, 229, .12); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.marke { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(1.1rem, 4.6vw, 1.35rem); font-weight: 500; text-decoration: none; white-space: nowrap; }
.kopf-telefon { font-weight: 700; font-size: clamp(.95rem, 4vw, 1.05rem); text-decoration: none; white-space: nowrap; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.6rem; padding: .85rem 1.6rem;
  background: var(--gruen); color: #fff; border: 2px solid var(--gruen); border-radius: .5rem;
  font-weight: 700; font-size: 1.05em; line-height: 1.25; text-decoration: none;
  box-shadow: 0 2px 0 var(--gruen-tief);
}
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); }
.knopf-hell { background: var(--kreide); border-color: var(--kreide); color: var(--tinte); box-shadow: none; }
.knopf-hell:hover { background: #fff; border-color: #fff; }
.knopf-rand { background: transparent; border-color: rgba(242, 238, 229, .6); color: var(--kreide); box-shadow: none; }
.knopf-rand:hover { background: rgba(242, 238, 229, .1); border-color: var(--kreide); }
.aktion { margin: 2rem 0 .9rem; }
.aktion-zwei { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Auftakt */
.auftakt { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.auftakt-raster { display: grid; align-items: center; }
.auftakt h1 { margin-bottom: 1.4rem; }
.vergleich-hoch { margin: 0 auto; width: 100%; max-width: 32rem; }
/* Auf dem Handy kommt das Foto direkt unter die Überschrift, damit der Vorher-Nachher-Moment sofort sichtbar ist */
@media (max-width: 899px) {
  .auftakt-text { display: contents; }
  .auftakt h1 { order: 1; }
  .auftakt .vergleich-hoch { order: 2; margin-bottom: 2.25rem; }
  .auftakt-text > :not(h1) { order: 3; }
}
@media (min-width: 900px) {
  .auftakt-raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4.5rem; }
}

/* Abzug mit Büttenrand und Fotoecken */
.abzug {
  position: relative;
  border: 16px solid transparent;
  border-image: url("/img/buettenrand.svg") 20 fill round;
}
.pergamin .abzug, .papier .abzug { filter: drop-shadow(0 8px 16px rgba(34, 32, 29, .18)); }
/* Fotoecken aus schwarzem Papier, wie im Album: sie stehen über die Ecke des Abzugs hinaus */
.ecke { position: absolute; width: 2.75rem; height: 2.75rem; pointer-events: none; }
@media (min-width: 760px) { .ecke { width: 3.6rem; height: 3.6rem; } }
.ecke-ol { top: -22px; left: -22px; clip-path: polygon(0 0, 100% 0, 0 100%); background: linear-gradient(135deg, #191512 55%, #463d35); }
.ecke-or { top: -22px; right: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%); background: linear-gradient(225deg, #191512 55%, #463d35); }
.ecke-ul { bottom: -22px; left: -22px; clip-path: polygon(0 0, 100% 100%, 0 100%); background: linear-gradient(45deg, #191512 55%, #463d35); }
.ecke-ur { bottom: -22px; right: -22px; clip-path: polygon(100% 0, 100% 100%, 0 100%); background: linear-gradient(315deg, #191512 55%, #463d35); }

/* Vorher-Nachher-Regler */
.vergleich { margin: 0; }
.vergleich-bild { position: relative; overflow: hidden; --pos: 50%; touch-action: pan-y; background: #ccc; }
.vergleich-vorher { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vergleich-vorher img { width: 100%; height: 100%; object-fit: cover; }
.vergleich-griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--kreide); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none;
}
.vergleich-griff::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 3.25rem; height: 3.25rem; translate: -50% -50%;
  border-radius: 50%; background: var(--kreide) center / 1.9rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%2322201d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9 5 16l7 7M20 9l7 7-7 7'/%3E%3C/svg%3E");
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.vergleich-marke {
  position: absolute; top: .75rem; padding: .2rem .6rem; border-radius: .3rem;
  background: rgba(34, 29, 25, .72); color: var(--kreide); font-size: .85rem; font-weight: 700; pointer-events: none;
}
.vergleich-marke-links { left: .75rem; }
.vergleich-marke-rechts { right: .75rem; }
.vergleich-regler {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.vergleich-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 3.5rem; height: 60rem; }
.vergleich-regler::-moz-range-thumb { width: 3.5rem; height: 60rem; border: 0; }
.vergleich-bild:has(.vergleich-regler:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 4px; }
.vergleich figcaption { margin-top: 1.1rem; display: grid; gap: .2rem; }
.bildzeile { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.1rem; }

/* Gesichter */
.zweispaltig { display: grid; gap: .5rem 4rem; }
@media (min-width: 900px) { .zweispaltig { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.gesichter { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 760px) { .gesichter { gap: 2rem; } }
.gesichter img { width: 100%; border-radius: .25rem; }
.gesichter p { margin-top: .75rem; font-size: .8em; line-height: 1.4; color: var(--tinte-leise); }
.gesichter strong { color: var(--tinte); }
.gesichter li:last-child img { box-shadow: 0 0 0 4px var(--gruen); }

.vorteile { margin: 4rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 900px) { .vorteile { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.vorteile > div { border-top: 1px solid rgba(34, 32, 29, .2); padding-top: 1.1rem; }
.vorteile dt { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.35rem; margin-bottom: .35rem; }
.vorteile dd { margin: 0; }

/* Fotoarten */
.fotoarten { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 700px) { .fotoarten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fotoarten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fotoarten li { border-top: 1px solid rgba(34, 32, 29, .2); padding: .9rem 0; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }

/* Familie */
.vergleich-breit { max-width: 60rem; }

/* Ablauf */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; counter-reset: schritt; }
@media (min-width: 900px) { .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; }
.schritte li::before {
  content: counter(schritt); grid-row: span 2;
  font-family: "Fraunces", Georgia, serif; font-size: 3.25rem; line-height: .95; font-weight: 400; color: var(--gruen);
}

/* Preise */
.preise-raster { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .preise-raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4.5rem; } }
.preisliste {
  background: var(--abzug); padding: 2rem 1.5rem 1.75rem;
  border: 4px double rgba(34, 32, 29, .55); box-shadow: 0 8px 20px rgba(34, 32, 29, .1);
}
@media (min-width: 760px) { .preisliste { padding: 2.5rem 2.5rem 2rem; } }
.preisliste h2 { margin-bottom: 1.25rem; }
.preiszeilen { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.preiszeilen li { display: flex; align-items: baseline; gap: .5rem; padding: .55rem 0; }
.posten small { display: block; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: .85em; font-weight: 400; color: var(--gruen); }
.punkte { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgba(34, 32, 29, .4); transform: translateY(-.3em); }
.betrag { font-weight: 700; white-space: nowrap; }
.hervor { font-weight: 700; }
.kleingedruckt { font-size: .85em; color: var(--tinte-leise); }
.preis-erklaerung h3 { margin-top: 1.75rem; }
.preis-erklaerung h3:first-child { margin-top: 0; }

/* Geschenk und Schluss */
.geschenk h2, .schluss h2 { margin-bottom: 1.25rem; }
.geschenk .einleitung { margin-bottom: 1.25rem; }

/* Fragen */
.fragen details { border-bottom: 1px solid rgba(34, 32, 29, .2); }
.fragen details:first-child { border-top: 1px solid rgba(34, 32, 29, .2); }
.fragen summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.05em;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1; color: var(--gruen); flex: none; }
.fragen details[open] summary::after { content: "−"; }
.fragen details p { padding-bottom: 1.25rem; max-width: 38em; }

/* Über mich */
.ueber-raster { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) { .ueber-raster { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 4.5rem; } }
.portrait { margin: 0; max-width: 18rem; rotate: -1.5deg; }

/* Fuß */
.fuss { background: var(--karton-tief); color: var(--kreide-leise); padding: 2.5rem 0 3rem; font-size: .9rem; }
.fuss-innen { display: grid; gap: .9rem; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { color: var(--kreide); }
.fuss .quelle { color: var(--kreide-leise); max-width: 46rem; }

/* Leiste unten (nur Handy) */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(34, 29, 25, .96); box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
  translate: 0 110%; transition: translate .25s ease;
}
.leiste .knopf { width: 100%; }
.leiste.sichtbar { translate: 0 0; }
@media (min-width: 760px) { .leiste { display: none; } }
@media (prefers-reduced-motion: reduce) { .leiste { transition: none; } }

/* Rechtstexte */
.recht { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.recht h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 2rem; }
.recht h2 { font-size: 1.5rem; margin: 2.25rem 0 .6rem; }
.recht p, .recht li { max-width: 40em; }
.recht ul { padding-left: 1.25rem; }
