* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #1d1d1f; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 6px 0; }
.klein { font-size: 14px; color: #555; }
.box { border: 1px solid #ddd; border-radius: 10px; padding: 14px; margin: 12px 0; background: #fafafa; }
.fest { border: 2px solid #2e7d32; background: #eef8ef; }
.fest .gross { font-size: 22px; font-weight: 700; margin: 4px 0; }
.knopf, button { display: inline-block; font: inherit; padding: 9px 14px; border-radius: 8px; border: 1px solid #bbb; background: #fff; color: #1d1d1f; cursor: pointer; text-decoration: none; margin: 4px 6px 4px 0; }
.knopf.haupt, button.haupt { background: #1a73e8; border-color: #1a73e8; color: #fff; font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #bbb; border-radius: 8px; background: #fff; color: #1d1d1f; max-width: 100%; }
input[type=text], input[type=url], textarea { width: 100%; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.slot { border: 1px solid #ddd; border-radius: 10px; padding: 12px; margin: 10px 0; }
.slot.bestes { border-color: #2e7d32; }
.slot .zeit { font-size: 19px; font-weight: 700; }
.wahl { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wahl button { flex: 1 1 120px; margin: 0; }
.wahl button.an.passt { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.wahl button.an.vielleicht { background: #f9a825; border-color: #f9a825; color: #1d1d1f; }
.marke { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.marke.nacht { background: #e8e8f0; color: #444; }
.marke.top { background: #2e7d32; color: #fff; }
.marke.festm { background: #1a73e8; color: #fff; }
.status { margin-left: 6px; font-weight: 600; }
.status.ok { color: #2e7d32; }
.status.fehler { color: #c62828; }
.tabelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid #e5e5e5; padding: 7px 6px; text-align: left; vertical-align: top; }
th { background: #f3f3f3; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
tr.summe td { font-weight: 700; border-top: 2px solid #ccc; }
.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
textarea { min-height: 70px; }
.versteckt { display: none; }

/* Kalenderübersicht */
.kalender { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin: 8px 0; }
.ktag { flex: 0 0 92px; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; background: #fff; }
.kkopf { background: #1a73e8; color: #fff; text-align: center; padding: 6px 0; line-height: 1.15; }
.kwt { font-size: 13px; } .knr { font-size: 22px; font-weight: 700; } .kmo { font-size: 12px; }
.kzeit { display: block; width: 100%; margin: 0; border: 0; border-top: 1px solid #eee; border-radius: 0; padding: 7px 6px; text-align: center; background: #fff; }
.kzeit.knacht { background: #f0f0f5; }
.kzeit.passt { background: #e3f3e4; } .kzeit.vielleicht { background: #fff4d6; }
.kzeit.kbest .kuhr { color: #2e7d32; } .kzeit.kfest { outline: 2px solid #1a73e8; outline-offset: -2px; }
.kuhr { font-weight: 700; font-size: 16px; }
.kbalken { height: 5px; background: #e6e6e6; border-radius: 3px; margin: 4px 0 3px; overflow: hidden; }
.kbalken span { display: block; height: 100%; background: #2e7d32; }
.kzahl { font-size: 11px; color: #555; }
