/* ===== Dany-Umbau Service – Professional Stylesheet ===== */
:root {
  --anthracite: #1a1d23;
  --anthracite-light: #2a2e37;
  --anthracite-mid: #3a3f4b;
  --accent: #e8912d;
  --accent-hover: #f0a045;
  --accent-soft: #f5b86a;
  --accent-dark: #c4741f;
  --cream: #faf8f5;
  --white: #ffffff;
  --text: #2c2f36;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(26, 29, 35, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 29, 35, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-dark {
  background: var(--anthracite);
  color: var(--white);
  border-color: var(--anthracite);
}
.btn-dark:hover {
  background: var(--anthracite-light);
  border-color: var(--anthracite-light);
  color: var(--white);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--anthracite);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { color: var(--white); }

.logo-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}
.logo-mark img,
.logo-mark svg {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}
.logo-text {
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.logo-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.site-footer .logo-mark img {
  width: 48px;
  height: 48px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav .btn {
  margin-left: 0.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ===== Hero (visual, mobile-first) ===== */
.hero {
  position: relative;
  color: var(--white);
  /* First screen = sticky header + hero */
  height: calc(100svh - var(--header-h));
  height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--anthracite);
  padding: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  animation: heroKen 14s ease-in-out forwards;
}
.hero-slide.is-active img { animation-name: heroKen; }

/* <picture> wrappers: keep existing img rules working */
.hero-slide picture,
.service-photo picture,
.project-card-cover picture,
.gallery-item picture,
.about-photo picture,
.ba-before-clip picture {
  display: contents;
}
.ba-slider > picture {
  position: absolute;
  inset: 0;
  display: block;
}
.ba-slider > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@keyframes heroKen {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to { transform: scale(1.18) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(14,16,20,0.92) 0%, rgba(14,16,20,0.55) 42%, rgba(14,16,20,0.35) 70%, rgba(14,16,20,0.45) 100%),
    linear-gradient(120deg, rgba(14,16,20,0.55) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
}

.hero-content {
  max-width: 36rem;
  margin-bottom: 3.25rem;
  padding-bottom: 0.5rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 7.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
  max-width: 18ch;
}

.hero-loc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  width: 100%;
  max-width: 22rem;
}
.btn-hero {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
}
.btn-outline.btn-hero {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.55);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 4;
  animation: heroBounceX 2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--white); }
@keyframes heroBounceX {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
}
.trust-item {
  text-align: center;
  padding: 0.35rem 0.25rem;
}
.trust-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}
.trust-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (min-width: 720px) {
  .hero { align-items: center; }
  .hero-inner {
    justify-content: center;
    padding: 2.5rem 1.5rem 3.25rem;
  }
  .hero-content { margin-bottom: 0; }
  .hero-actions {
    flex-direction: row;
    max-width: none;
    width: auto;
  }
  .btn-hero { width: auto; min-width: 11.5rem; }
  .hero-scroll { bottom: 1.25rem; }
  .trust-bar-inner { padding: 1.25rem 1.5rem; gap: 1rem; }
  .trust-item strong { font-size: 1rem; }
  .trust-item span { font-size: 0.85rem; }
}

/* ===== Sections common ===== */
.section {
  padding: 5rem 0;
}
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Leistungen ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.services-grid-main {
  grid-template-columns: repeat(2, 1fr);
}

.services-extra {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.services-extra-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.35rem;
}
.services-extra-header .eyebrow {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.services-extra-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.services-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}
.service-card-compact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  box-shadow: none;
}
.service-compact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26,29,35,0.06);
  color: var(--anthracite);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-compact-icon svg { width: 20px; height: 20px; }
.service-card-compact h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--anthracite);
  margin: 0 0 0.25rem;
}
.service-card-compact p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.section-alt .service-card { background: var(--white); }

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--anthracite-light);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-photo img { transform: scale(1.05); }
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,29,35,0.25), transparent 50%);
  pointer-events: none;
}

.service-body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
}
.service-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 0.45rem;
}
.service-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Über uns ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(to top, rgba(26,29,35,0.88), transparent);
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  font-weight: 500;
}

.about-content .eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}
.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  margin-bottom: 1rem;
}
.about-content > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--anthracite);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 0.2rem;
}
.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Ablauf ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  margin: 0 auto 1.15rem;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(232,145,45,0.2));
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info {
  background: var(--anthracite);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.contact-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-info > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.15rem;
}
.contact-item span,
.contact-item a {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}
.contact-item a:hover { color: var(--accent-soft); }

.contact-note {
  background: rgba(232,145,45,0.12);
  border: 1px solid rgba(232,145,45,0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.contact-form-wrap h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 0.35rem;
}
.contact-form-wrap > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 0.35rem;
}
.form-group label .req { color: var(--accent-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,145,45,0.2);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-privacy a { color: var(--accent-dark); text-decoration: underline; }

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-col .placeholder {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--accent-soft); }
.footer-links { display: flex; gap: 1.25rem; }

/* ===== Legal pages ===== */
.legal-page {
  padding: 4rem 0 5rem;
  min-height: 60vh;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--anthracite);
  margin-bottom: 0.5rem;
}
.legal-page .legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 800px;
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--anthracite);
  margin: 1.75rem 0 0.65rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}
.legal-notice {
  background: rgba(232,145,45,0.1);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services-grid, .services-grid-main { grid-template-columns: repeat(2, 1fr); }
  .services-extra-grid { grid-template-columns: 1fr; max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  /* hero stays 100svh */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--anthracite-light);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }
  .nav .btn {
    margin: 0.5rem 0 0;
    width: 100%;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-hero { width: 100%; }

  .section { padding: 3.5rem 0; }
  .services-grid, .services-grid-main { grid-template-columns: 1fr; }
  .services-extra-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .logo-text { font-size: 0.7rem; letter-spacing: 0.1em; }
}

/* ===== Shared photo badge ===== */
.own-photos-badge {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(232,145,45,0.12);
  border: 1px solid rgba(232,145,45,0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.anchor-alias {
  position: relative;
  top: calc(var(--header-h) * -1);
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ===== Project cards ===== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.project-card-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.project-card-open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.project-card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--anthracite-light);
}
.project-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-cover img { transform: scale(1.04); }

.project-card-body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.project-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(232,145,45,0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.project-card-body h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  min-height: 2.6em;
}
.project-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.project-card-cta {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.project-card-cta::after { content: " →"; }

/* Featured BA */
.ba-feature {
  margin-top: 3.25rem;
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.ba-feature-copy .eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.ba-feature-copy h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--anthracite);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.ba-feature-copy p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.6;
}
.ba-wrap { margin: 0; max-width: 420px; justify-self: end; width: 100%; }
.ba-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: none;
  background: var(--anthracite);
}
.ba-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after { position: absolute; inset: 0; }
.ba-before-clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
.ba-before {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  max-width: none;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 0;
  z-index: 3;
  transform: translateX(-50%);
}
.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--anthracite);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.ba-tag {
  position: absolute;
  top: 1rem;
  z-index: 4;
  background: rgba(26,29,35,0.75);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--anthracite-light);
  box-shadow: var(--shadow);
}
.gallery-item[hidden] { display: none !important; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.gallery-item-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.75rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(26,29,35,0.82), transparent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
}
.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--anthracite);
  color: var(--anthracite);
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-dark:hover {
  background: var(--anthracite);
  color: var(--white);
}

/* ===== Project modal ===== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10,12,16,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.project-modal.open,
.project-modal:not([hidden]) { display: flex; }
.project-modal[hidden] { display: none !important; }

.project-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  padding: 1.5rem 1.5rem 1.25rem;
}
.project-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--anthracite);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-modal-close:hover { background: var(--border); }
.project-modal-header {
  padding-right: 2.5rem;
  margin-bottom: 1rem;
}
.project-modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--anthracite);
  margin: 0.4rem 0 0.25rem;
  letter-spacing: -0.02em;
}
.project-modal-progress {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.project-modal-stage {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 0.75rem;
  align-items: center;
}
.project-modal-figure {
  margin: 0;
  background: var(--anthracite);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.project-modal-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--anthracite-light);
}
.project-modal-figure figcaption {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.project-modal-figure figcaption strong {
  color: var(--anthracite);
  font-size: 1.05rem;
}
.project-modal-stepnum {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.project-modal-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--anthracite);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-modal-nav:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.project-modal-nav:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--cream);
  color: var(--text-muted);
  border-color: var(--border);
}
.project-modal-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}
.project-modal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.project-modal-dot.active { background: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,12,16,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open,
.lightbox:not([hidden]) { display: flex; }
.lightbox[hidden] { display: none !important; }
.lightbox-inner {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
}
.lightbox-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 1rem; right: 1rem; position: fixed; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); position: fixed; }

@media (max-width: 960px) {
  .project-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .ba-feature { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .ba-wrap { justify-self: center; max-width: 360px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .project-modal-stage { grid-template-columns: 1fr; }
  .project-modal-nav {
    position: absolute;
    top: 42%;
    z-index: 2;
  }
  .project-modal-prev { left: 0.5rem; }
  .project-modal-next { right: 0.5rem; }
  .project-modal-stage { position: relative; }
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .project-modal-panel { padding: 1.15rem 1rem 1rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}


/* ===== Local town landing pages ===== */
.local-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  background:
    linear-gradient(135deg, rgba(26,29,35,0.96), rgba(43,47,54,0.92)),
    var(--anthracite);
  color: #fff;
}
.local-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.7);
}
.local-hero .breadcrumb a { color: var(--accent-soft); text-decoration: none; }
.local-hero .breadcrumb a:hover { text-decoration: underline; }
.local-kicker {
  color: var(--accent-soft) !important;
  margin-bottom: 0.75rem !important;
}
.local-hero h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.local-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.local-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.local-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 2.5rem;
  align-items: start;
}
.local-block + .local-block { margin-top: 2rem; }
.local-block h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--anthracite);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.local-block p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}
.local-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.local-service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.local-service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}
.local-service-card h3 a {
  color: var(--anthracite);
  text-decoration: none;
}
.local-service-card h3 a:hover { color: var(--accent-dark); }
.local-service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.local-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.local-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(0,0,0,0.06));
}
.local-card-soft { background: var(--cream); }
.local-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  font-weight: 800;
  color: var(--anthracite);
}
.local-card p { margin: 0 0 0.85rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.55; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-bottom: 0.55rem; }
.local-card-note {
  margin: 0.85rem 0 0 !important;
  font-size: 0.86rem !important;
  color: var(--text-muted);
  line-height: 1.5;
}
.local-photo-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.local-photo-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}
.local-photo-link picture { display: block; }
.local-photo-link span {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.92rem;
}
.local-neighbor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.local-neighbor-list li { margin: 0 0 0.4rem; }
.local-neighbor-list a {
  color: var(--anthracite);
  font-weight: 600;
  text-decoration: none;
}
.local-neighbor-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.local-bottom-cta { text-align: center; }
.local-bottom-cta h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--anthracite);
}
.local-bottom-cta p {
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.local-bottom-cta .local-cta-row { justify-content: center; }
.local-hero .btn-outline-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.local-hero .btn-outline-dark:hover {
  background: rgba(255,255,255,0.16);
}

/* Einsatzgebiete on homepage */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
.area-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.05rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.area-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
  border-color: rgba(232,145,45,0.45);
}
.area-link strong {
  color: var(--anthracite);
  font-size: 0.98rem;
  font-weight: 800;
}
.area-link span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .local-layout { grid-template-columns: 1fr; }
  .local-aside { position: static; }
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .local-services-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .local-hero { padding-top: calc(var(--header-h) + 1.75rem); }
}
