/* studio acker – Bauwerksbuch Wien. Statische Seite, Aufbau aus der Skizze vom 06.11.2026. */
:root {
  --ink: #1a1a1a;
  --muted: #5d5d58;
  --line: #d8d8d2;
  --box: #efefea;
  --bg: #f8f8f5;
  --white: #ffffff;
  --accent: #005300;        /* Grün von studio acker */
  --accent-dark: #003a00;
  --ok: #2f7d32;
  --error: #b3261e;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Rahmen ---------- */
#site { container-type: inline-size; min-height: 100vh; background: var(--bg); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line);
}
.logo { text-decoration: none; display: block; }
.logo img { height: 20px; width: auto; }
.nav { display: none; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a.switch { font-weight: 700; border-bottom: 2px solid var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-actions .btn { display: none; white-space: nowrap; }

section { padding: 36px 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.anchor { display: block; position: relative; top: -64px; height: 0; visibility: hidden; }
.wrap { max-width: 980px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--mono); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: 28px; }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: #333; }
.muted { color: var(--muted); font-size: 14px; }
.overline { font-family: var(--mono); font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--accent); display: inline-block; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: 4px; border: 2px solid var(--accent);
  font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: var(--white); color: var(--accent-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.chips li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

.hero-call { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.hero-call a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.hero-img { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-top: 20px; }
.hero-img img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 35%; }

.trust { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
.trust div { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 13px; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.trust-logo { height: 34px; width: auto; }

.grid-2, .grid-3, .tiles { display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }

/* Rechner */
.calc { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 18px; }
.calc label { margin-top: 0; }
.calc-input { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; }
.calc-input input[type="number"] { text-align: right; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.price { font-family: var(--mono); font-size: 34px; font-weight: 800; margin: 14px 0 0; }
.price-sub { color: var(--muted); font-size: 14px; }
.calc details.calc-help { margin: 14px 0 0; }
.calc details.calc-help summary { font-size: 14px; padding: 10px 40px 10px 12px; }
.calc details.calc-help summary::after { top: 5px; }
.calc details.calc-help .faq-body p { font-size: 14px; margin-top: 0; }
.incl { list-style: none; padding: 0; margin: 14px 0; }
.incl li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.incl li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }

/* Bin ich betroffen? */
.choice { display: grid; gap: 8px; margin: 12px 0; }
.choice button { min-height: 48px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 4px; font-weight: 700; cursor: pointer; }
.choice button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 4px; padding: 14px; min-height: 60px; }

/* Ablauf */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; }
.duration { font-family: var(--mono); font-weight: 700; background: var(--white); border: 2px solid var(--ink); border-radius: 6px; padding: 10px 14px; display: inline-block; }

/* Hausverwaltungen */
.hv { background: #ecece6; }
.ticks { list-style: none; padding: 0; margin: 12px 0; }
.ticks li { padding: 6px 0 6px 26px; position: relative; }
.ticks li::before { content: "→"; position: absolute; left: 2px; font-weight: 800; }
.tiles-compact { list-style: none; margin: 0; padding: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles-compact li { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.3; }
.tiles-compact li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-family: system-ui, sans-serif; font-size: 13px; }

/* Team */
.team-photo { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.team-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.names h3 { margin-bottom: 2px; font-size: 16px; }
.checklist { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.checklist th, .checklist td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.checklist th { width: 45%; }

/* FAQ und Aufklappen */
details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
summary { padding: 14px 44px 14px 16px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 12px 16px 6px; }

/* Formulare */
.form-card { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 18px; }
.stepper { display: flex; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.stepper span { flex: 1; padding: 8px; border-radius: 4px; background: var(--box); text-align: center; font-weight: 600; color: var(--muted); }
.stepper span.active { background: var(--ink); color: #fff; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--mono); font-weight: 700; font-size: 17px; margin: 10px 0 0; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9b9b1; border-radius: 4px; background: var(--white); color: var(--ink);
}
textarea { min-height: 90px; }
.radios, .checks { display: grid; gap: 6px; }
.radios label, .check label, .checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.radios input, .check input, .checks input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.check { margin-top: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-nav { display: flex; gap: 10px; margin-top: 18px; }
.form-nav .btn { flex: 1; }
.form-error { color: var(--error); font-weight: 700; font-size: 14px; margin: 14px 0 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hidden { display: none !important; }
/* reCAPTCHA-Hinweis steht als Text beim Formular, das Abzeichen würde sonst die Leiste unten verdecken */
.grecaptcha-badge { visibility: hidden; }

/* Fußzeile und Leiste unten */
footer { background: #222; color: #dcdcdc; padding: 28px 16px 90px; font-size: 14px; }
footer a, footer .linkbtn { color: #fff; }
footer p { margin: 0 0 8px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.sticky-cta {
  position: sticky; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  transition: transform .2s ease, opacity .2s ease;
}
.sticky-cta .btn { min-height: 46px; padding: 8px; }
.sticky-cta .btn-call { border-color: var(--line); color: var(--ink); padding: 8px 18px; }
.sticky-cta.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }

/* Unterseiten: Danke, Impressum, Datenschutz */
.page { padding: 40px 16px 56px; }
.page .wrap { max-width: 760px; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.legal address { font-style: normal; }
.next-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.next-steps li span.nr { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.next-steps strong { display: block; }

/* Cookie-Einwilligung */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}
.consent-box {
  max-width: 900px; margin: 0 auto; background: var(--white); border: 2px solid var(--accent); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; max-height: 85vh; overflow: auto;
  display: grid; gap: 14px;
}
.consent h2 { font-size: 18px; margin: 0 0 6px; }
.consent p { font-size: 14px; color: #333; margin: 0; }
.consent-prefs { background: var(--box); border-radius: 6px; padding: 12px; display: grid; gap: 10px; font-size: 14px; }
.consent-prefs label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-weight: 600; }
.consent-prefs input { width: 18px; height: 18px; accent-color: var(--accent); }
.consent-actions { display: grid; gap: 8px; }
.consent-actions .btn { width: 100%; }
.consent-actions .linkbtn { color: var(--muted); font-size: 14px; padding: 8px; }

/* ---------- Desktop über Container-Abfragen ---------- */
@container (min-width: 760px) {
  h1 { font-size: 42px; }
  h2 { font-size: 29px; }
  section { padding: 56px 32px; }
  .site-header { padding: 12px 32px; }
  .logo img { height: 24px; }
  .nav { display: flex; }
  .header-phone { display: inline; }
  .header-actions .btn { display: inline-flex; }
  .hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
  .hero-img { margin-top: 0; }
  .hero-img img { height: 420px; }
  .btn-row { flex-direction: row; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1.2fr 1fr; }
  .choice { grid-template-columns: repeat(3, 1fr); }
  .tiles-compact { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tiles-compact li { min-height: 72px; padding: 16px; font-size: 16px; }
  .sticky-cta { display: none; }
  footer { padding-bottom: 28px; }
  .page { padding: 64px 32px 80px; }
}
@media (min-width: 760px) {
  .consent-box { grid-template-columns: 1fr 240px; align-items: start; padding: 22px; }
}
