/* =======================================================
   Astfalk GmbH & Co. KG – Stuckateur · Maler · Gerüstbau
   Stylesheet
   ======================================================= */

:root{
  /* Markenfarbe aus dem Logo (Lila), sparsam als Akzent eingesetzt */
  --purple-50:  #faf3f8;
  --purple-100: #f1dced;
  --purple-500: #a61a7b; /* Logo-Lila */
  --purple-600: #8a1c6d; /* etwas gedeckter, für Text/Links */
  --purple-700: #670053; /* dunkler Schatten-Ton aus dem Logo */

  --ink:        #2b2630;
  --body-text:  #55505c;
  --line:       #e7e0e6;
  --bg:         #ffffff;
  --bg-alt:     #faf7f9;

  --footer-bg:   #241f29;
  --footer-text: #cdc5cf;
  --footer-line: #3a3340;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 38, 48, 0.08);
  --shadow-hover: 0 16px 36px rgba(43, 38, 48, 0.14);
  --container: 1140px;
}

/* ---------- Reset & Basics ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
}
body{
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4{
  font-family: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}
p{ margin: 0 0 1em; }
img{ max-width: 100%; display: block; }
a{ color: var(--purple-600); text-decoration: none; }
a:hover{ color: var(--purple-700); }
ul{ margin: 0; padding: 0; list-style: none; }
section{ scroll-margin-top: 90px; }

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

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--purple-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus{ left: 0; top: 0; }

/* Eyebrow / Section Label */
.eyebrow{
  display: inline-block;
  color: var(--purple-600);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head{
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2{ font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p{ margin: 0; }

.section{ padding: 84px 0; }
.section--alt{ background: var(--bg-alt); }

/* ---------- Fauser-Stil: Section-Heading mit Akzentbalken ---------- */
.fh{ max-width: 680px; margin: 0 0 46px; }
.fh.fh-center{ margin-left: auto; margin-right: auto; text-align: center; }
.fh .fh-bar{
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--purple-500);
  margin-bottom: 18px;
}
.fh.fh-center .fh-bar{ margin-left: auto; margin-right: auto; }
.fh h2, .fh h1{
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  color: var(--ink);
  margin-bottom: 8px;
}
.fh .fh-sub{
  font-style: italic;
  font-weight: 400;
  color: var(--body-text);
  font-size: 1.15rem;
  margin: 0;
}
.fh p.fh-text{ font-style: normal; font-size: 1rem; margin-top: 14px; }

/* ---------- Diagonaler Section-Übergang ---------- */
.diag-top{ clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); }
.diag-bottom{ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 32px)); }
.diag-both{ clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%); }

/* ---------- Pfeillink ("› Mehr erfahren") ---------- */
.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--purple-600);
}
.link-arrow::after{ content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after{ transform: translateX(3px); }
.link-arrow:hover{ color: var(--purple-700); }

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  font-size: .86rem;
  color: var(--body-text);
  margin-bottom: 22px;
}
.breadcrumb a{ color: var(--purple-600); font-weight: 600; }
.breadcrumb .sep{ margin: 0 8px; color: #c9c0c8; }

/* ---------- Kontakt-CTA-Band ---------- */
.cta-band{
  background: var(--bg-alt);
  padding: 70px 0;
}
.cta-band .container{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.cta-band h2{
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 4px;
}
.cta-band .fh-sub{ font-style: italic; color: var(--body-text); margin-bottom: 0; }
.cta-band-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary{
  background: var(--purple-600);
  color: #fff;
}
.btn-primary:hover{
  background: var(--purple-700);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline{
  background: transparent;
  border-color: var(--purple-600);
  color: var(--purple-600);
}
.btn-outline:hover{
  background: var(--purple-50);
  color: var(--purple-700);
  transform: translateY(-2px);
}
.btn-block{ width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 4px 18px rgba(43,38,48,.08);
  border-bottom-color: var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 56px; width: auto; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.main-nav ul{
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: .97rem;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover,
.main-nav a.is-active{
  color: var(--purple-600);
  background: var(--purple-50);
}
.main-nav .btn{ margin-left: 6px; }

/* ---------- Dropdown „Leistungen“ ---------- */
.main-nav .has-dropdown{
  position: relative;
  display: flex;
  align-items: center;
}
.main-nav .has-dropdown > a{ padding-right: 4px; }
.dropdown-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.dropdown-toggle svg{ width: 16px; height: 16px; transition: transform .2s ease; }
.dropdown-toggle:hover{ color: var(--purple-600); background: var(--purple-50); }

.dropdown{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, auto));
  gap: 6px 22px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 600;
}
/* unsichtbare Brücke, damit das Menü beim Runterfahren mit der Maus offen bleibt */
.dropdown::before{
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -14px;
  height: 14px;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 4px);
}
.has-dropdown:hover .dropdown-toggle svg,
.has-dropdown.is-open .dropdown-toggle svg{ transform: rotate(180deg); }

.dropdown-group{ display: flex; flex-direction: column; }
.dropdown-title{
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-600);
  padding: 0 10px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.main-nav .dropdown a{
  display: block;
  padding: 8px 10px;
  font-size: .93rem;
  white-space: nowrap;
}

/* ---------- Hero (Fauser-Stil: Flächen-Hero mit schräger weißer Karte) ---------- */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(58,0,48,.94) 0%, rgba(103,0,83,.82) 38%, rgba(103,0,83,.35) 70%, rgba(166,26,123,.15) 100%),
    url("../img/leistungen/altbausanierung.jpg") center 35% / cover no-repeat,
    linear-gradient(120deg, #3a0030 0%, var(--purple-700) 48%, var(--purple-500) 100%);
  padding: 120px 0 90px;
}
.hero .watermark{
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  opacity: .1;
  color: #fff;
  pointer-events: none;
}
.hero .watermark svg{ width: 100%; height: 100%; }
.hero .container{
  position: relative;
  z-index: 1;
}
.hero-card{
  position: relative;
  background: #fff;
  padding: 48px 52px;
  max-width: 560px;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
  box-shadow: var(--shadow-hover);
}
.hero-card .eyebrow{ margin-bottom: 14px; }
.hero-card h1{
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 4px;
}
.hero-card .lead{
  font-style: italic;
  font-size: 1.2rem;
  color: var(--body-text);
  margin-bottom: 1.1em;
}
.hero-card p.sub-lead{
  font-style: normal;
  font-size: .98rem;
  margin-bottom: 1.6em;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-badges{
  margin-top: 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-badges span{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 2px;
}

/* ---------- Leistungen: Kernleistungen-Kacheln (Startseite) ---------- */
.core-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 54px 32px;
  margin-bottom: 20px;
}
.core-card{ position: relative; display: block; color: inherit; }
.core-card .photo{
  position: relative;
  aspect-ratio: 5 / 4;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  background: linear-gradient(155deg, var(--purple-500), var(--purple-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.core-card:nth-child(2) .photo{ background: linear-gradient(155deg, #7a2460, var(--ink)); }
.core-card:nth-child(3) .photo{ background: linear-gradient(155deg, var(--purple-700), #3a0030); }
.core-card .photo svg{ width: 30%; height: 30%; color: rgba(255,255,255,.8); }
.core-card .photo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.core-card .photo.has-img::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(43,38,48,.45), rgba(43,38,48,0) 55%);
}
.core-card:hover .photo{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.core-card:hover .link-arrow{ color: var(--purple-700); }
.core-card .tag{
  position: absolute;
  left: 22px;
  bottom: -16px;
  background: var(--purple-600);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  padding: 12px 22px;
  box-shadow: var(--shadow);
}
.core-card .core-text{ margin-top: 30px; }
.core-card .core-text p{ margin-bottom: 14px; }

/* ---------- Diagonale Bild-/Leistungskacheln (Hub- & Unterseiten) ---------- */
.tilt-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 46px 32px;
}
.tilt-card{ position: relative; display: block; color: inherit; }
.tilt-card .photo{
  position: relative;
  aspect-ratio: 4 / 3;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
  background: linear-gradient(155deg, var(--purple-500), var(--purple-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tilt-card:nth-child(2n) .photo{ background: linear-gradient(155deg, #7a2460, var(--ink)); }
.tilt-card:nth-child(3n) .photo{ background: linear-gradient(155deg, var(--purple-700), #3a0030); }
.tilt-card .photo svg{ width: 26%; height: 26%; color: rgba(255,255,255,.8); }
.tilt-card .photo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tilt-card:hover .photo{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tilt-card:hover .link-arrow{ color: var(--purple-700); }
.tilt-card .cap{ margin-top: 20px; }
.tilt-card h3{
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.tilt-card .cap-sub{
  font-style: italic;
  color: var(--body-text);
  font-size: .94rem;
  margin-bottom: 10px;
}

/* ---------- Detailseite: Text + Bild ---------- */
.detail-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: start;
}
.detail-media .media-frame{ position: relative; display: block; }
.detail-media .frame{
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--purple-500);
}
.detail-media img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.detail-media figcaption{
  margin-top: 14px;
  font-size: .8rem;
  color: var(--body-text);
  opacity: .8;
}

/* ---------- Feature-/Leistungsliste (Unterseiten) ---------- */
.feature-list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  font-size: .98rem;
}
.feature-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 12px;
  height: 2px;
  background: var(--purple-500);
}

/* ---------- Über uns ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}
.about-values{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 0;
}
.about-values li{
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-values li::before{
  content: "";
  width: 12px;
  height: 2px;
  flex: none;
  background: var(--purple-500);
}

.info-card{
  background: var(--ink);
  background: linear-gradient(155deg, var(--purple-700), var(--ink) 68%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.info-card .info-card-logo{
  background: #fff;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.info-card .info-card-logo img{ height: 38px; }
.info-card h3{ color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.info-card .tagline{
  color: var(--purple-100);
  font-size: .88rem;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.info-card ul{ display: grid; gap: 14px; }
.info-card li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .94rem;
  color: #f1e9ef;
}
.info-card li svg{
  width: 19px; height: 19px;
  flex: none;
  margin-top: 2px;
  color: var(--purple-100);
}
.info-card a{ color: #fff; }
.info-card a:hover{ color: var(--purple-100); }

/* ---------- Kontakt ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.contact-list{ display: grid; gap: 18px; }
.contact-list li{ display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci-icon{
  width: 42px; height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--purple-50);
  color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ci-icon svg{ width: 20px; height: 20px; }
.contact-list strong{ display: block; color: var(--ink); font-size: .85rem; letter-spacing: .02em; }
.contact-list span, .contact-list a{ font-size: .98rem; }

.map-wrap{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 260px;
}
.map-wrap iframe{ width: 100%; height: 100%; border: 0; display: block; }

.form-card{
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-card h3{ font-size: 1.1rem; }
.form-row{ margin-bottom: 16px; }
.form-row label{
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(166,26,123,.12);
}
.form-hint{
  font-size: .82rem;
  color: var(--body-text);
  margin-top: 10px;
}

/* ---------- Footer (Fauser-Stil: schmales Farbband, Schrägkante oben) ---------- */
.site-footer{
  position: relative;
  background: linear-gradient(120deg, var(--purple-700), var(--purple-500));
  color: #f3e6ef;
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
  margin-top: 30px;
  padding: 72px 0 34px;
  text-align: center;
}
.site-footer .logo-badge{
  display: inline-block;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.site-footer .logo-badge img{ height: 42px; }
.site-footer .footer-name{
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-line{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: .96rem;
}
.footer-line a{ color: #fff; font-weight: 600; }
.footer-line a:hover{ color: var(--purple-100); }
.footer-line .dot{ opacity: .5; }

.footer-bottom{
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .85rem;
  color: #e9d5e3;
}
.footer-bottom ul{
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}
.footer-bottom a{ color: #e9d5e3; }
.footer-bottom a:hover{ color: #fff; }

/* ---------- Seitenbanner (Leistungen-Hub & Unterseiten) ---------- */
.page-banner{
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(100deg, var(--purple-700) 0%, var(--purple-700) 46%, var(--purple-500) 100%);
  padding: 120px 0 40px;
}
.page-banner .watermark{
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  opacity: .12;
  color: #fff;
  pointer-events: none;
}
.page-banner .watermark svg{ width: 100%; height: 100%; }
.page-banner .container{ position: relative; z-index: 1; }
.page-banner .breadcrumb{ color: rgba(255,255,255,.75); margin-bottom: 14px; }
.page-banner .breadcrumb a{ color: #fff; }
.page-banner .breadcrumb .sep{ color: rgba(255,255,255,.5); }
.page-banner h1{
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 6px;
}
.page-banner .fh-sub{
  font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Kategorie-Block (Leistungen-Hub) ---------- */
.cat-block{ margin-bottom: 76px; }
.cat-block:last-child{ margin-bottom: 0; }

/* ---------- Querverweise am Ende einer Leistungs-Unterseite ---------- */
.related-list{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.related-list a{
  display: block;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.related-list a:hover{ border-color: var(--purple-500); color: var(--purple-600); }

/* ---------- Legal stub pages ---------- */
.legal-page{ padding: 64px 0 90px; }
.legal-page h1{ margin-bottom: .3em; }
.legal-page h2{ font-size: 1.15rem; margin-top: 1.8em; }
.legal-note{
  background: #fff6e5;
  border: 1px solid #f0d99b;
  color: #6b5417;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: .92rem;
  margin: 18px 0 34px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .about-grid,
  .contact-grid,
  .detail-grid{ grid-template-columns: 1fr; }
  .cta-band .container{ grid-template-columns: 1fr; text-align: center; }
  .cta-band-actions{ justify-content: center; }
}

@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 86px);
    height: calc(100dvh - 86px);
    background: #fff;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    padding: 20px 24px;
    overflow-y: auto;
  }
  .main-nav.is-open{ transform: translateY(0); opacity: 1; }
  .main-nav ul{
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a{ padding: 14px 16px; font-size: 1.02rem; }
  .main-nav .btn{ margin: 10px 0 0; text-align: center; justify-content: center; }

  /* Dropdown mobil: aufklappbar per Pfeil-Button */
  .main-nav .has-dropdown{ flex-wrap: wrap; }
  .main-nav .has-dropdown > a{ flex: 1; padding-right: 16px; }
  .dropdown-toggle{ width: 48px; height: 48px; }
  .dropdown-toggle svg{ width: 20px; height: 20px; }
  .has-dropdown:hover .dropdown-toggle svg{ transform: none; }
  .has-dropdown.is-open .dropdown-toggle svg{ transform: rotate(180deg); }
  .dropdown,
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown{
    position: static;
    flex-basis: 100%;
    display: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--purple-100);
    border-radius: 0;
    margin: 2px 0 8px 16px;
    padding: 4px 0 4px 10px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .has-dropdown.is-open > .dropdown{ display: grid; transform: none; }
  .dropdown::before{ display: none; }
  .main-nav .dropdown a{ padding: 10px 12px; font-size: .98rem; }
  .dropdown-title{ border-bottom: 0; padding-bottom: 2px; }

  .section{ padding: 60px 0; }
  .hero{ min-height: 0; padding: 100px 0 60px; }
  .hero-card{ padding: 34px 28px; clip-path: none; max-width: 100%; }
  .page-banner{ padding: 100px 0 30px; min-height: 220px; }
  .footer-line{ flex-direction: column; gap: 10px; }
  .footer-line .dot{ display: none; }
}

@media (max-width: 560px){
  .about-values{ grid-template-columns: 1fr; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; }
  .core-card .tag{ left: 14px; bottom: -16px; padding: 11px 18px; font-size: .96rem; }
}

/* ---------- Mitgliedschaften (Über uns) ---------- */
.member-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.member-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.member-card img{
  height: 90px;
  width: 100%;
  object-fit: contain;
}
.member-card span{
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.member-grid > li{ display: flex; }
a.member-card{
  width: 100%;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.member-card:hover,
a.member-card:focus-visible{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--purple-100);
}
.member-card .member-link{
  font-size: .85rem;
  font-weight: 600;
  color: var(--purple-600);
}

/* ---------- Topbar mit Telefon & E-Mail (über der Navigation) ---------- */
.topbar{
  background: var(--purple-50);
  border-bottom: 1px solid var(--purple-100);
  font-size: .84rem;
  color: var(--body-text);
}
.topbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
}
.topbar-claim{ letter-spacing: .02em; }
.topbar-contact{
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-contact a{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}
.topbar-contact a:hover{ color: var(--purple-600); }
.topbar-contact svg{ width: 15px; height: 15px; color: var(--purple-600); flex-shrink: 0; }

@media (max-width: 760px){
  .topbar-claim{ display: none; }
  .topbar .container{ justify-content: center; }
  .topbar-contact{ gap: 16px; font-size: .8rem; }
}
@media (max-width: 380px){
  .topbar-contact{ gap: 12px; font-size: .76rem; }
}

/* ---------- Warum Astfalk (Startseite) ---------- */
.why-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-stats{
  list-style: none;
  margin: 30px 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.why-stats li{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 14px;
  text-align: center;
  border-top: 3px solid var(--purple-500);
}
.why-stats strong{
  display: block;
  font-family: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--purple-600);
}
.why-stats li > span{
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}
.why-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}
.why-list li{ display: flex; gap: 14px; align-items: flex-start; }
.why-icon{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-100);
  color: var(--purple-700);
}
.why-icon svg{ width: 22px; height: 22px; }
.why-list h3{ font-size: 1rem; margin: 2px 0 4px; }
.why-list p{ font-size: .9rem; margin: 0; }

.why-media{
  position: relative;
  margin: 0 14px 14px 0;
}
.why-media .frame{
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--purple-500);
  border-radius: 4px;
}
.why-media img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 433 / 340; /* eigenes Projektfoto im Originalformat */
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-hover);
}
.why-badge{
  position: absolute;
  z-index: 2;
  left: -28px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.why-badge strong{
  font-family: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--purple-600);
}
.why-badge span{ font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

@media (max-width: 980px){
  .why-grid{ grid-template-columns: 1fr; gap: 56px; }
  .why-media{ max-width: 520px; margin: 0 auto; width: calc(100% - 18px); }
  .why-badge{ left: 16px; bottom: -22px; }
}
@media (max-width: 560px){
  .why-stats{ gap: 10px; }
  .why-stats strong{ font-size: 1.6rem; }
  .why-stats li > span{ font-size: .76rem; }
  .why-list{ grid-template-columns: 1fr; }
}

/* ---------- Typo-Feinschliff & Symbole ersetzt (weniger „Icon-Optik“) ---------- */
h1, h2, h3, h4{ letter-spacing: .005em; }
body{ font-size: 1.04rem; }
/* dekorative Strichzeichnungen im Hintergrund ausblenden */
.hero .watermark,
.page-banner .watermark{ display: none; }

.tb-label{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-600);
}
.ic-label{
  flex: none;
  width: 70px;
  padding-top: 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-100);
}
.contact-list li{ display: block; padding-left: 16px; border-left: 3px solid var(--purple-500); }

.why-list li{ gap: 16px; }
.why-num{
  flex-shrink: 0;
  min-width: 42px;
  padding-top: 2px;
  font-family: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--purple-500);
  border-top: 2px solid var(--purple-500);
  padding-top: 8px;
}

/* Hero-Bild: auf schmalen Bildschirmen stärker abdunkeln, damit Karte & Badges lesbar bleiben */
@media (max-width: 760px){
  .hero{
    background:
      linear-gradient(180deg, rgba(58,0,48,.75) 0%, rgba(103,0,83,.85) 100%),
      url("../img/leistungen/altbausanierung.jpg") center 30% / cover no-repeat,
      var(--purple-700);
  }
}

/* ---------- „Nach oben“-Button ---------- */
.to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 450;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 8px 22px rgba(103, 0, 83, .3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover{ background: var(--purple-700); }
.to-top:focus-visible{ outline: 3px solid var(--purple-100); outline-offset: 3px; }
.to-top svg{ width: 22px; height: 22px; }
@media (max-width: 560px){
  .to-top{ right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
