/* Baustella — warm light, trustworthy craft brand */
:root {
  --bg: #f7f5f1;
  --bg-2: #efede8;
  --bg-3: #e6e2db;
  --surface: #ffffff;
  --ink: #2a3038;
  --muted: #5a636e;
  --line: #d9d4cb;
  --line-soft: #ebe7e0;
  --accent: #4a7a68;
  --accent-hover: #3d6858;
  --accent-soft: rgba(74, 122, 104, 0.12);
  --amber: #c4893a;
  --amber-ink: #1f2930;
  --danger: #c45a3c;
  --ok: #2f8f64;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(42, 48, 56, 0.08);
  --shadow-hover: 0 12px 36px rgba(42, 48, 56, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --body-size: 1.0625rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--body-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }

.skip {
  position: absolute; left: -9999px; top: auto;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: 8px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — soft, light */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 241, 0.88);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(42, 48, 56, 0.08);
}
.nav-links {
  display: none; gap: 1.15rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted); font-size: .95rem; font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: none; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; border: 0; border-radius: 999px;
  padding: .9rem 1.35rem; font-weight: 700;
  letter-spacing: .01em; cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(74, 122, 104, 0.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  filter: none;
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.28);
  color: #fff;
}
/* Ghost buttons outside hero (footer/legal) need dark text */
.site-header .btn-ghost,
.section .btn-ghost,
main > .section .btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  backdrop-filter: none;
}
.site-header .btn-ghost:hover,
.section .btn-ghost:hover,
main > .section .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-weight: 800; font-size: .84rem;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .75rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 3px; background: var(--accent);
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 750; }
.lede {
  color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.22rem);
  max-width: 38rem; margin: .9rem 0 0;
  line-height: 1.6;
}

.section { padding: 4.25rem 0; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head p { color: var(--muted); margin: .7rem 0 0; font-size: 1.05rem; }

/* Hero — photo + soft overlay, readable on light page */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  min-height: min(88vh, 780px);
  display: grid; align-items: end;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(32, 38, 44, 0.88) 22%,
      rgba(32, 38, 44, 0.62) 52%,
      rgba(32, 38, 44, 0.35) 100%
    ),
    url("/assets/hero.jpg") right center / cover no-repeat;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 5.5rem 0 3.5rem;
  color: #f5f3ef;
}
.hero .eyebrow { color: #d4b06a; }
.hero .eyebrow::before { background: #d4b06a; }
.hero h1 { color: #faf8f4; }
.hero h1 span { color: #e8c878; }
.hero .lede { color: rgba(245, 243, 239, 0.88); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.6rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .6rem .9rem;
  margin-top: 1.8rem; color: rgba(245, 243, 239, 0.82); font-size: .95rem; font-weight: 600;
}
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: .4rem .85rem;
  backdrop-filter: blur(6px);
}
.chip strong { color: #fff; }

/* Mindset */
.mindset {
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
}
.quote {
  margin: 1.5rem 0 0;
  padding: 1.35rem 1.45rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.18rem; font-weight: 700;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.quote cite {
  display: block; margin-top: .7rem;
  color: var(--muted); font-style: normal; font-weight: 600; font-size: .92rem;
}

/* Services grid */
.grid-3 {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: #c8c2b6;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card .icon {
  width: 64px; height: 64px; margin-bottom: .9rem;
  border-radius: 50%; object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
}
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Why */
.why-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .why-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.section-why { padding-top: 0; }
.why-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem;
}
.why-list li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 1rem;
}
.why-list strong {
  display: block; color: var(--accent); margin-bottom: .3rem;
  font-size: 1rem;
}
.badge-row {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem;
}
.badge {
  font-size: .84rem; font-weight: 700; color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .8rem;
}

/* Steps / Ablauf */
.section-ablauf {
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
}
.steps {
  display: grid; gap: 1.1rem;
  counter-reset: step;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 800; margin-bottom: .85rem;
  box-shadow: 0 3px 10px rgba(74, 122, 104, 0.25);
}
.step p { margin: .45rem 0 0; color: var(--muted); font-size: 1rem; }

/* FAQ */
.faq {
  background: var(--bg);
  border-block: none;
}
.faq-wrap { max-width: 760px; }
.faq details {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: .7rem;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 750; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-weight: 800; font-size: 1.25rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: .8rem 0 0; color: var(--muted); font-size: 1.02rem;
}

/* Form */
.anfrage {
  scroll-margin-top: 5rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.form-shell {
  display: grid; gap: 1.35rem;
}
@media (min-width: 900px) {
  .form-shell { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
.form-aside {
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.form-aside ul {
  margin: 1rem 0 0; padding: 0 0 0 1.15rem; color: var(--muted);
  font-size: 1.02rem;
}
.form-aside li { margin: .4rem 0; }
.form-aside .phones {
  margin-top: 1.35rem; display: grid; gap: .5rem;
}
.form-aside .phones a {
  font-weight: 800; color: var(--ink); text-decoration: none;
  font-size: 1.08rem;
}
.form-aside .phones a:hover { color: var(--accent); }
.form-aside-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid; gap: .95rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
label {
  display: grid; gap: .4rem;
  font-size: .92rem; font-weight: 700; color: var(--muted);
}
label.form-full { margin-top: .95rem; }
label span.req { color: var(--amber); }
input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .88rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder {
  color: #8a929c;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.check {
  display: flex; align-items: flex-start; gap: .7rem;
  color: var(--muted); font-size: .95rem; font-weight: 600;
  margin: 1rem 0 1.1rem;
}
.check input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }
.form-status {
  display: none; margin-top: .95rem; padding: .85rem 1.05rem;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .98rem;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(47, 143, 100, 0.1);
  color: var(--ok);
  border: 1px solid rgba(47, 143, 100, 0.3);
}
.form-status.err {
  background: rgba(196, 90, 60, 0.1);
  color: var(--danger);
  border: 1px solid rgba(196, 90, 60, 0.3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 2.15rem;
  background: #eae6df;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 { margin-bottom: .65rem; font-size: 1.02rem; }
.site-footer p, .site-footer li { color: var(--muted); font-size: .98rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { margin-bottom: .85rem; }
.legal {
  margin-top: 2rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: #7a828c; font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  justify-content: space-between;
}

/* Legal / content pages */
.legal-page { max-width: 720px; }
.legal-card {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.legal-card h2 { font-size: 1.08rem; margin: 0 0 .45rem; }
.legal-card p { margin: 0; color: var(--muted); }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus visibility for accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline-offset: 3px;
}
