/* Layout _Mobil: Kalender, Anmelden, Konto – fürs Handy gebaut, am PC schmal zentriert. */
:root {
  --frei: #ffffff;
  --eigen: #2f8f4e;
  --belegt: #8a929a;
  --verwaltbar: #5c7a99;
}

body.mobil { margin-bottom: 0; background: #f3f5f2; font-size: 16px; }

.mobil-kopf {
  position: sticky; top: 0; z-index: 1020;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .5rem max(1rem, env(safe-area-inset-left)) .5rem max(1rem, env(safe-area-inset-right));
  background: #2f5d3a; color: #fff;
}
.mobil-marke { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mobil-maschine { font-size: .85rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mobil-inhalt { max-width: 34rem; margin: 0 auto; padding: .75rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }

.karte-schmal { background: #fff; border-radius: .75rem; padding: 1.25rem; margin-top: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Kalender */
.kalender-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.kalender-kopf .btn { font-size: 1.5rem; line-height: 1; width: 3rem; height: 3rem; }

.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wochentag { text-align: center; font-size: .75rem; color: #6c757d; padding-bottom: 2px; }

.tag {
  position: relative; display: flex; flex-direction: column;
  aspect-ratio: 1 / 1.15; padding: 0; border: 1px solid #d5dbd3; border-radius: .4rem;
  background: #fff; overflow: hidden; touch-action: manipulation;
}
.tag:active { transform: scale(.96); }
.tag.fremd { opacity: .45; }
.tag.vergangen .haelfte.frei { background: #eceeea; }
.tag.heute { border: 2px solid #2f5d3a; }
.tag-nr { position: absolute; top: 1px; left: 4px; font-size: .75rem; font-weight: 600; z-index: 1; }
.tag.heute .tag-nr { color: #2f5d3a; }
.haelfte {
  flex: 1; display: block; min-width: 0; padding: 0 2px; line-height: 1.6;
  font-size: .6rem; font-weight: 600; color: #fff; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag-nr + .haelfte { padding-top: .85rem; }
.haelfte + .haelfte { border-top: 1px dashed #d5dbd3; }
.haelfte.frei { background: var(--frei); }
.haelfte.eigen { background: var(--eigen); }
.haelfte.belegt { background: var(--belegt); }
.haelfte.belegt.verwaltbar { background: var(--verwaltbar); }

.legende { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .5rem; }
.legende i { display: inline-block; width: .9rem; height: .9rem; border: 1px solid #ccc; border-radius: .2rem; vertical-align: -2px; }
.legende i.frei { background: var(--frei); }
.legende i.eigen { background: var(--eigen); }
.legende i.belegt { background: var(--belegt); }

/* Blatt von unten */
.tag-blatt.offcanvas-bottom { height: auto; max-height: 90vh; border-radius: 1rem 1rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
.tag-blatt .offcanvas-body { max-width: 34rem; margin: 0 auto; width: 100%; }
.tag-blatt .btn-lg { min-height: 3.25rem; }
.belegt-zeile { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .75rem; margin-bottom: .4rem; border-radius: .5rem; background: #eceeea; }
.belegt-zeile.eigen { background: #dcefe2; }
.ganz-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bis-wahl { display: flex; align-items: center; gap: .4rem; }
.bis-wahl .btn { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; line-height: 1; }

/* Zähler eintragen */
.zaehler-gross { font-size: 1.5rem; text-align: right; }

.reservierungs-liste .eigen { background: #eef7f1; }

/* Admin: Reservieren in Vertretung für ein Mitglied */
:root { --vertretung: #7b3fa0; }
.vertretung-wahl { padding: .6rem .75rem; margin-bottom: .75rem; border-radius: .5rem; background: #fff; border: 1px solid #d6dbe0; }
.vertretung-wahl.gewaehlt { background: #f3eaf8; border-color: var(--vertretung); }
.haelfte.vertretung { background: var(--vertretung); }
.legende i.vertretung { background: var(--vertretung); }
.vertretung-zeile { padding: .5rem .75rem; margin-bottom: .6rem; border-radius: .5rem; background: #f3eaf8; color: #4a1f63; }
.vertretung-zeile.fehlt { background: #fff3cd; color: #664d03; }
.list-group-item.vertretung, .reservierungs-liste .vertretung { background: #f3eaf8; }
:root { --service: #c05621; }
.haelfte.service { background: var(--service); }
.legende i.service { background: var(--service); }

/* Anmeldeseite */
.start-kopf { text-align: center; padding: 1.5rem .5rem .5rem; color: #1f3d27; }
.start-logo { width: 11rem; height: auto; margin-bottom: .75rem; filter: drop-shadow(0 .4rem .8rem rgba(13, 30, 60, .25)); }
.start-titel { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; margin: .4rem 0 .25rem; }
.start-text { color: #4d6152; margin: 0 auto; max-width: 24rem; }
.start-links { display: grid; gap: .6rem; margin-top: 1rem; }
.start-link { display: flex; flex-direction: column; padding: .8rem 1rem; border-radius: .75rem; background: #fff; border: 1px solid #dde3dc; color: #1f3d27; text-decoration: none; }
.start-link:hover { border-color: #2f5d3a; }
.start-link span { font-size: .85rem; color: #6b7c6f; }

/* Honeypot im Antragsformular (für Menschen unsichtbar) */
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Anleitung */
.anleitung h2 { font-size: 1.2rem; margin-top: 1.5rem; padding-top: .5rem; border-top: 2px solid #2f5d3a; }
.anleitung h3 { font-size: 1rem; margin-top: 1rem; }
.anleitung li { margin-bottom: .25rem; }

/* Stundenweise Vermietung: der Halbtag bleibt frei, jede Stunden-Reservierung ist eine schmale Linie mit Uhrzeit und Name. */
.stunden-linie {
  display: block; margin: 1px 0; padding: 0 2px; border-radius: 2px;
  font-size: .55rem; line-height: 1.3; text-align: left; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stunden-linie.eigen { background: var(--eigen); }
.stunden-linie.belegt { background: var(--belegt); }
.stunden-linie.belegt.verwaltbar { background: var(--verwaltbar); }
.stunden-linie.vertretung { background: var(--vertretung); }
.stunden-linie.service { background: var(--service); }
.legende i.linie { height: .35rem; vertical-align: 2px; }
.stunden-zeile { display: flex; align-items: center; gap: .5rem; }
.stunden-zeile .form-select { width: auto; min-height: 3.25rem; font-size: 1.1rem; }
.stunden-zeile .btn { min-height: 3.25rem; flex: 1; }

/* App aufs Handy (Pages/App) */
.app-seite { text-align: center; }
.app-symbol { border-radius: 22%; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.app-schritte { text-align: left; padding-left: 1.3rem; }
.app-schritte li { margin-bottom: .4rem; }
.app-teilen { display: inline-block; padding: 0 .3rem; border: 1px solid #c8cfc7; border-radius: .3rem; }
.app-qr svg { width: 12rem; height: 12rem; max-width: 100%; }
.app-seite .input-group, .app-seite label { text-align: left; }
.app-hand { text-align: left; border-top: 1px solid #dde3dc; padding-top: 1rem; }
.app-hand-block { margin-bottom: .75rem; }
.app-hand-block .app-schritte { margin: .3rem 0 0; }
