/* MONARCA – öffentliche Seiten: dunkel, abgerundet, Glas-Optik */
:root {
  --bg: #08080a; --gold: #d9b46a; --gold-d: #a67a30; --gold-l: #f2d892;
  --text: #f1ede4; --muted: #a9a398; --line: rgba(255, 255, 255, .09);
  --glass: rgba(14, 14, 17, .58); --glass-strong: rgba(10, 10, 12, .74);
  --ok: #3ddc84; --err: #ff5d5d; --r: 22px; --r-sm: 14px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.65 var(--font);
  background: linear-gradient(180deg, rgba(6, 6, 8, .42) 0%, rgba(6, 6, 8, .72) 55%, rgba(6, 6, 8, .94) 100%), url('/img/bg.jpg') center top / cover fixed no-repeat, var(--bg);
}
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: .02em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-family: var(--serif); font-weight: 400; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: .4rem 0 .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Kopfzeile: schwebend, durchsichtig, abgerundet */
.top { position: sticky; top: 0; z-index: 50; padding: 14px clamp(12px, 3vw, 32px) 0; }
.bar {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 8px 12px 8px 18px;
  background: rgba(12, 12, 15, .5); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-l); font-size: .95rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.brand img { height: 30px; width: auto; display: block; }
.bar nav { display: flex; gap: 2px; margin-left: 10px; flex: 1; justify-content: center; flex-wrap: wrap; }
.bar nav a { color: var(--text); text-decoration: none; font-size: .86rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.bar nav a:hover { background: rgba(255, 255, 255, .07); color: var(--gold-l); }
.bar nav a.on { background: rgba(217, 180, 106, .16); color: var(--gold-l); }
.right { display: flex; align-items: center; gap: 10px; }

/* Leitstelle: Nummer zum Kopieren, grün = besetzt, rot = nicht besetzt */
.dispatch {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: inherit; color: var(--text);
  padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .1s;
}
.dispatch:hover { background: rgba(255, 255, 255, .09); } .dispatch:active { transform: scale(.98); }
.dispatch.on { border-color: rgba(61, 220, 132, .55); } .dispatch.off { border-color: rgba(255, 93, 93, .5); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--err); box-shadow: 0 0 0 0 rgba(255, 93, 93, .6), 0 0 12px var(--err); }
.on > .dot, .on .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dispatch.on .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55), 0 0 12px var(--ok); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0), 0 0 12px var(--ok); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0), 0 0 12px var(--ok); } }
.dtext { display: grid; line-height: 1.1; text-align: left; }
.dlabel { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.dstate { font-size: .78rem; } .dispatch.on .dstate { color: var(--ok); } .dispatch.off .dstate { color: var(--err); }
.dnum { font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; padding-left: 10px; border-left: 1px solid var(--line); }
.dcopied { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) scale(.9); opacity: 0; pointer-events: none; background: var(--gold); color: #1a1405; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; transition: .2s; white-space: nowrap; }
.dispatch.copied .dcopied { opacity: 1; transform: translateX(-50%) scale(1); }

/* Buttons */
.btn {
  display: inline-block; padding: .75rem 1.6rem; border-radius: 999px; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
  color: #1a1405 !important; font: 600 .9rem var(--font); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(217, 180, 106, .28); filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--gold-l) !important; border-color: rgba(217, 180, 106, .55); }
.btn.ghost:hover { background: rgba(217, 180, 106, .12); box-shadow: none; }
.btn.small { padding: .5rem 1.15rem; font-size: .82rem; }

body.site { display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; width: 100%; }
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px) 60px; }
main.narrow { max-width: 680px; }
section { margin-top: 22px; }
.pagehead { padding: 56px 0 8px; } .pagehead .intro { max-width: 64ch; color: #d8d3c8; font-size: 1.05rem; }

/* Karten aus Glas */
.card { border-radius: var(--r); padding: 24px; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.card h2 { margin-top: 0; }
a.card.link { text-decoration: none; color: inherit; display: block; transition: transform .2s, border-color .2s; }
a.card.link:hover { transform: translateY(-3px); border-color: rgba(217, 180, 106, .5); }
.more { color: var(--gold); font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card.soon { opacity: .72; }
.tag { display: inline-block; font-size: .62rem; padding: .12rem .6rem; border-radius: 999px; background: rgba(217, 180, 106, .18); color: var(--gold-l); letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.rank { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0; }
.person { text-align: center; }
.photo { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(217, 180, 106, .6); display: block; margin: 0 auto 10px; background: #15151a; }
.photo.wide { width: 100%; height: 190px; border-radius: var(--r-sm); border: 0; margin-bottom: 12px; }
.photo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-l); font: 600 2rem var(--font); letter-spacing: .05em; }
.feature { display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr; gap: 24px; align-items: center; }
.feature .photo.wide { height: 230px; margin: 0; }

/* Startseite */
.hero { text-align: center; padding: clamp(36px, 8vw, 90px) 0 30px; }
.hero-logo { width: min(560px, 88%); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .6)); }
.lead { font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-style: italic; max-width: 56ch; margin: 22px auto; color: #e9e4d8; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 6px 0 4px; }
.herostate { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 7px 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-size: .9rem; }
.herostate.on { color: var(--ok); } .herostate.off { color: var(--err); }
.bignum { font: 700 3.2rem var(--font); letter-spacing: .08em; margin: .2rem 0; color: var(--gold-l); }

/* Preise */
table.prices { width: 100%; border-collapse: collapse; }
table.prices th, table.prices td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.prices tr:last-child th, table.prices tr:last-child td { border-bottom: 0; }
table.prices th { width: 34%; font-weight: 600; color: var(--gold-l); }

/* Formulare */
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: #d8d3c8; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  font: 1rem var(--font); color: var(--text); padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .06); width: 100%;
}
.form select option { background: #15151a; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(217, 180, 106, .55); outline-offset: 1px; border-color: transparent; }
.form .check { display: flex; align-items: flex-start; gap: 10px; }
.quote { font-size: 1.3rem; }
.msg { padding: 10px 14px; border-radius: var(--r-sm); border-left: 4px solid var(--gold); background: rgba(255, 255, 255, .05); } .msg:empty { display: none; }
.msg.ok { border-color: var(--ok); } .msg.err { border-color: var(--err); color: #ff9b9b; }
.map { min-height: 240px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; margin-block: 16px; border-radius: var(--r); border: 1px dashed rgba(217, 180, 106, .5); background: rgba(0, 0, 0, .3); color: var(--muted); }
button.link { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; text-decoration: underline; }

footer { flex: none; margin-top: 0; padding: 34px 16px 40px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); font-size: .9rem; }
footer p { margin: 3px 0; } .fbrand { color: var(--gold-l); letter-spacing: .35em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 900px) {
  .bar { flex-wrap: wrap; border-radius: 28px; gap: 8px 12px; padding: 10px 14px; }
  .bar nav { order: 3; flex: 1 1 100%; width: 100%; margin: 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; }
  .right { margin-left: auto; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .dtext { display: none; } .right .btn { display: none; } .dnum { border: 0; padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Buchung: Auswahl als Chips statt Dropdown, Preisfeld */
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chips label { display: block; font-size: 1rem; color: var(--text); cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); transition: .18s; user-select: none; }
.chips label:hover span { background: rgba(255, 255, 255, .1); }
.chips input:checked + span { background: linear-gradient(135deg, var(--gold-l), var(--gold-d)); color: #1a1405; border-color: var(--gold); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hint { min-height: 1.1em; font-size: .8rem; color: var(--muted); }
.hint[data-state=ok] { color: var(--ok); } .hint[data-state=err] { color: #ff9b9b; } .hint[data-state=info] { color: var(--gold-l); }
.copyable { position: relative; background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.copyable:hover { color: var(--gold-l); }
.ctip { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%) scale(.9); opacity: 0; pointer-events: none; background: var(--gold); color: #1a1405; font-size: .75rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; transition: .2s; white-space: nowrap; text-decoration: none; }
.copyable.copied .ctip { opacity: 1; transform: translateX(-50%) scale(1); }
.quotebox { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-sm); background: rgba(217, 180, 106, .09); border: 1px solid rgba(217, 180, 106, .3); }
.qprice { font: 600 2.2rem var(--font); color: var(--gold-l); line-height: 1.1; }
.qinfo { text-align: right; }

/* Kennzeichen */
.plate { display: inline-block; padding: 3px 14px; border-radius: 8px; background: linear-gradient(180deg, #f7f3e8, #e4dcc4); color: #15151a; border: 2px solid #15151a; box-shadow: 0 0 0 2px #e9e2cc, 0 4px 14px rgba(0, 0, 0, .4); font: 700 1.05rem 'Courier New', ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.plate.small { padding: 1px 9px; font-size: .8rem; letter-spacing: .12em; box-shadow: none; }

/* Statusseite (Uber-Stil) */
.bigstatus { font: 600 1.35rem var(--font); margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0 9px 2px; color: var(--muted); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 30px; height: 22px; width: 2px; background: var(--line); }
.steps .sdot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: transparent; flex: none; z-index: 1; }
.steps li.done { color: var(--text); } .steps li.done .sdot { background: var(--gold); border-color: var(--gold); }
.steps li.done:not(:last-child)::after { background: var(--gold); }
.steps li.now { color: var(--gold-l); font-weight: 600; } .steps li.now .sdot { border-color: var(--gold-l); background: var(--gold-l); box-shadow: 0 0 0 5px rgba(217, 180, 106, .25); animation: pulse2 1.8s infinite; }
@keyframes pulse2 { 0% { box-shadow: 0 0 0 0 rgba(217, 180, 106, .5); } 70% { box-shadow: 0 0 0 10px rgba(217, 180, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 180, 106, 0); } }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.person-row { display: flex; align-items: center; gap: 14px; }
.dphoto { width: 84px; height: 84px; margin: 0; flex: none; }
.vphoto { width: 100%; max-width: 220px; height: 100px; object-fit: cover; border-radius: var(--r-sm); display: block; margin-bottom: 8px; }
.car-row .plate { margin-top: 8px; } .gold { color: var(--gold-l); }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* Login: Karte mittig auf der Seite */
main.auth { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.authbox { width: min(100%, 440px); }
.authbox h1 { font-size: 1.8rem; margin-bottom: 4px; }
.form.flat { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 14px; }
