/* Reservierungs-Widget der Eisstockbahn.
 *
 * Farben und Radien stehen als Variablen ganz oben - wer das Widget an eine
 * andere Seite anpasst, aendert nur diesen Block. Die Werte sind die Palette
 * von Marianne's Flammkuchen. */
:root {
  --grund:      #FAF7F1;
  --karte:      #FFFFFF;
  --sand:       #E9E2D6;
  --dunkel:     #2A2520;
  --text:       #5C534A;
  --gedaempft:  #9A8F7E;
  --akzent:     #B4491F;
  --akzent-dunkel: #8E3714;
  --gruen:      #3F6B54;
  --rand:       #E4DDD1;
  --radius:     10px;
  --schrift: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.widget {
  margin: 0;
  padding: 8px;
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: transparent;          /* die Homepage bringt den Hintergrund mit */
  -webkit-font-smoothing: antialiased;
}
body.widget.einzeln { background: var(--grund); padding: 24px 8px; }

.karte {
  max-width: 440px;
  margin: 0 auto;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(42, 37, 32, .06);
  overflow: hidden;
}

/* ---------------------------------------------------------------- Kopf --- */
.kopf {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 20px 13px; border-bottom: 1px solid var(--rand);
}
/* Das Logo liegt nur in Weiss und in der orangen Fassung vor; auf dem hellen
   Kopf ist Orange die einzige, die man sieht. Hoehe statt Breite gesetzt,
   damit die Zeile bei jedem Namen gleich hoch bleibt. */
.kopf .logo { height: 34px; width: auto; flex: none; }
.kopftext { text-align: left; }
.kopf h1 { margin: 0; font-size: 18px; font-weight: 600; color: var(--dunkel); letter-spacing: .01em; }
.unterzeile { margin: 3px 0 0; font-size: 10.5px; letter-spacing: .13em;
              text-transform: uppercase; color: var(--gedaempft); }

.schritt { padding: 16px 20px 4px; }
.versteckt { display: none !important; }
.hinweis-haus {
  margin: 0 0 14px; padding: 10px 12px; font-size: 13px;
  background: var(--grund); border-left: 3px solid var(--akzent); border-radius: 4px;
}

/* -------------------------------------------------------------- Felder --- */
.auswahl { display: flex; gap: 10px; }
.zeile { display: flex; gap: 10px; }
.zeile .feld { flex: 1 1 0; min-width: 0; }
.feld { display: block; flex: 1 1 0; margin-bottom: 12px; }
.feld > span { display: block; font-size: 12px; color: var(--gedaempft); margin-bottom: 4px; }
.feld > span i { color: var(--akzent); font-style: normal; }

select, input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], textarea {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--dunkel);
  background: var(--karte); border: 1px solid var(--rand); border-radius: 8px;
  appearance: none;
}
select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%239A8F7E' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
         background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
textarea { resize: vertical; }
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(180, 73, 31, .12);
}
input.fehlt, textarea.fehlt { border-color: var(--akzent); background: #FDF4F0; }

.haken { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin: 4px 0 10px; }
.haken input { margin-top: 2px; accent-color: var(--akzent); }
.falle { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ------------------------------------------------------------ Kalender --- */
.kalender { border: 1px solid var(--rand); border-radius: 8px; padding: 10px; margin-bottom: 14px; }
.kalender-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kalender-kopf strong { font-size: 14px; color: var(--dunkel); font-weight: 600; }
.pfeil {
  border: 1px solid var(--rand); background: var(--karte); color: var(--dunkel);
  width: 28px; height: 28px; border-radius: 6px; font-size: 16px; line-height: 1; cursor: pointer;
}
.pfeil:hover:not(:disabled) { border-color: var(--akzent); color: var(--akzent); }
.pfeil:disabled { opacity: .3; cursor: default; }

.wochentage, .tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wochentage span { text-align: center; font-size: 10.5px; color: var(--gedaempft); padding-bottom: 3px; }
.tage button {
  /* Feste Hoehe statt quadratischer Kacheln: bei 440 px Breite waeren die
     Quadrate 58 px hoch und der Kalender allein so hoch wie das halbe Widget. */
  position: relative; height: 36px; border: 1px solid transparent;
  border-radius: 6px; background: var(--grund); color: var(--dunkel);
  font: inherit; font-size: 13px; cursor: pointer;
}
.tage button.leer { background: none; cursor: default; }
.tage button.geschlossen { color: var(--gedaempft); background: none; cursor: not-allowed; }
.tage button.ausgebucht { color: var(--gedaempft); background: var(--sand); cursor: not-allowed;
                          text-decoration: line-through; }
.tage button.frei:hover { border-color: var(--akzent); }
.tage button.gewaehlt { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.tage button.heute::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--akzent);
}
.tage button.gewaehlt.heute::after { background: #fff; }

.legende { display: flex; gap: 12px; align-items: center; justify-content: center;
           margin: 8px 0 0; font-size: 11px; color: var(--gedaempft); }
.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 3px;
         vertical-align: -1px; }
.punkt.frei { background: var(--grund); border: 1px solid var(--rand); }
.punkt.ausgebucht { background: var(--sand); }
.punkt.geschlossen { background: none; border: 1px dashed var(--rand); }

/* --------------------------------------------------------------- Zeiten -- */
.zeiten-titel { margin: 0 0 8px; font-size: 12px; color: var(--gedaempft); }
.zeiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 40px; }
.zeiten button {
  padding: 11px 4px; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--karte); color: var(--dunkel); font: inherit; font-size: 15px; cursor: pointer;
}
.zeiten button:hover:not(:disabled) { border-color: var(--akzent); color: var(--akzent); }
.zeiten button.gewaehlt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.zeiten button:disabled { color: var(--gedaempft); background: var(--grund);
                          cursor: not-allowed; text-decoration: line-through; }

.meldung { margin: 10px 0 0; font-size: 13px; color: var(--akzent-dunkel); min-height: 0; }
.meldung:empty { display: none; }
.meldung.sichtbar, .meldung:not(:empty) {
  padding: 10px 12px; background: #FDF1EC; border-left: 3px solid var(--akzent);
  border-radius: 4px;
}

/* ------------------------------------------------------ Zusammenfassung -- */
.zusammenfassung {
  display: flex; justify-content: space-between; gap: 8px; text-align: center;
  padding: 10px 12px; margin-bottom: 14px;
  border: 1px solid var(--rand); border-radius: 8px; background: var(--grund);
}
.zusammenfassung div { flex: 1 1 0; }
.zusammenfassung dt { font-size: 11px; color: var(--gedaempft); margin: 0 0 2px; }
.zusammenfassung dd { margin: 0; font-size: 15px; color: var(--akzent); font-weight: 600; }

/* --------------------------------------------------------------- Fertig -- */
.fertig { text-align: center; padding: 6px 0 10px; }
.haken-kreis {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--gruen); color: #fff; font-size: 24px; line-height: 46px;
}
.fertig h2 { margin: 0 0 6px; font-size: 18px; color: var(--dunkel); font-weight: 600; }
.fertig-text { margin: 0 0 10px; }
.kennzeichen { margin: 0 0 6px; font-size: 13px; color: var(--gedaempft); }
.kennzeichen strong { color: var(--dunkel); letter-spacing: .06em; }
.gross { font-size: 16px; color: var(--dunkel); }
.klein { font-size: 12.5px; color: var(--gedaempft); }
.klein a, .haus a { color: var(--akzent); text-decoration: none; }

/* ----------------------------------------------------------------- Fuss -- */
.fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 20px; border-top: 1px solid var(--rand); background: var(--grund);
}
.haus { font-size: 11.5px; color: var(--gedaempft); display: flex; flex-direction: column; }
.knoepfe { display: flex; gap: 8px; }

.knopf {
  padding: 10px 18px; border: 1px solid var(--akzent); border-radius: 8px;
  background: var(--akzent); color: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
.knopf:hover:not(:disabled) { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf:disabled { opacity: .4; cursor: not-allowed; }
.knopf.leise { background: none; color: var(--text); border-color: var(--rand); }
.knopf.leise:hover { color: var(--akzent); border-color: var(--akzent); background: none; }
.knopf.warnend { background: var(--akzent); margin: 12px 0; }
.knopf.laedt { position: relative; color: transparent; }
.knopf.laedt::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: dreh .7s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }

.spielzeiten {
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center;
  padding: 10px 20px 14px; font-size: 11px; color: var(--gedaempft);
  border-top: 1px solid var(--rand);
}
.spielzeiten .eine-bahn { flex-basis: 100%; text-align: center; color: var(--akzent);
                          line-height: 1.4; }

@media (max-width: 380px) {
  .kopf { flex-direction: column; gap: 8px; }
  .kopftext { text-align: center; }
  .zeiten { grid-template-columns: repeat(2, 1fr); }
  .zeile { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .knopf.laedt::after { animation-duration: 2s; } }
