/* Büroraum-Suche – große Schrift, klare Knöpfe (Nutzer sind technische Laien) */
:root {
  --blau: #1d4e89; --blau-hell: #e8f0fa; --text: #1b1f24; --leise: #5a6370; --rand: #d5dbe3;
  --gut: #1f7a3d; --gut-hg: #e6f4ea; --warn: #8a5a00; --warn-hg: #fff4d6; --schlecht: #a12622; --schlecht-hg: #fde8e7;
  --offen: #4a5563; --offen-hg: #eef0f3; --hg: #f6f8fb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--hg); }
a { color: var(--blau); }
h1, h2, h3 { line-height: 1.25; }
.leise { color: var(--leise); font-size: .9em; }
.fehler { color: var(--schlecht); font-weight: 600; }
.zahl { color: var(--leise); font-weight: 400; }

.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 5; }
.kopf h1 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.kopf-knoepfe { display: flex; gap: 8px; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }

.knopf-haupt, .knopf-zweit, .knopf-klein { font: inherit; cursor: pointer; border-radius: 10px; text-decoration: none; display: inline-block; }
.knopf-haupt { background: var(--blau); color: #fff; border: 0; padding: 16px 24px; font-size: 1.15rem; font-weight: 700; min-height: 56px; }
.knopf-haupt.klein { padding: 10px 18px; font-size: 1rem; min-height: 44px; }
.knopf-haupt:disabled { opacity: .7; cursor: progress; }
.knopf-zweit { background: #fff; color: var(--blau); border: 2px solid var(--blau); padding: 8px 16px; min-height: 44px; font-weight: 600; }
.knopf-klein { background: #fff; color: var(--leise); border: 1px solid var(--rand); padding: 4px 10px; font-size: .85rem; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }

.karte-gross { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 20px; text-align: center; }
.karte-gross .knopf-haupt { width: 100%; max-width: 480px; }
.fortschritt { max-width: 480px; margin: 12px auto 0; }
.balken { height: 12px; background: var(--blau-hell); border-radius: 6px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; background: var(--blau); transition: width .4s; }

.block { margin-top: 24px; }
.block h2 { font-size: 1.25rem; margin: 0 0 10px; }
.quellen-liste, .makler-liste { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rand); border-radius: 12px; }
.quellen-liste li, .makler-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border-top: 1px solid var(--rand); }
.quellen-liste li:first-child, .makler-liste li:first-child { border-top: 0; }
.makler-liste:empty { display: none; }
.qname { font-weight: 600; }

.karten { display: grid; gap: 14px; }
.karte { display: grid; grid-template-columns: 180px 1fr; gap: 14px; background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 14px; }
.karte .bild { width: 180px; height: 135px; object-fit: cover; border-radius: 10px; background: var(--blau-hell); }
.karte.ohne-bild { grid-template-columns: 1fr; }
.karte h3 { margin: 0; font-size: 1.1rem; }
.karte h3 a { text-decoration: none; }
.karte h3 a:hover { text-decoration: underline; }
.karte .ort { margin: 2px 0 6px; }
.zahlen { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0; }
.zahlen strong { font-size: 1.15rem; }
.marken, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.marke, .chip { font-size: .85rem; padding: 2px 10px; border-radius: 999px; background: var(--offen-hg); color: var(--offen); }
.marke.neu { background: var(--blau); color: #fff; font-weight: 700; }
.gut { background: var(--gut-hg); color: var(--gut); }
.warn { background: var(--warn-hg); color: var(--warn); }
.schlecht { background: var(--schlecht-hg); color: var(--schlecht); }
.chip.offen { background: var(--offen-hg); color: var(--offen); }
.hinweis { margin: 6px 0; font-style: italic; }
.filter { margin: 6px 0; color: var(--warn); font-size: .9rem; }
.knoepfe, .ablehnen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.ablehnen select { font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--rand); min-height: 44px; }
.knopf-merken[aria-pressed="true"] { background: var(--warn-hg); border-color: var(--warn); color: var(--warn); }

details { background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 0 14px; margin-bottom: 10px; }
details[hidden] { display: none; }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
details .karten { padding-bottom: 14px; }

.makler-form { display: grid; gap: 10px; margin-top: 12px; background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 14px; }
.makler-form label { display: grid; gap: 4px; font-weight: 600; }
.makler-form input, .login-box input { font: inherit; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px; min-height: 48px; }
.makler-form button { justify-self: start; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1b1f24; color: #fff; padding: 12px 16px;
  border-radius: 12px; z-index: 30; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast .knopf-klein { background: #fff; color: var(--text); font-weight: 700; min-height: 44px; padding: 8px 16px; font-size: 1rem; }

.hilfe { border: 0; border-radius: 16px; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.hilfe::backdrop { background: rgba(0, 0, 0, .5); }
.hilfe-kopf { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rand); }
.hilfe-kopf h2 { margin: 0; font-size: 1.2rem; }
.hilfe-text { padding: 4px 20px 20px; }
.hilfe-text h3 { margin: 18px 0 6px; font-size: 1.05rem; }

.tour-ring { position: fixed; z-index: 40; border: 3px solid #f0a500; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); pointer-events: none; transition: all .2s; }
.tour-blase { position: fixed; z-index: 41; background: #fff; border-radius: 14px; padding: 16px 18px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.tour-blase.willkommen { width: min(460px, calc(100vw - 32px)); text-align: center; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); }
.tour-blase h3 { margin: 4px 0 8px; font-size: 1.15rem; }
.tour-blase p { margin: 0 0 12px; }
.tour-fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tour-punkte { display: flex; gap: 5px; margin-right: auto; }
.tour-punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--rand); }
.tour-punkte i.an { background: var(--blau); }

body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { background: #fff; border: 1px solid var(--rand); border-radius: 16px; padding: 24px; width: min(420px, 100%); display: grid; gap: 12px; text-align: center; }
.login-box h1 { margin: 0 0 8px; font-size: 1.4rem; }
.login-box label { text-align: left; font-weight: 600; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .karte { grid-template-columns: 1fr; }
  .karte .bild { width: 100%; height: 180px; }
}
