/* memoraris Website. Ein Grundton über die ganze Seite, Produktbilder tragen die Gestaltung. */
:root {
  --bg: #f4f4f1;
  --bg-2: #eaebe6;
  --fg: #1b2122;
  --muted: #5f6a6b;
  --line: #d8dbd6;
  --accent: #3f6b52;
  --accent-hover: #345a45;
  --on-accent: #fff;
  --frame: #fff;
  --shadow: 0 30px 60px -30px rgba(27, 33, 34, 0.35);
}
html[data-theme="dark"] {
  --bg: #1a2122;
  --bg-2: #222b2c;
  --fg: #ecede9;
  --muted: #9aa5a4;
  --line: #2f3a3b;
  --accent: #6f9f85;
  --accent-hover: #86b39b;
  --on-accent: #0f1516;
  --frame: #222b2c;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
h3 { font-size: 17px; letter-spacing: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.kopf .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.marke { font-family: Literata, Georgia, serif; font-size: 22px; letter-spacing: -0.01em; }
.menu { display: flex; gap: 28px; margin: 0 auto; font-size: 15px; }
.menu a { color: var(--fg); opacity: 0.85; }
.menu a:hover { opacity: 1; }
.kopf-rechts { display: flex; align-items: center; gap: 22px; font-size: 15px; }

/* Knöpfe */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.pill-voll { background: var(--accent); color: var(--on-accent); }
.pill-voll:hover { background: var(--accent-hover); }
.pill-leer { background: transparent; color: var(--fg); border-color: var(--line); }
.pill-leer:hover { border-color: var(--muted); }
.pill-klein { height: 38px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { padding: 112px 0 0; text-align: center; }
.hero h1 { max-width: 15em; margin: 0 auto; }
.hero .unter { max-width: 36em; margin: 22px auto 0; font-size: 19px; }
.anfrage { display: flex; justify-content: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.anfrage .feld { width: 300px; }
.feld {
  height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--frame); color: var(--fg); font: inherit; font-size: 15px;
}
.feld:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-bild { margin-top: 72px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.rahmen { border: 1px solid var(--line); border-radius: 14px; background: var(--frame); overflow: hidden; box-shadow: var(--shadow); }

/* Abschnitte */
.abschnitt { padding: 120px 0; }
/* Oben ausrichten: die Liste ändert beim Aufklappen ihre Höhe, das Bild soll dabei stehen bleiben */
.zwei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.zwei .rahmen { position: sticky; top: 100px; }
.wechsel img { aspect-ratio: 2880 / 1614; object-fit: cover; object-position: top left; width: 100%; }
.zwei.umgekehrt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* Aufklappliste wie ein Inhaltsverzeichnis */
.liste { margin-top: 44px; border-top: 1px solid var(--line); }
.liste details { border-bottom: 1px solid var(--line); }
.liste summary { list-style: none; cursor: pointer; padding: 16px 0 16px 22px; position: relative; font-weight: 500; }
.liste summary::-webkit-details-marker { display: none; }
.liste details[open] summary::before { content: ""; position: absolute; left: 0; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.liste details p { padding: 0 0 18px 22px; color: var(--muted); max-width: 32em; }
.liste details a { display: inline-block; margin: 0 0 18px 22px; text-decoration: underline; text-underline-offset: 4px; }

/* Vier Karten */
.vier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.karte { display: flex; flex-direction: column; gap: 14px; }
.karte .bild { background: var(--bg-2); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 36px 36px 0; }
.karte .bild img { border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 20px 40px -24px rgba(27, 33, 34, 0.4); }
.karte .bild.oben { align-items: flex-start; padding: 0 36px 36px; }
.karte .bild.oben img { border-radius: 0 0 10px 10px; border-top: 0; border-bottom: 1px solid var(--line); }
.karte .bild.mittig { align-items: center; padding: 36px; }
.karte .bild.mittig img { border-radius: 10px; border-bottom: 1px solid var(--line); }
.karte p { color: var(--muted); max-width: 30em; }

/* Ruhige Mitte */
.mitte { text-align: center; padding: 140px 0; }
.mitte .zahl { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1; font-weight: 500; }
.mitte .satz { max-width: 28em; margin: 20px auto 0; font-size: 21px; }
.mitte .klein { margin-top: 14px; }

/* Ringe */
.ringe { aspect-ratio: 1; width: 100%; max-width: 440px; margin: 0 auto; }
.ringe circle, .ringe line { stroke: var(--fg); fill: none; vector-effect: non-scaling-stroke; }
.ringe .leise { opacity: 0.18; }
.ringe .punkt { fill: var(--accent); stroke: none; }

/* Schluss */
.schluss { text-align: center; padding: 120px 0 140px; border-top: 1px solid var(--line); }
.schluss h2 { max-width: 16em; margin: 0 auto; }
.schluss .unter { max-width: 34em; margin: 18px auto 0; }

/* Fuß */
.fuss { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
.fuss .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.fuss ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.fuss a:hover { color: var(--fg); }
.fuss strong { color: var(--fg); font-weight: 500; }

/* Funktionen-Seite */
.funktion { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.funktion:first-of-type { border-top: 0; }
.funktion p { color: var(--muted); margin-top: 12px; max-width: 30em; }
.kopfzeile { padding: 96px 0 24px; }
.kopfzeile .unter { max-width: 36em; margin-top: 18px; font-size: 19px; }

@media (max-width: 860px) {
  .menu, .kopf-rechts .leise { display: none; }
  .hero { padding-top: 72px; }
  .zwei, .zwei.umgekehrt, .funktion { grid-template-columns: 1fr; gap: 36px; }
  .vier { grid-template-columns: 1fr; }
  .abschnitt { padding: 80px 0; }
  .fuss .wrap { grid-template-columns: 1fr 1fr; }
  .anfrage .feld { width: 100%; }
}

/* Besonderer Zug: zwei Haarlinien am Rand der Spalte über die ganze Seite, Trennlinien als Zeitband mit Skala,
   im Einstieg eine feine Lineatur wie auf Aktenpapier */
body {
  background-image: linear-gradient(var(--haar), var(--haar)), linear-gradient(var(--haar), var(--haar));
  background-size: 1px 100%, 1px 100%;
  background-repeat: no-repeat;
  background-position: calc(50% - 560px) 0, calc(50% + 560px) 0;
}
:root { --haar: color-mix(in srgb, var(--line) 70%, transparent); }
html[data-theme="dark"] { --haar: color-mix(in srgb, var(--line) 80%, transparent); }
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 40%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--line) 45%, transparent) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.hero .wrap { position: relative; }
.zeitband {
  height: 10px; margin: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 112px 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 40px) 0 0 / 100% 100% no-repeat;
}
.zeitband.mittig { background-position: 50% 100%, 0 100%, 0 0; }
.schluss { border-top: 0; }
.funktion { border-top: 0; }
.funktion::before { content: ""; grid-column: 1 / -1; height: 10px; margin: -72px 0 0; background: inherit; }
.funktion + .funktion::before {
  background:
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 40px) 0 0 / 100% 100% no-repeat;
}

/* Textabschnitt und Fragen */
.text { display: grid; gap: 18px; font-size: 17px; color: var(--muted); max-width: 36em; }
.text p { color: inherit; }
.fragen { margin: 0; border-top: 1px solid var(--line); }
.fragen dt { font-weight: 500; padding: 18px 0 6px; }
.fragen dd { margin: 0; padding: 0 0 18px; color: var(--muted); border-bottom: 1px solid var(--line); max-width: 36em; }

/* Fragen-Seite */
.themen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding: 56px 0; }
.themen h2 { font-size: 26px; }
@media (max-width: 860px) { .themen { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; } }

/* Rechtstexte: eine schmale Spalte */
.recht { max-width: 760px; padding-bottom: 96px; }
.recht h2 { font-size: 22px; margin-top: 40px; }
.recht p { margin-top: 12px; color: var(--muted); }
.recht p a { text-decoration: underline; text-underline-offset: 4px; }

/* Preistabelle: Einstiegsangebot hervorgehoben */
.mitte .frist { display: inline-block; margin-top: 18px; padding: 6px 16px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 500; }
.preise { max-width: 760px; margin: 48px auto 0; overflow-x: auto; }
.preise table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.preise th, .preise td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.preise thead th { font-weight: 500; font-size: 17px; }
.preise tbody th { font-weight: 400; color: var(--muted); }
.preise strong { font-size: 22px; font-weight: 500; }
.preise .hervor { background: color-mix(in srgb, var(--accent) 8%, var(--frame)); }
.preise thead .hervor { color: var(--accent); border-top: 2px solid var(--accent); border-radius: 10px 10px 0 0; }
@media (max-width: 860px) { .preise th, .preise td { padding: 10px 8px; font-size: 14px; } }
.anfrage.einstieg { margin-top: 40px; }
.anfrage.einstieg .feld { width: 240px; }
/* Honigtopf für Bots, für Menschen unsichtbar */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Danke-Seite: Meldung je Anker, ohne JavaScript */
.meldung { display: none; }
.meldung:target { display: block; }
.danke:not(:has(.meldung:target)) .meldung.standard { display: block; }
.danke { padding-top: 96px; }
.anfrage.einstieg + .klein { max-width: 36em; margin-left: auto; margin-right: auto; }
.meldung { scroll-margin-top: 100vh; }
