/* Salon Morgenruh (Muster). Leitmotiv: der hohe ovale Spiegel aus dem Salon. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --puder: #f6eee8;
  --wand: #ead8ce;
  --glas: #fdf9f5;
  --pflaume: #3a2530;
  --pflaume-weich: #6b5560;
  --kupfer: #a9543f;
  --kupfer-dunkel: #8e4431;
  --kupfer-hell: #e8bfae;
  --titel: "Newsreader", Georgia, serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --zeit: 1s;
  --weich: cubic-bezier(.4, 0, .2, 1);
  --rand: clamp(1rem, 4vw, 3.5rem);
  --abstand: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body { margin: 0; background: var(--puder); color: var(--pflaume); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--titel); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--kupfer-dunkel); outline-offset: 3px; border-radius: 4px; }
.erzaehlung :focus-visible, .kontakt :focus-visible { outline-color: var(--kupfer-hell); }

.muster-hinweis { background: var(--pflaume); color: var(--puder); font-size: .875rem; line-height: 1.4; padding: .5rem var(--rand); text-align: center; }

/* Kopf */
.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding: .75rem var(--rand); background: var(--wand); }
.marke { font-family: var(--titel); font-size: 1.45rem; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.kopf nav { display: flex; align-items: center; gap: clamp(.25rem, 2vw, 1.75rem); font-size: .95rem; }
.kopf nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .35rem; text-decoration: none; }
.kopf nav a:hover, .kopf nav a[aria-current] { text-decoration: underline; }
@media (max-width: 400px) { .marke { font-size: 1.25rem; } .kopf nav { font-size: .9rem; } }

/* Der Spiegel: ein hohes Oval mit feinem Rand */
.spiegel { position: relative; aspect-ratio: 3 / 4; border-radius: 999px; overflow: hidden; background: var(--wand); outline: 1px solid color-mix(in srgb, currentColor 30%, transparent); outline-offset: .55rem; }
.spiegel img { width: 100%; height: 100%; object-fit: cover; }

/* Start */
.start { background: var(--wand); padding: clamp(1.5rem, 5vw, 4rem) var(--rand) var(--abstand); display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.start h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: 1; }
.start__satz { margin-top: 1.1rem; max-width: 34rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.45; }
.zeiten { margin-top: 1.9rem; }
.zeiten__titel { font-weight: 600; font-size: .98rem; }
.zeiten__liste { list-style: none; margin: .65rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.zeit-knopf { font: inherit; font-size: 1.02rem; min-height: 48px; padding: .5rem 1.15rem; border-radius: 999px; border: 1px solid var(--pflaume); background: var(--glas); color: var(--pflaume); cursor: pointer; transition: background-color var(--zeit) var(--weich), color var(--zeit) var(--weich); }
.zeit-knopf:hover { background: var(--pflaume); color: var(--puder); }
.zeiten__mehr { margin-top: .85rem; font-size: .98rem; }
.start__offen { margin-top: 1.5rem; font-size: .95rem; color: var(--pflaume-weich); }
.start .spiegel { width: min(76vw, 21rem); justify-self: center; view-transition-name: spiegel; }
@media (min-width: 900px) {
  .start { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 6vw, 5.5rem); }
  .start .spiegel { width: min(100%, 27rem, calc(72svh * .75)); justify-self: end; margin-right: .6rem; }
}

/* Erzählung: ohne JavaScript stehen die Bilder einfach untereinander. */
.erzaehlung { background: var(--pflaume); color: var(--puder); padding-block: var(--abstand) 0; }
.erzaehlung__kopf { padding-inline: var(--rand); max-width: 44rem; }
.erzaehlung h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.erzaehlung__kopf p { margin-top: .75rem; color: var(--kupfer-hell); }
.schritte { list-style: none; margin: 0; padding: 2.5rem var(--rand) var(--abstand); display: grid; gap: 3.5rem; }
.schritt .spiegel { width: min(72vw, 20rem); margin: 0 auto 2rem; background: #4b3540; }
.schritt__zeit { font-family: var(--titel); font-style: italic; font-size: 1.3rem; color: var(--kupfer-hell); }
.schritt h3 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-top: .15rem; }
.schritt__text > p:last-child { margin-top: .7rem; max-width: 30rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }

.bahn.lebt { position: relative; }
.buehne { position: sticky; top: 0; z-index: 2; height: 50svh; display: grid; place-items: center; padding-block: 1rem; background: var(--pflaume); }
.buehne .spiegel { height: 100%; width: auto; aspect-ratio: 3 / 4; margin: 0; background: #4b3540; }
.buehne .spiegel img { position: absolute; inset: 0; opacity: 0; transform: scale(1.035); transition: opacity var(--zeit) var(--weich), transform 1.6s var(--weich); }
.buehne .spiegel img.aktiv { opacity: 1; transform: none; }
.bahn.lebt .schritte { gap: 0; padding-top: 1.5rem; }
.bahn.lebt .schritt { min-height: 58svh; opacity: .68; transition: opacity var(--zeit) var(--weich); }
.bahn.lebt .schritt.aktiv { opacity: 1; }
.bahn.lebt .schritt:last-child { min-height: 42svh; }
@media (min-width: 900px) {
  .schritt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: center; }
  .schritt .spiegel { margin: 0; justify-self: center; width: min(100%, 22rem); }
  .bahn.lebt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 3rem; padding-inline: var(--rand); }
  .buehne { height: 100svh; padding-block: 0; }
  .buehne .spiegel { height: min(76svh, 42rem); }
  .bahn.lebt .schritte { padding: 0 0 12svh; }
  .bahn.lebt .schritt { display: flex; align-items: center; min-height: 82svh; }
  .bahn.lebt .schritt:last-child { min-height: 70svh; }
}

/* Leistungen */
.abschnitt { padding: var(--abstand) var(--rand); }
.tinte { font-family: var(--titel); font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.16; letter-spacing: -.01em; max-width: 56rem; }
.leistungen { display: grid; gap: clamp(3.5rem, 7vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); }
.leistung { display: grid; gap: 1.75rem; align-items: start; }
.leistung .spiegel { width: min(44vw, 11rem); margin: .6rem; }
.leistung h2, .leistung h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
@media (min-width: 760px) {
  .leistung { grid-template-columns: minmax(10rem, 3fr) minmax(0, 8fr); column-gap: clamp(2.5rem, 6vw, 6rem); }
  .leistung .spiegel { width: 100%; max-width: 17rem; margin: .6rem; }
}
.leistung .spiegel--klein { width: min(44vw, 11rem); margin: 1.75rem .6rem .6rem; }
.preise + .randnotiz { margin-top: 1.75rem; }
.preise { width: 100%; max-width: 46rem; border-collapse: collapse; margin-top: 1rem; }
.preise caption { text-align: left; font-size: .95rem; color: var(--pflaume-weich); padding-bottom: .6rem; }
.preise th, .preise td { padding: .8rem 0; border-top: 1px solid color-mix(in srgb, var(--pflaume) 22%, transparent); text-align: left; vertical-align: baseline; font-weight: 400; }
.preise thead th { border-top: 0; padding-block: 0 .4rem; font-size: .875rem; color: var(--pflaume-weich); }
.preise tbody th { padding-right: .75rem; }
.preise td { white-space: nowrap; padding-left: .75rem; }
.preise .rechts { text-align: right; }
.preise small { display: block; font-size: .92rem; line-height: 1.4; color: var(--pflaume-weich); margin-top: .15rem; font-weight: 400; }
.mehr { margin-top: 1.25rem; }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.6rem; border-radius: 999px; border: 0; background: var(--kupfer); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--zeit) var(--weich); }
.knopf:hover { background: var(--kupfer-dunkel); }

.randnotiz { font-family: var(--titel); font-style: italic; font-size: 1.1rem; line-height: 1.4; color: var(--pflaume-weich); max-width: 32rem; padding-left: .9rem; border-left: 2px solid var(--kupfer); }

/* Team: leere Spiegel */
.team { background: var(--wand); }
.team h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.team__satz { margin-top: .9rem; max-width: 34rem; }
.team__reihe { list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 4vw, 4rem); max-width: 60rem; }
.team__reihe .spiegel { background: var(--glas); margin: .6rem; display: grid; place-items: center; text-align: center; padding: .75rem; font-family: var(--titel); font-size: clamp(.98rem, 2.1vw, 1.45rem); line-height: 1.2; }
.team__reihe p { margin-top: 1.1rem; font-size: .98rem; line-height: 1.4; text-align: center; }
.team .randnotiz { margin-top: clamp(2rem, 4vw, 3rem); }

/* Fragen */
.fragen { display: grid; gap: 2rem; }
.fragen h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
@media (min-width: 900px) {
  .fragen { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
  .fragen h2 { position: sticky; top: 2rem; align-self: start; }
}
.fragen details { border-top: 1px solid color-mix(in srgb, var(--pflaume) 22%, transparent); }
.fragen details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--pflaume) 22%, transparent); }
.fragen summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding-block: .8rem; cursor: pointer; font-family: var(--titel); font-size: 1.28rem; line-height: 1.25; list-style: none; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; flex: none; width: .7rem; height: 1.05rem; border: 1px solid currentColor; border-radius: 999px; transition: background-color var(--zeit) var(--weich); }
.fragen details[open] summary::after { background: var(--pflaume); }
.fragen details p { padding-bottom: 1.2rem; max-width: 40rem; }

/* Kontakt */
.kontakt { background: var(--pflaume); color: var(--puder); padding: var(--abstand) var(--rand) 2.5rem; }
.kontakt h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.kontakt__spalten { display: grid; gap: 2rem; margin-top: 2.25rem; }
@media (min-width: 760px) { .kontakt__spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.kontakt h3 { font-family: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: 0; line-height: 1.5; color: var(--kupfer-hell); }
.textknopf { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; cursor: pointer; }
.fuss { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--puder) 25%, transparent); font-size: .9rem; line-height: 1.5; color: #e2d5ce; }
.fuss p + p { margin-top: .4rem; }

/* Unterseiten */
.seite-kopf { background: var(--wand); padding: clamp(1.5rem, 5vw, 4rem) var(--rand) clamp(3rem, 6vw, 5rem); display: grid; gap: 2rem; align-items: center; }
.seite-kopf h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.02; }
.seite-kopf p { margin-top: 1rem; max-width: 34rem; font-size: 1.15rem; line-height: 1.45; }
.seite-kopf .spiegel { width: min(52vw, 13rem); justify-self: center; view-transition-name: spiegel; }
.seite-kopf .spiegel--quer { width: calc(100% - 1.2rem); max-width: 34rem; aspect-ratio: 2 / 1; }
@media (min-width: 900px) {
  .seite-kopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .seite-kopf .spiegel { width: min(100%, 19rem, calc(56svh * .75)); justify-self: end; margin-right: .6rem; }
  .seite-kopf .spiegel--quer { width: calc(100% - 1.2rem); max-width: 30rem; }
}
.hinweis { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 40rem; }
.hinweis h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hinweis p { margin-top: .6rem; }

/* Termin */
.wahl { border: 0; margin: 0; padding: 0; min-width: 0; }
.wahl legend, .termin-titel { padding: 0; font-family: var(--titel); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.termin-unter { margin-top: .4rem; color: var(--pflaume-weich); }
.wahl__liste { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; max-width: 40rem; }
.wahl__zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .6rem 1.25rem; border: 1px solid color-mix(in srgb, var(--pflaume) 35%, transparent); border-radius: 999px; background: var(--glas); cursor: pointer; line-height: 1.25; transition: background-color var(--zeit) var(--weich), color var(--zeit) var(--weich); }
.wahl__zeile span:last-child { white-space: nowrap; font-size: .95rem; }
.wahl__zeile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl__zeile:has(input:checked) { background: var(--pflaume); color: var(--puder); border-color: var(--pflaume); }
.wahl__zeile:has(input:focus-visible) { outline: 2px solid var(--kupfer-dunkel); outline-offset: 3px; }
.tage { display: grid; gap: 1.5rem; margin-top: 1.1rem; }
.tag h3 { font-family: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: 0; line-height: 1.5; }
.tag .zeiten__liste { margin-top: .4rem; }
.termin-teil + .termin-teil { margin-top: clamp(2.75rem, 5vw, 4rem); }
.termin-teil .randnotiz { margin-top: 1.75rem; }

/* Rückmeldung nach dem Tippen */
[popover] { position: fixed; inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom)); margin: 0 auto; width: auto; max-width: 30rem; border: 0; border-radius: 1.75rem; padding: 1.5rem 1.5rem 1.25rem; background: var(--glas); color: var(--pflaume); box-shadow: 0 1.25rem 3.5rem rgba(58, 37, 48, .35); opacity: 0; transform: translateY(1.25rem); transition: opacity var(--zeit) var(--weich), transform var(--zeit) var(--weich), overlay var(--zeit) allow-discrete, display var(--zeit) allow-discrete; }
[popover]:popover-open { opacity: 1; transform: none; }
@starting-style { [popover]:popover-open { opacity: 0; transform: translateY(1.25rem); } }
[popover]::backdrop { background: rgba(58, 37, 48, 0); transition: background-color var(--zeit) var(--weich), overlay var(--zeit) allow-discrete, display var(--zeit) allow-discrete; }
[popover]:popover-open::backdrop { background: rgba(58, 37, 48, .35); }
@starting-style { [popover]:popover-open::backdrop { background: rgba(58, 37, 48, 0); } }
.melde__titel { font-family: var(--titel); font-size: 1.75rem; line-height: 1.15; }
.melde__text { margin-top: .5rem; }
.melde__muster { margin-top: .75rem; font-size: .92rem; line-height: 1.4; color: var(--pflaume-weich); }
.melde__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; }
.melde__aktionen a { display: inline-flex; align-items: center; min-height: 44px; }
.melde__aktionen .knopf { min-height: 48px; padding-block: .5rem; }

/* Leiste am Handy */
.leiste { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--glas); box-shadow: 0 -1px 0 color-mix(in srgb, var(--pflaume) 18%, transparent); view-transition-name: leiste; }
.leiste .knopf { min-height: 48px; padding-block: .4rem; }
.leiste__anruf { font: inherit; min-height: 48px; padding: .4rem 1.1rem; border-radius: 999px; border: 1px solid var(--pflaume); background: transparent; color: var(--pflaume); cursor: pointer; }
body { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .leiste { display: none; } body { padding-bottom: 0; } }

/* Bewegung nur, wenn sie erwünscht ist */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--zeit); animation-timing-function: var(--weich); }
  ::view-transition-group(spiegel) { animation-duration: var(--zeit); animation-timing-function: var(--weich); }
  ::view-transition-old(spiegel), ::view-transition-new(spiegel) { animation-duration: var(--zeit); animation-timing-function: var(--weich); height: 100%; object-fit: cover; overflow: hidden; }
  ::view-transition-group(leiste) { animation: none; }

  .fragen details::details-content { block-size: 0; overflow: hidden; transition: block-size .9s var(--weich), content-visibility .9s allow-discrete; }
  .fragen details[open]::details-content { block-size: auto; }

  /* Der Satz färbt sich beim Scrollen Wort für Wort ein. Ohne Unterstützung steht er einfach da. */
  @supports (animation-timeline: view()) {
    .tinte { view-timeline: --tinte block; }
    .tinte .wort { animation: tinte linear both; animation-timeline: --tinte; animation-range: cover calc(8% + var(--i) / var(--n) * 30%) cover calc(18% + var(--i) / var(--n) * 30%); }
  }
}
@keyframes tinte { from { color: #9a8479; } to { color: var(--pflaume); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
