/* ---------------------------------------------------------------------------
   LBK Munich · Gestaltung
   Variante A: Apples Haltung, nicht Apples Aussehen.

   Übernommen wird die Disziplin — viel Weißraum, große ruhige Typografie,
   keine Rahmen sondern weiche Tiefe, großzügige Klickflächen, ein Gedanke pro
   Fläche. Palette und Schriften bleiben die der Marke: Anthrazit auf Creme,
   Gold als einziger Akzent, Cormorant Garamond für Überschriften.

   Bewusst einfarbig hell. Ein Dunkelmodus würde den warmen Grund zerstören,
   der die Identität trägt.
   --------------------------------------------------------------------------- */

:root {
  --charcoal:   #1C1A18;
  --cream:      #FAF8F5;
  --paper:      #FFFFFF;
  --gold:       #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark:  #A07840;
  --mid:        #6B6560;
  --light:      #B0A89F;

  --hair:       rgba(28, 26, 24, .07);
  --hair-firm:  rgba(28, 26, 24, .14);
  --wash:       rgba(201, 169, 110, .08);
  --wash-firm:  rgba(201, 169, 110, .14);
  /* Eine Stufe kraeftiger: Formularfelder in der Verwaltung liegen als weiche
     goldene Flaeche auf der Karte, statt als Kaestchen mit grauem Rahmen. */
  --wash-solid: rgba(201, 169, 110, .16);
  --wash-edge:  rgba(201, 169, 110, .32);
  /* Warme Kante fuer die weissen Notizbloecke, die sich davon absetzen. */
  --hair-warm:  #E8E2D9;

  --ok:   #4A7C59;
  --err:  #B85450;
  --warn: #A07840;

  --r:   28px;
  --rs:  18px;
  --rxs: 12px;
  --lift:    0 1px 3px rgba(28,26,24,.03), 0 18px 48px -28px rgba(28,26,24,.30);
  --lift-lo: 0 1px 2px rgba(28,26,24,.03), 0 10px 28px -22px rgba(28,26,24,.28);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.5rem 8rem;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap      { max-width: 46rem; margin: 0 auto; }
.wrap-wide { max-width: 78rem; margin: 0 auto; }

/* --- Kopfzeile ------------------------------------------------------------ */
.masthead {
  margin: 0 -1.5rem;
  padding: 2.5rem 1.5rem 0;
  text-align: center;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}
.wordmark:hover { color: var(--gold-dark); }

/* Das Bildlogo traegt eine deckende helle Flaeche hinter dem Schriftzug
   „Lashes by Kristina". Auf Creme und Weiss faellt sie nicht auf, auf dunklem
   Grund schon — deshalb steht es nur auf hellen Flaechen. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 2.2rem; }
@media (max-width: 620px) { .brand img { height: 1.9rem; } }

/* --- Seiteneinstieg ------------------------------------------------------- */
.page-intro { padding: 6rem 0 5rem; text-align: center; }
.eyebrow {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 1.75rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.lede {
  font-size: 1.15rem;
  font-weight: 200;
  color: var(--mid);
  max-width: 30rem;
  margin: 0 auto;
  line-height: 1.65;
  text-wrap: pretty;
}
p { margin: 0 0 .9rem; }
.muted { color: var(--mid); font-size: .92rem; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

/* --- Ablaufanzeige -------------------------------------------------------- */
.steps {
  display: flex; justify-content: center;
  gap: .75rem 2.5rem; flex-wrap: wrap;
  margin: 0 0 4rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--light);
}
.steps span { display: flex; align-items: center; gap: .6rem; }
.steps span::before {
  content: '';
  width: .4rem; height: .4rem; flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
}
.steps span.done   { color: var(--mid); }
.steps span.active { color: var(--charcoal); }
.steps span.active::before { background: var(--gold-dark); opacity: 1; }

/* --- Flächen -------------------------------------------------------------- */
/* Keine Rahmen. Die Fläche hebt sich durch weiche Tiefe vom Grund ab, nicht
   durch eine gezogene Linie — das nimmt der Seite die Kleinteiligkeit. */
.card {
  background: var(--paper);
  border: none;
  border-radius: var(--r);
  padding: 3rem 2.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--lift);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 2.25rem;
}
h3 {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--mid);
  margin: 2.5rem 0 1rem;
}

/* --- Schaltflächen -------------------------------------------------------- */
button, .btn {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .03em;
  padding: .85rem 1.9rem;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
button:hover, .btn:hover { background: #322D28; border-color: #322D28; color: var(--cream); }
button.secondary, .btn.secondary {
  background: transparent; color: var(--charcoal); border-color: var(--hair-firm);
}
button.secondary:hover, .btn.secondary:hover {
  background: transparent; color: var(--gold-dark); border-color: var(--gold);
}
button.danger { background: var(--err); border-color: var(--err); color: #fff; }
button.danger:hover { background: #9E4642; border-color: #9E4642; }
button:disabled { opacity: .35; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* Der Hauptabschluss eines Schritts nimmt die volle Breite — ein Ziel je Fläche. */
#submit-btn, #b-add, #save-hours, #save-settings {
  display: block; width: 100%; padding: 1.15rem;
  font-size: 1rem;
}

/* --- Formulare ------------------------------------------------------------ */
label {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--mid);
  margin: 1.5rem 0 .5rem;
}
input, select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  width: 100%;
  padding: .95rem 1.1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--rxs);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  background: var(--paper); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,.12);
  outline: none;
}
input:disabled { color: var(--mid); background: rgba(28,26,24,.035); }
input[type=checkbox] { width: auto; accent-color: var(--gold-dark); }

label.check {
  display: flex; gap: .75rem; align-items: flex-start;
  margin: 1.75rem 0 0;
  font-size: .95rem; font-weight: 300;
  text-transform: none; letter-spacing: normal;
  color: var(--charcoal); cursor: pointer;
}
label.check input { margin-top: .3rem; flex: none; }

.row        { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 1fr; }
/* Feldbreite nach erwarteter Eingabelänge, gespiegelt für ein ruhiges Raster. */
.row-street { display: grid; gap: 0 1.25rem; grid-template-columns: 3fr 1fr; }
.row-city   { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 3fr; }
.row-hours  { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 2fr; }
@media (max-width: 620px) {
  .row, .row-street, .row-city, .row-hours { grid-template-columns: 1fr; }
}

/* --- Kategorien als Pillen ------------------------------------------------ */
.tabs {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: none;
}
.tabs button {
  padding: .55rem 1.1rem;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--mid);
  font-size: .88rem; font-weight: 300; letter-spacing: .01em;
}
.tabs button:hover { background: var(--wash); color: var(--charcoal); }
.tabs button.active {
  background: var(--charcoal); color: var(--cream); font-weight: 300;
}

/* --- Auswahllisten -------------------------------------------------------- */
/* Offene Liste mit Haarlinien statt einzelner Kästchen. */
.list-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  width: 100%; text-align: left;
  padding: 1.35rem 1.25rem;
  margin: 0;
  font-family: var(--sans); font-size: 1.12rem; font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none; border-bottom: 1px solid var(--hair);
  border-radius: var(--rs);
  cursor: pointer;
  transition: background .2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--wash); color: var(--charcoal); }
.list-item.selected { background: var(--wash-firm); }
.list-item .meta {
  color: var(--mid); font-size: .92rem; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- Kalender ------------------------------------------------------------- */
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.cal-head strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.cal-head button { padding: .5rem 1.1rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow {
  text-align: center; font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--light); padding: .5rem 0;
}
.cal button {
  aspect-ratio: 1; padding: 0;
  font-size: .98rem; font-weight: 300; font-variant-numeric: tabular-nums;
  background: transparent; color: var(--charcoal);
  border: 1px solid transparent; border-radius: 50%;
}
.cal button:hover:not(:disabled) { background: var(--wash); color: var(--charcoal); }
.cal button:disabled { background: transparent; color: var(--light); opacity: .45; }
.cal button.selected {
  background: var(--charcoal); color: var(--cream); border-color: var(--charcoal);
}
.cal .spacer { visibility: hidden; }

/* --- Uhrzeiten ------------------------------------------------------------ */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .6rem; }
.slots button {
  padding: .85rem .5rem;
  font-size: .98rem; font-weight: 300;
  font-variant-numeric: tabular-nums;
  background: var(--cream); color: var(--charcoal);
  border: 1px solid transparent; border-radius: var(--rxs);
}
.slots button:hover { background: var(--wash); color: var(--charcoal); border-color: transparent; }
.slots button.selected { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* --- Hinweise ------------------------------------------------------------- */
.notice {
  background: var(--wash);
  border: none; border-left: 2px solid var(--gold);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--rxs) var(--rxs) 0;
  font-size: .95rem;
}
.notice.info { border-left-color: var(--charcoal); background: rgba(28,26,24,.035); }

.badge {
  display: inline-block; padding: .22rem .7rem; border-radius: 999px;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid;
}
.badge.ok      { color: var(--ok);   border-color: rgba(74,124,89,.35);  background: rgba(74,124,89,.07); }
.badge.warn    { color: var(--warn); border-color: rgba(160,120,64,.35); background: rgba(160,120,64,.07); }
.badge.err     { color: var(--err);  border-color: rgba(184,84,80,.35);  background: rgba(184,84,80,.07); }
.badge.neutral { color: var(--mid);  border-color: var(--hair-firm); }

/* --- Tabellen ------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-weight: 300; }
th, td { text-align: left; padding: 1rem .7rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th {
  font-size: .64rem; font-weight: 400; color: var(--mid);
  text-transform: uppercase; letter-spacing: .16em;
}
tbody tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* --- Kurznachricht -------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem;
  transform: translateX(-50%) translateY(240%);
  background: var(--charcoal); color: var(--cream);
  padding: 1rem 1.6rem; border-radius: 999px;
  font-size: .92rem; font-weight: 300;
  max-width: 92vw; z-index: 50;
  box-shadow: 0 18px 40px -14px rgba(28,26,24,.5);
  transition: transform .24s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err  { background: var(--err); color: #fff; }
.toast.ok   { background: var(--ok);  color: #fff; }

/* --- Fusszeile ------------------------------------------------------------ */
.site-foot {
  border-top: 1px solid var(--hair);
  margin: 6rem -1.5rem 0;
  padding: 3.5rem 1.5rem 1rem;
}
.foot-grid {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.site-foot h3 { margin: 0 0 .75rem; }
.site-foot p { margin: 0; line-height: 1.8; }

/* --- Verwaltung: Formularkarte -------------------------------------------- */
/* Gilt ausschliesslich innerhalb von .formkarte. Die Buchungsstrecke und die
   Anfrageformulare fuer Kundinnen nutzen dieselben Elemente und bleiben davon
   unberuehrt. */
.formkarte {
  background: var(--paper);
  border: none;
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 1.5rem;
  box-shadow: var(--lift);
}

.formkarte label:not(.check) {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--mid);
  margin: 0 0 8px;
}

/* Die Hoehe steht fest, der Innenabstand waagerecht — so sind Eingabe- und
   Auswahlfelder gleich hoch, was sie bei reiner Polsterung nicht waeren. */
.formkarte input:not([type=checkbox]),
.formkarte select {
  height: 54px;
  padding: 0 17px;
  margin-bottom: 19px;
  font-size: 15px;
  border-radius: 13px;
  background: var(--wash-solid);
  border: 1px solid var(--wash-edge);
}
.formkarte input:not([type=checkbox]):focus,
.formkarte select:focus {
  background: var(--paper);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,.12);
}
/* Der Zweispalter traegt selbst keinen Abstand; den bringen die Felder mit. */
.formkarte .row { margin-bottom: 0; }
.formkarte .notice { margin: 0 0 19px; }
.formkarte label.check { margin: .5rem 0 1.25rem; }

/* Der Abschluss der Karte nimmt die volle Breite — wie in den Einstellungen. */
.knopf-haupt {
  display: block; width: 100%;
  height: 58px; padding: 0;
  border-radius: 999px;
  font-size: 1rem;
}

/* --- Verwaltung: Notizbloecke --------------------------------------------- */
/* Weisse Flaeche mit warmer Kante. Setzt sich von den golden getoenten
   Formularfeldern ab, damit sichtbar bleibt, was intern bleibt. */
.notizblock {
  background: var(--paper);
  border: 1px solid var(--hair-warm);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 19px;
}
.notizblock label { margin-top: 0; }
/* :not() muss hier stehen, obwohl es im Block keine Ankreuzfelder gibt: ohne
   das waere diese Regel weniger spezifisch als die der Formularkarte darueber,
   und das Feld bliebe golden statt weiss. */
.notizblock input:not([type=checkbox]),
.notizblock textarea {
  background: var(--paper);
  border: 1px solid var(--hair-warm);
  border-radius: 13px;
  margin-bottom: 0;
}
.notizblock textarea {
  min-height: 96px;
  resize: vertical;
  padding: 14px 17px;
  font-size: 15px;
}
.notizblock input:not([type=checkbox]) { height: 54px; padding: 0 17px; font-size: 15px; }
.notizblock button {
  height: 46px; padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--hair-firm);
}
.notizblock button:hover {
  background: var(--wash);
  color: var(--charcoal);
  border-color: var(--gold);
}

/* --- Verwaltung: Schaltflaechen in der Terminzeile ------------------------ */
/* Nur die Schaltflaechen in der Terminzeile selbst. Die Notizzeile darunter
   ist eine eigene Zeile (tr.kartei) und behaelt ihre eigene Groesse — sonst
   sticht diese Regel ueber die ID die des Notizblocks aus. */
#appt-table tr:not(.kartei) td button {
  height: 42px;
  padding: 0 1.25rem;
  border-radius: 999px;
}
#appt-table tr:not(.kartei) td button.secondary {
  background: var(--paper);
  border-color: var(--hair-firm);
}
#appt-table tr:not(.kartei) td button.secondary:hover {
  background: var(--wash);
  border-color: var(--gold);
}

/* --- Kartei und interne Notizen ------------------------------------------- */
/* Die Notizzeile haengt unter der Zeile, zu der sie gehoert. Ein eigener Grund
   setzt sie sichtbar ab, ohne eine weitere Spalte zu brauchen. */
tr.kartei > td {
  background: var(--cream);
  border-bottom: 1px solid var(--hair-firm);
  padding: 1rem 1.25rem 1.25rem;
}
tr.kartei label { margin-top: 0; }
tr.kartei p { margin: .4rem 0 0; }
.notiz-hinweis {
  color: var(--mid); font-size: .8rem; line-height: 1.5;
  margin: .4rem 0 0;
}
.verlauf { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .9rem; }
.verlauf li {
  display: flex; gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--hair);
}
.verlauf li:last-child { border-bottom: none; }
.verlauf-datum {
  flex: none; width: 6.5rem;
  color: var(--mid); font-variant-numeric: tabular-nums;
}

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 620px) {
  body { padding: 0 1.15rem 5rem; }
  .masthead { margin: 0 -1.15rem; padding: 1.75rem 1.15rem 0; }
  .page-intro { padding: 3.5rem 0 3rem; }
  .steps { gap: .6rem 1.5rem; margin-bottom: 2.5rem; }
  .card { padding: 2rem 1.4rem; border-radius: 22px; }
  .formkarte { padding: 22px; }
  .notizblock { padding: 16px; }
  h2 { font-size: 1.65rem; margin-bottom: 1.75rem; }
  /* Name und Preis passen nebeneinander nicht mehr — untereinander bleibt ruhig. */
  .list-item { flex-direction: column; align-items: flex-start; gap: .3rem; padding: 1.15rem .5rem; }
  .list-item .meta { white-space: normal; }
  /* Acht Kategorien brauchen sonst zu viele Zeilen. */
  .tabs { gap: .3rem; margin-bottom: 1.75rem; }
  .tabs button { padding: .45rem .85rem; font-size: .84rem; }
  .site-foot { margin: 4rem -1.15rem 0; padding: 2.5rem 1.15rem 1rem; }
}
