/* Grundeinstellungen für die eigenständige Seite */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: Hero mit Direktkontakt-Karte, danach Vertrauensleiste, Leistungen, Ablauf, Person, FAQ, Kontaktformular. Kontakt ist in Header, Hero, mobiler Leiste und Abschluss präsent. */
:root {
  --bg: #EFE9DF;
  --surface: #FBF8F3;
  --surface-2: #E6DDCF;
  --ink: #25201B;
  --ink-soft: #5A5148;
  --line: #D5CABA;
  --field-line: #8C8071;
  --brand: #8A4B14;
  --hero-bg: #2A2420;
  --hero-ink: #F7F2EA;
  --hero-soft: #D6CAB8;
  --hero-line: rgba(247,242,234,.5);
  --ruler: rgba(247,242,234,.38);
  --accent: #E5701B;
  --accent-hover: #F08A3C;
  --accent-ink: #1A1208;
  --tint: #E3D6C3;
  --focus: #0B64C0;
  --font-display: 'Barlow Condensed', 'Avenir Next Condensed', 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', 'Avenir Next', 'Segoe UI', Roboto, system-ui, -apple-system, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1714;
    --surface: #241F1B;
    --surface-2: #2C2621;
    --ink: #F1EBE2;
    --ink-soft: #B9AE9F;
    --line: #3A322B;
    --field-line: #75695B;
    --brand: #F0A35E;
    --hero-bg: #14110F;
    --hero-ink: #F7F2EA;
    --hero-soft: #BFB3A2;
    --tint: #3A2E22;
    --focus: #7DB6F2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #1B1714;
    --surface: #241F1B;
    --surface-2: #2C2621;
    --ink: #F1EBE2;
    --ink-soft: #B9AE9F;
    --line: #3A322B;
    --field-line: #75695B;
    --brand: #F0A35E;
    --hero-bg: #14110F;
    --hero-ink: #F7F2EA;
    --hero-soft: #BFB3A2;
    --tint: #3A2E22;
    --focus: #7DB6F2;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--surface);
  z-index: 10;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 4.7rem); letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { scroll-margin-top: 84px; }
.sec { padding-block: clamp(52px, 8vw, 92px); }
.sec-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 36px; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.4rem;
  border-radius: 6px; border: 2px solid transparent;
  font: 600 1.05rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-line { border-color: var(--hero-line); color: var(--hero-ink); }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-solid { background: var(--brand); color: var(--surface); }
.btn-solid:hover { filter: brightness(1.12); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 6px;
  background: var(--hero-bg); color: var(--hero-ink);
  display: grid; place-items: center;
  font: 700 1.35rem/1 var(--font-display);
}
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-name { font: 700 1.3rem/1.1 var(--font-display); letter-spacing: .01em; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.head-cta { min-height: 46px; padding: 0 1.1rem; flex: none; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(44px, 7vw, 84px) clamp(40px, 6vw, 68px);
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-tag { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--hero-soft); }
.hero p.lead { font-size: 1.2rem; color: var(--hero-soft); max-width: 52ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.direct {
  background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 26px; display: grid; gap: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.direct h2 { font-size: 1.7rem; }
.direct .phone {
  font: 700 clamp(1.9rem, 4.4vw, 2.5rem)/1 var(--font-display);
  text-decoration: none; color: var(--brand); letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.direct .mail { overflow-wrap: anywhere; font-weight: 500; }
.direct .note { color: var(--ink-soft); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 14px; }
.ruler {
  height: 22px;
  background-image:
    repeating-linear-gradient(90deg, var(--ruler) 0, var(--ruler) 2px, transparent 2px, transparent 48px),
    repeating-linear-gradient(90deg, var(--ruler) 0, var(--ruler) 1px, transparent 1px, transparent 9.6px);
  background-size: 100% 22px, 100% 9px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

/* Vertrauensleiste */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 32px; padding-block: 34px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.ico {
  flex: none; width: 46px; height: 46px; border-radius: 6px;
  background: var(--tint); color: var(--brand); display: grid; place-items: center;
}
.ico svg { width: 26px; height: 26px; }
.trust-item h3 { font-size: 1.25rem; margin-bottom: 3px; }
.trust-item p { color: var(--ink-soft); font-size: .97rem; line-height: 1.45; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0;
}
.card-top { display: flex; align-items: center; gap: 14px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { padding: 9px 0; border-top: 1px solid var(--line); }
.card li:first-child { border-top: 0; padding-top: 0; }
.card .more {
  font-weight: 600; color: var(--brand); text-decoration: none; padding-top: 4px;
  display: inline-flex; gap: .4rem; align-items: center;
}
.card .more:hover { text-decoration: underline; }

/* Ablauf */
.steps-bg { background: var(--surface-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.steps li { border-top: 3px solid var(--brand); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.steps .n { font: 700 2.6rem/1 var(--font-display); color: var(--brand); }
.steps p { color: var(--ink-soft); }

/* Person */
.about { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.monogram {
  aspect-ratio: 1; max-width: 100%; border-radius: 8px;
  background: var(--hero-bg); color: var(--hero-ink);
  display: grid; place-items: center;
  font: 700 clamp(4rem, 12vw, 6rem)/1 var(--font-display);
  position: relative; overflow: hidden;
}
.monogram::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background-image:
    repeating-linear-gradient(90deg, var(--ruler) 0, var(--ruler) 2px, transparent 2px, transparent 36px),
    repeating-linear-gradient(90deg, var(--ruler) 0, var(--ruler) 1px, transparent 1px, transparent 7.2px);
  background-size: 100% 22px, 100% 9px; background-position: left bottom; background-repeat: no-repeat;
}
.about-copy { display: grid; gap: 16px; max-width: 62ch; }
.about-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.about-copy .sign { font: 700 1.5rem/1.1 var(--font-display); color: var(--ink); }

/* FAQ */
.faq { max-width: 780px; display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 700 1.3rem/1.2 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 500 1.8rem/1 var(--font-body); color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 60ch; }

/* Kontakt */
.contact-bg { background: var(--surface-2); }
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info .phone {
  font: 700 clamp(2.2rem, 5vw, 3rem)/1 var(--font-display); text-decoration: none; color: var(--brand); overflow-wrap: anywhere;
}
.facts { display: grid; gap: 14px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.copy-btn {
  font: 600 .95rem/1 var(--font-body); background: transparent; color: var(--brand);
  border: 2px solid var(--brand); border-radius: 6px; min-height: 40px; padding: 0 .9rem; cursor: pointer;
}
.copy-btn:hover { background: var(--tint); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px; min-width: 0; }
.form-card h3 { font-size: 1.9rem; }
.form-card > p { color: var(--ink-soft); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--field-line); border-radius: 6px;
  font: 400 16px/1.4 var(--font-body);
}
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.result { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.result textarea { width: 100%; min-height: 150px; padding: 12px 14px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--field-line); border-radius: 6px; font: 400 16px/1.45 var(--font-body); }
.result .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.result .hint { color: var(--ink-soft); font-size: .95rem; }

/* Fuß */
.site-end { background: var(--hero-bg); color: var(--hero-soft); padding-block: 40px 44px; font-size: .95rem; }
.end-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.end-in h3 { color: var(--hero-ink); font-size: 1.3rem; margin-bottom: 8px; }
.end-in p { overflow-wrap: anywhere; }

/* Mobile Kontaktleiste */
.mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px;
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}
.mbar .btn { flex: 1; min-height: 52px; padding: 0 .8rem; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mbar { display: flex; }
  .site-end { padding-bottom: 110px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .monogram { max-width: 180px; }
  .head-cta .wide { display: none; }
  .hero-btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ersatz für frühere Inline-Styles (strenge Content-Security-Policy) */
.sec-head.flush { margin-bottom: 0; }
.form-grid { display: grid; gap: 18px; }
.hint.err { color: var(--ink); font-weight: 600; }
.out-label { font-weight: 600; }

/* Fuß: Links und App-Hinweis */
.site-end a { color: var(--hero-ink); }
.install { display: grid; gap: 12px; justify-items: start; }
.install p { max-width: 36ch; }

/* Leistungskarten mit Foto */
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { padding: 0; gap: 0; overflow: hidden; }
.card-body { padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.card-media { margin: 0; position: relative; aspect-ratio: 8 / 5; max-width: 100%; background: var(--surface-2); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media .ph { display: none; position: absolute; inset: 0; place-items: center; color: var(--brand); }
.card-media .ph svg { width: 64px; height: 64px; opacity: .6; margin-bottom: 14px; }
.card-media .ph::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; opacity: .5;
  background-image:
    repeating-linear-gradient(90deg, var(--brand) 0, var(--brand) 2px, transparent 2px, transparent 48px),
    repeating-linear-gradient(90deg, var(--brand) 0, var(--brand) 1px, transparent 1px, transparent 9.6px);
  background-size: 100% 22px, 100% 9px; background-position: left bottom; background-repeat: no-repeat;
}
.card-media.noimg img { display: none; }
.card-media.noimg .ph { display: grid; }
.btn-accent:hover { color: var(--accent-ink); }

/* Rechtstexte */
.legal { max-width: 760px; padding-block: 48px 90px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.6rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin: 0 0 12px; max-width: 68ch; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--brand); }
.legal .todo { background: var(--tint); color: var(--ink); padding: 1px 6px; border-radius: 4px; }
.back { display: inline-flex; margin-bottom: 24px; font-weight: 600; color: var(--brand); text-decoration: none; }
