/* ==========================================================================
   Terminverwaltung – Gestaltung
   Bewusst schlicht gehalten: Es geht ums Arbeiten, nicht ums Aussehen.
   Farben und Schriften passen aber zur öffentlichen Webseite.
   ========================================================================== */

:root {
  --nacht:      #16110e;
  --nacht-hell: #221913;
  --creme:      #f8f2e8;
  --rost:       #b8412a;
  --rost-hell:  #d4573c;
  --gold:       #d9a441;
  --text:       #2b211b;
  --leise:      #6d5d51;
  --linie:      #ddd2c2;
  --gruen:      #2f7a4f;
  --display: 'Oswald', 'Helvetica Neue', 'Lato', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f2ece2;
  color: var(--text);
  font-size: 16px;
}

/* ---------- Kopfzeile ---------- */

.a-kopf {
  background: var(--nacht);
  color: var(--creme);
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.a-marke {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.a-marke span { color: var(--rost); }
.a-marke small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: rgba(248, 242, 232, 0.65);
  line-height: 1.6;
}

.a-navi { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.a-navi a {
  color: rgba(248, 242, 232, 0.78);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.5;
}
.a-navi a:hover { background: rgba(248, 242, 232, 0.10); color: var(--creme); }
.a-navi a.aktiv { background: rgba(248, 242, 232, 0.16); color: var(--creme); }
.a-abmelden {
  background: none; border: 1px solid rgba(248, 242, 232, 0.35);
  color: rgba(248, 242, 232, 0.85);
  font-family: var(--display); letter-spacing: 0.05em;
  padding: 8px 14px; border-radius: 4px; cursor: pointer; line-height: 1.5;
}
.a-abmelden:hover { background: rgba(248, 242, 232, 0.12); color: var(--creme); }

.a-wer {
  font-size: 0.85rem;
  color: rgba(248, 242, 232, 0.6);
  line-height: 1.6;
  margin: 0 10px 0 16px;   /* Abstand zu den Menüpunkten und zum Abmelden-Knopf */
  border-left: 1px solid rgba(248, 242, 232, 0.2);
  padding-left: 16px;
}

/* ---------- Inhalt ---------- */

.a-inhalt { max-width: 1000px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 80px; }

h1 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.9rem; line-height: 1.25; letter-spacing: 0.01em;
  margin: 0 0 6px;
}
h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.15rem; line-height: 1.3; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--leise);
  margin: 36px 0 12px;
}
.a-unter { color: var(--leise); margin: 0 0 26px; line-height: 1.6; }

/* ---------- Meldungen ---------- */

.meldung {
  padding: 14px 18px; border-radius: 4px; margin-bottom: 22px;
  border-left: 5px solid; line-height: 1.6;
}
.meldung-ok     { background: #e6f2ea; border-color: var(--gruen); color: #1d4f33; }
.meldung-fehler { background: #fbe9e5; border-color: var(--rost);  color: #7d2617; }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Terminliste ---------- */

.a-tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--linie); }
.a-tabelle th {
  text-align: left; font-family: var(--display); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem;
  color: var(--leise); padding: 12px 14px; border-bottom: 1px solid var(--linie);
  line-height: 1.6;
}
.a-tabelle td { padding: 14px; border-bottom: 1px solid #efe8dc; vertical-align: top; line-height: 1.6; }
.a-tabelle tr:last-child td { border-bottom: 0; }
.a-tabelle tr:hover td { background: #fdfbf7; }

.z-datum { white-space: nowrap; font-family: var(--display); font-size: 1.05rem; }
.z-datum small { display: block; font-family: inherit; color: var(--leise); font-size: 0.78rem; letter-spacing: 0.06em; }
.z-titel { font-weight: 700; }
.z-ort { color: var(--leise); font-size: 0.92rem; }
.z-notiz { color: var(--leise); font-size: 0.85rem; font-style: italic; margin-top: 4px; }
.z-aktionen { white-space: nowrap; text-align: right; }

.marke-privat {
  display: inline-block; font-family: var(--display); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: #efe4d4; color: var(--leise);
  border-radius: 3px; padding: 2px 8px; margin-left: 6px; line-height: 1.6;
}
.zeile-vorbei td { opacity: 0.55; }

/* Marke „neu" in den Repertoire-Listen – golden wie auf der Webseite */
.marke-neu {
  display: inline-block; font-family: var(--display); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: #f3dfb4; color: #7a5a14;
  border-radius: 3px; padding: 2px 8px; margin-left: 6px; line-height: 1.6;
}

/* Einzelnes Ankreuzfeld mit normal lesbarer Beschriftung */
.feld label.feld-einzelhaken {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 1rem; font-weight: 400;
  letter-spacing: normal; text-transform: none;
  cursor: pointer; margin: 0;
}
.feld label.feld-einzelhaken input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

/* ---------- Zähler am Menüpunkt „Anfragen“ ---------- */

.a-zaehler {
  display: inline-block;
  min-width: 20px;
  margin-left: 7px;
  padding: 1px 6px;
  background: var(--rost);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.6;
}

/* ---------- Anfragen aus dem Kontaktformular ---------- */

/* Anfragen sind unterschiedlich lang und haben unterschiedlich viele
   Angaben – als Tabelle würde das unruhig aussehen. Deshalb Karten. */
.a-anfrage {
  background: #fff;
  border: 1px solid var(--linie);
  border-left: 5px solid var(--rost);
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
/* Erledigtes bleibt lesbar, tritt aber optisch zurück */
.a-anfrage.ist-erledigt { border-left-color: var(--linie); background: #fbf8f3; }
.a-anfrage.ist-erledigt .z-titel { color: var(--leise); }

.a-anfrage-kopf {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.a-anfrage-kopf .z-titel { font-size: 1.1rem; }
.a-anfrage-kopf a { color: var(--rost); }
.a-anfrage-datum {
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--leise); text-align: right; line-height: 1.6; white-space: nowrap;
}

.marke-neu {
  display: inline-block; font-family: var(--display); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--rost); color: #fff;
  border-radius: 3px; padding: 2px 8px; margin-left: 8px; line-height: 1.6;
}

/* Wunschtermin, Ort, Anlass … – zweispaltig, Bezeichnung links */
.a-angaben {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 4px 16px; margin: 0 0 16px;
  background: #faf6ef; border-radius: 4px; padding: 14px 16px;
}
.a-angaben dt {
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--leise); line-height: 1.7;
}
.a-angaben dd { margin: 0; line-height: 1.7; }

.a-nachricht {
  margin: 0 0 18px; line-height: 1.7;
  border-left: 2px solid var(--linie); padding-left: 14px;
}

.a-notiz-form { margin-bottom: 16px; }
.a-notiz-form label {
  display: block; font-family: var(--display); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem;
  color: var(--leise); margin-bottom: 6px; line-height: 1.6;
}
.a-notiz-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.a-notiz-zeile input {
  flex: 1 1 260px; padding: 9px 12px;
  border: 1px solid var(--linie); border-radius: 4px;
  background: #fffdfa; color: var(--text); line-height: 1.4;
}
.a-notiz-zeile input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }

.a-anfrage-fuss {
  display: flex; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid #efe8dc; padding-top: 14px;
}

/* ---------- Knöpfe ---------- */

.knopf, .knopf-klein {
  display: inline-block; font-family: var(--display); font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--rost); background: var(--rost); color: #fff;
  border-radius: 4px; cursor: pointer; line-height: 1.5;
}
.knopf { padding: 13px 26px; font-size: 0.95rem; }
.knopf-klein { padding: 7px 14px; font-size: 0.8rem; }
.knopf:hover, .knopf-klein:hover { background: var(--rost-hell); border-color: var(--rost-hell); }

.knopf-linie, .knopf-klein.knopf-linie {
  background: #fff; color: var(--text); border-color: var(--linie);
}
.knopf-linie:hover, .knopf-klein.knopf-linie:hover { background: #f4eee4; border-color: var(--leise); }

.knopf-gefahr { background: #fff; color: #8f2d1b; border-color: #e2bdb4; }
.knopf-gefahr:hover { background: #8f2d1b; border-color: #8f2d1b; color: #fff; }

.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.a-kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- Formulare ---------- */

.a-formular {
  background: #fff; border: 1px solid var(--linie); border-radius: 4px;
  padding: clamp(20px, 4vw, 32px); max-width: 720px;
}
.feld { margin-bottom: 20px; }
.feld label {
  display: block; font-family: var(--display); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem;
  color: var(--leise); margin-bottom: 6px; line-height: 1.6;
}
.feld input[type=text], .feld input[type=date], .feld input[type=email],
.feld input[type=password], .feld textarea, .feld select {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--linie); border-radius: 4px;
  background: #fffdfa; color: var(--text);
  line-height: 1.4;                 /* Umlaut-Regel aus base.css */
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.feld .hinweis { display: block; color: var(--leise); font-size: 0.85rem; margin-top: 5px; line-height: 1.6; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Das Dateiauswahlfeld lässt sich kaum gestalten – wenigstens der
   Rahmen soll zu den übrigen Feldern passen. */
.feld input[type=file] {
  width: 100%; padding: 10px 12px;
  border: 1px dashed var(--linie); border-radius: 4px;
  background: #fffdfa; color: var(--text); line-height: 1.4;
}
.feld input[type=file]:focus { outline: 3px solid var(--gold); outline-offset: 1px; }

.feld-wahl { display: flex; gap: 22px; flex-wrap: wrap; }
.feld-wahl label {
  display: flex; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: normal; font-size: 1rem;
  color: var(--text); font-family: inherit; font-weight: 400;
}
.feld-wahl input { width: auto; }

.pflicht { color: var(--rost); }

/* ---------- Anmeldeseite ---------- */

.a-login-seite {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--nacht); padding: 24px;
}
.a-login {
  background: #fff; border-radius: 6px; padding: clamp(26px, 5vw, 40px);
  width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.a-login h1 { font-size: 1.5rem; margin-bottom: 4px; }
.a-login .knopf { width: 100%; text-align: center; }

/* ---------- Fotoverwaltung ---------- */

/* Jede Zeile: links das Vorschaubild, in der Mitte die Beschreibung,
   rechts die Knöpfe. Auf schmalen Bildschirmen rutscht das untereinander
   (siehe ganz unten). */
.a-fotoliste { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

.a-foto {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 14px;
}

.a-foto-bild img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 4px; display: block;
}
.a-foto-fehlt {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: #f6efe4; border: 1px dashed var(--linie); border-radius: 4px;
  color: var(--leise); font-size: 0.82rem; text-align: center; line-height: 1.5;
}

.a-foto-text .a-notiz-form { margin-bottom: 8px; }
.a-foto-datei {
  margin: 0; color: var(--leise); font-size: 0.8rem; line-height: 1.6;
  word-break: break-all;
}

/* Kleine Hinweismarken hinter dem Dateinamen */
.a-foto-marke {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 999px; background: #f0e9dd; color: var(--leise);
  font-size: 0.72rem; letter-spacing: 0.04em; white-space: nowrap;
}
.a-foto-marke-warnung { background: #f6ded7; color: #8f2d1b; }

.a-foto-knoepfe { display: flex; flex-direction: column; gap: 8px; }
.a-foto-knoepfe button { width: 100%; }
/* Ein Pfeil, der nichts mehr bewirkt (oberstes bzw. unterstes Bild),
   wird blass statt zu verschwinden – so springt das Bedienfeld nicht. */
.a-foto-knoepfe button[disabled] { opacity: .35; cursor: default; }
.a-foto-knoepfe button[disabled]:hover { background: #fff; border-color: var(--linie); color: var(--text); }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 700px) {
  .feld-paar { grid-template-columns: 1fr; }

  /* Fotozeile wird zur Karte: Bild oben, Text darunter, Knöpfe nebeneinander */
  .a-foto { grid-template-columns: 1fr; }
  .a-foto-bild { max-width: 260px; }
  .a-foto-knoepfe { flex-direction: row; flex-wrap: wrap; }
  .a-foto-knoepfe button { width: auto; }

  /* Tabelle wird zu Karten – Kopfzeile ausblenden, Zellen untereinander */
  .a-tabelle thead { display: none; }
  .a-tabelle, .a-tabelle tbody, .a-tabelle tr, .a-tabelle td { display: block; width: 100%; }
  .a-tabelle tr {
    border-bottom: 1px solid var(--linie); padding: 6px 0;
  }
  .a-tabelle td { border: 0; padding: 6px 14px; }
  .z-aktionen { text-align: left; padding-top: 12px !important; padding-bottom: 14px !important; }
}
