@font-face { font-family: Outfit; src: url("/fonts/outfit-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Satoshi; src: url("/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Satoshi; src: url("/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --bg: #081622; --card: #13293a; --border: #365063; --text: #f5f7f8; --muted: #c1cfda; --gold: #f4cb82; --gold-fill: linear-gradient(115deg,#f9db9e,#f0bc68); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 68% 15%,#132e42 0%,transparent 55%),var(--bg); color: var(--text); font: 1rem/1.5 Satoshi,system-ui,sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:where(a,button,input,summary):focus-visible { outline: 3px solid #a6d9fc; outline-offset: 3px; }
.mast { border-bottom: 1px solid #263d4f; background: #0a1a28; }
.mast-inner { max-width: 67rem; min-height: 4.9rem; margin: auto; padding: .6rem clamp(1rem,4vw,2.2rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand, .mast-actions { display: flex; align-items: center; gap: .7rem; }
.brand { text-decoration: none; }
.brand img { width: 3rem; height: 3rem; object-fit: contain; }
.brand span { font: 600 1.08rem/1.18 Outfit,system-ui,sans-serif; }
.brand small { display: block; color: var(--muted); font: 400 .85rem/1.4 Satoshi,system-ui,sans-serif; }
.preview-tag { color: #b5d8ee; border: 1px solid #416379; border-radius: 2rem; padding: .18rem .65rem; font-size: .85rem; }
.logout, .quiet { min-height: 44px; padding: .4rem .8rem; color: var(--text); border: 1px solid var(--border); border-radius: .75rem; background: transparent; font-size: .94rem; }
.logout:hover,.quiet:hover { background: #243f51; }
main { width: min(100% - 2rem, 55rem); margin: clamp(1.7rem,5vw,4rem) auto; }
h1,h2 { margin: 0; font-family: Outfit,system-ui,sans-serif; line-height: 1.12; font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem,5.5vw,3.8rem); }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(1.55rem,4vw,2.15rem); }
.lead { color: var(--muted); margin: .6rem 0 1.6rem; font-size: 1.06rem; }
.course-card,.login-panel,.message-panel { border: 1px solid #384e60; border-radius: 1.45rem; overflow: clip; background: linear-gradient(150deg,#1d374a,#102336 75%); box-shadow: inset 0 1px #ffffff0f,0 1rem 3.5rem #0003; }
.tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; padding: clamp(.85rem,2.6vw,1.55rem); border-bottom: 1px solid var(--border); background: #10233480; }
.tabs a { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .18rem; min-height: 4.2rem; padding: .55rem .35rem; border: 1px solid #456075; background: linear-gradient(155deg,#274154,#172d40); border-radius: .85rem; text-decoration: none; line-height: 1.22; }
.tabs strong { font-family: Outfit,system-ui,sans-serif; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.tabs a span { font-size: .875rem; color: var(--muted); }
.tabs a:hover { border-color: #9db8c9; }
.tabs a[aria-current="page"] { color: #14283b; border-color: #fde4b2; background: var(--gold-fill); }
.tabs a[aria-current="page"] span { color: #384653; }
.editor > h1 { font-size: clamp(1.1rem,2.75vw,1.9rem); margin-bottom: clamp(1.25rem,3vw,2rem); }
.course-body { padding: clamp(1.1rem,3vw,2.1rem); }
.course-meta { color: var(--muted); margin: .35rem 0 1rem; }
.course-meta span { margin: 0 .1rem; color: var(--gold); }
.dates,.history ul { margin: 0; padding: 0; list-style: none; }
.dates li { border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
.row-inner { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem .25rem; min-height: 4.5rem; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.row-inner strong,.history strong { display: block; font-size: clamp(1rem,2.4vw,1.22rem); font-variant-numeric: tabular-nums; line-height: 1.45; }
.kicker { display: block; color: var(--muted); font-size: .875rem; }
.edit-hint { color: #d3e7f4; background: #284356; border: 1px solid #486376; padding: .3rem .7rem; border-radius: 2rem; font-weight: 700; font-size: .875rem; }
summary:hover .edit-hint, details[open] > summary .edit-hint { color: var(--gold); border-color: #a28a63; }
details[open] > summary .edit-hint { background: #433e32; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
label { display: grid; gap: .4rem; font-size: .95rem; font-weight: 700; }
input { min-width: 0; width: 100%; max-width: 100%; min-height: 3rem; padding: .55rem .7rem; border: 1px solid #688397; border-radius: .55rem; font-size: 1rem; color: #fff; background: #0c202f; }
input[type=date] { display: block; -webkit-appearance: none; }
input::-webkit-date-and-time-value { text-align: start; }
.date-form { display: grid; gap: 1rem; padding: 1.1rem; margin: 0 0 .85rem; background: #0c202f; border: 1px solid #3c5263; border-radius: .85rem; }
.primary,.add > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.25rem; border: 1px solid #efd199; border-radius: .7rem; font-weight: 700; }
.primary { justify-self: start; color: #102335; background: var(--gold-fill); }
.primary:hover { filter: brightness(1.07); }
.add { margin-top: .5rem; }
.add > summary { gap: .5rem; color: var(--gold); border-color: #8d7f63; background: #1c303c; }
.add > summary:hover { background: #33434a; }
.add > summary span { font-size: 1.45rem; font-weight: 400; line-height: 1; }
.add[open] .date-form { margin: .8rem 0 0; }
.pending { padding-bottom: .7rem; }
.pending .row-inner { padding-bottom: .35rem; flex-wrap: wrap; }
.status { color: #f7d99e; border: 1px solid #8a7959; border-radius: .5rem; padding: .2rem .55rem; font-size: .875rem; }
.was { color: var(--muted); margin: .1rem .25rem .25rem; font-size: .94rem; }
.pending .quiet { border: 0; text-decoration: underline; text-underline-offset: .2rem; padding: .3rem .25rem; }
.footnote,.fine { color: var(--muted); font-size: .94rem; }
.footnote { margin: 1rem .15rem 0; max-width: 48rem; }
.notice { padding: .8rem 1rem; border-radius: .65rem; border: 1px solid #557c75; background: #173a39; color: #dbf8e9; }
.notice.error { border-color: #ad776f; color: #ffe3df; background: #482d31; }
.history { margin-top: 2rem; }
.history h2 { font-size: 1.35rem; }
.history li { padding: .65rem 0; border-bottom: 1px solid var(--border); }
.history li span { color: var(--muted); font-size: .94rem; }
.login-panel { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); margin: min(9vh,6rem) auto; }
.login-photo { background: linear-gradient(160deg,#1023370d 25%,#07142199),url("/taxi-bildungscenter-gebaeude-800.webp") center / cover; min-height: 22rem; }
.login-fields,.message-panel { padding: clamp(1.5rem,4vw,3rem); align-self: center; }
.login-fields h1 { font-size: clamp(2.2rem,4vw,3rem); }
.login-fields .primary { margin-top: 1.2rem; width: 100%; }
.login-fields .fine { margin: 1.4rem 0 0; }
.message-panel .quiet { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 42rem) {
  .mast-inner { min-height: 4.35rem; }
  .tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tabs a { min-height: 3.6rem; }
  .login-panel { grid-template-columns: 1fr; margin-top: 0; }
  .login-photo { min-height: 0; height: clamp(6.5rem,24vw,10rem); background-position: center 47%; }
}
@media (max-width: 32rem) {
  .brand { gap: .35rem; } .brand img { width: 2.3rem; height: 2.3rem; }
  .brand span { font-size: .94rem; } .brand small { font-size: .8rem; }
  .mast-actions { gap: .4rem; } .logout { padding-inline: .5rem; } .preview-tag { padding-inline: .45rem; }
  main { width: calc(100% - 1.25rem); }
  .editor > h1,.editor > .lead,.footnote { margin-inline: .35rem; }
  .course-body { padding: 1rem .85rem; }
  .course-meta { font-size: .94rem; }
  .edit-hint { font-size: .875rem; padding: .22rem .45rem; }
  .fields { grid-template-columns: 1fr; gap: .7rem; }
  .primary,.add > summary { width: 100%; }
  .row-inner { gap: .32rem; padding-inline: 0; }
}
@media (max-width: 22rem) {
  .mast-inner { flex-wrap: wrap; padding-inline: .6rem; }
  .row-inner { flex-wrap: wrap; }
}

.sortable { position: relative; }
.sortable > li { position: relative; padding-inline-start: 2.85rem; }
.grip { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; position: absolute; inset: .82rem auto auto 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: .55rem; background: transparent; color: #b6cbd9; cursor: grab; font-size: 1.15rem; }
.grip:hover,.grip:focus-visible { background: #294357; }
.sortable > .moving { z-index: 3; background: #20394c; border-radius: .65rem; box-shadow: 0 .45rem 1rem #0007; }
.moving .grip { cursor: grabbing; color: #f4cb82; }
.nudge:not([hidden]) { display: flex; flex-wrap: wrap; gap: .45rem; padding-bottom: .65rem; }
.nudge button { min-height: 44px; border: 1px solid var(--border); border-radius: .55rem; color: var(--text); background: #20394c; padding: .3rem .6rem; }
.sort-status:empty { display: none; }
.course-body[hidden] { display:none; }
.save-bar { margin-top:1rem; padding:.9rem; display:flex; gap:1rem; align-items:center; justify-content:space-between; border:1px solid var(--border); border-radius:.9rem; background:#102536; box-shadow:0 -.4rem 1.5rem #08162266; }
.save-status { margin:0; color:var(--muted); font-size:.95rem; }
.save-status:empty { display:none; }
.save-all { margin-left:auto; min-width:9rem; }
.save-all:disabled { opacity:.5; cursor:default; }
.add-draft { margin-top:.7rem; color:var(--gold); }
.date-actions { display:flex; align-items:center; gap:.6rem; }
.date-actions .close-date { margin-inline-start:auto; }
.date-actions .remove-draft { background:#a52232; border-color:#c94c59; color:white; }
.date-actions .remove-draft:hover { background:#851a27; }
@media(max-width:32rem){ .save-bar { flex-direction:column; gap:.3rem; align-items:stretch; } .save-all { margin:0; } }
@media(max-width:32rem){.sortable .row-inner { flex-wrap: wrap; } .sortable .edit-hint { font-size: .82rem; }}

.course-fields { margin:0; padding:1rem 0; border:0; border-block-start:1px solid var(--border); display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:.8rem 1rem; }
.course-fields legend { padding:0 .6rem 0 0; font:500 clamp(1.25rem,3vw,1.65rem)/1.2 Outfit,system-ui,sans-serif; overflow-wrap:anywhere; }
.course-fields input { min-width:0; width:100%; }
@media(max-width:26rem){ .course-fields { gap:.7rem; } .course-fields label:has([data-field="place"]),.course-fields label:has([data-field="days"]){grid-column:span 2;} }
