/* MietAds: Verkehrsblau (RAL 5017) as the one strong colour, Verkehrsgrün for confirmation,
   white paper and cool greys. Fira Sans (Erik Spiekermann), self-hosted. */
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url(/fonts/fira-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-display: swap; src: url(/fonts/fira-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url(/fonts/fira-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: url(/fonts/fira-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/fira-sans-condensed-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #16202b; --ink-2: #4b5868; --ink-3: #7a8694;
  --line: #dce1e6; --line-2: #c4ccd4; --mist: #f2f4f6; --paper: #ffffff;
  --blue: #00538a; --blue-2: #003e68; --blue-tint: #e7eff6;
  --green: #008351; --green-tint: #e4f3ec;
  --amber: #8f5600; --amber-tint: #fbf1e3; --red: #b3261e;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 8px 24px rgba(22, 32, 43, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "kern", "liga", "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(24px, 4.6vw, 32px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.5; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 15px; height: 15px; fill: #fff; }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: 600 17px/1 "Fira Sans", sans-serif; border-radius: var(--r-m);
  padding: 17px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-primary:disabled { background: #9fb3c6; cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--blue); padding: 12px 8px; font-weight: 500; }
.btn-quiet:hover { text-decoration: underline; }
.btn-block { width: 100%; }

/* Doorbell panel (Klingelschild) — the one memorable element */
.bell-panel { width: 100%; max-width: 330px; padding: 18px 16px 14px; border-radius: 14px;
  background: linear-gradient(160deg, #eceff2 0%, #d5dade 46%, #e3e6e9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.08), 0 14px 30px rgba(22,32,43,.16);
  position: relative; }
.bell-panel::before, .bell-panel::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fbfbfb, #8d959c); top: 8px; }
.bell-panel::before { left: 8px; } .bell-panel::after { right: 8px; }
.bell-row { display: flex; align-items: center; gap: 12px; padding: 7px 4px; }
.bell-row:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,.07); }
.label-tape { flex: 1; min-height: 30px; display: flex; align-items: center; padding: 0 12px; border-radius: 3px;
  background: #1d1f21; color: #f1f1ee; font: 600 15px/1 "Fira Sans Condensed", "Fira Sans", sans-serif; letter-spacing: .09em;
  text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 1px rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; }
.label-empty { background: rgba(255,255,255,.55); color: var(--ink-3); letter-spacing: .02em; text-transform: none;
  font: 500 14px/1 "Fira Sans", sans-serif; border: 1.5px dashed #9aa4ad; box-shadow: none; }
.bell { width: 30px; height: 30px; flex: none; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 40% 35%, #f7f8f9 0%, #c3c9ce 55%, #9aa2a9 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 -2px 2px rgba(0,0,0,.12); }
.bell::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: linear-gradient(#e9ecee, #b8bfc5); }
.bell.lit::after { background: radial-gradient(circle, #6ee6a8 0%, #00a862 60%, #008351 100%); box-shadow: 0 0 10px rgba(0,168,98,.6); }
.bell-caption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-3); }
.ring-in { animation: ring-in 900ms cubic-bezier(.2,.8,.2,1) 300ms both; }
@keyframes ring-in { 0% { opacity: 0; transform: translateY(6px); } 60% { opacity: 1; transform: none; } 100% { opacity: 1; } }
.press .bell.lit { animation: press 700ms ease 900ms both; }
@keyframes press { 0% { transform: scale(1); } 30% { transform: scale(.86); } 100% { transform: scale(1); } }

/* Forms */
.field { display: block; margin-top: 18px; }
.field > span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 7px; }
.input { width: 100%; font: 400 18px/1.3 "Fira Sans", sans-serif; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--r-m); padding: 15px 16px; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,83,138,.18); }
.input[aria-invalid="true"] { border-color: var(--red); }
.hint { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.error { margin-top: 12px; color: var(--red); font-size: 15px; min-height: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Choice tiles (radio/checkbox) */
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices.cols-4 { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 16px; border: 1.5px solid var(--line-2);
  border-radius: var(--r-m); background: var(--paper); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.choice label small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.choice .tick { margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.choice.multi .tick { border-radius: 5px; }
.choice input:checked + label { border-color: var(--blue); background: var(--blue-tint); }
.choice input:checked + label .tick { background: var(--blue); border-color: var(--blue); }
.choice input:checked + label .tick::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices.cols-4 .choice label { justify-content: center; font-size: 17px; font-weight: 600; padding: 14px 4px; white-space: nowrap; }
.choices.cols-4 .choice .tick { display: none; }
.ic { width: 24px; height: 24px; flex: none; color: var(--blue); }

/* Range */
.range-value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-top: 24px; }
.range-value small { font-size: 17px; font-weight: 500; color: var(--ink-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; margin: 18px 0 6px;
  background: linear-gradient(to right, var(--blue) var(--p, 40%), var(--line) var(--p, 40%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: var(--shadow); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }

/* Suggestions */
.suggest { list-style: none; margin: 6px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; box-shadow: var(--shadow); }
.suggest li { padding: 11px 12px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.suggest li span { color: var(--ink-3); font-size: 14px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--blue-tint); }

/* Notices */
.note { border-radius: var(--r-m); padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.note-blue { background: var(--blue-tint); color: var(--blue-2); }
.note-green { background: var(--green-tint); color: #005a38; }
.note-amber { background: var(--amber-tint); color: var(--amber); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 22px 16px 34px; font-size: 14px; color: var(--ink-2); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); }
