/* ==========================================================================
   Astrein – Trockenbau & Bodenverlegung · Onepager
   Farben laut design.md / PM-Entscheidungen
   ========================================================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --color-terracotta: #B4552D;
  --color-bernstein: #E8A33D;
  --color-anthrazit: #2B2725;
  --color-text-title: #332C27;
  --color-text-body: #4A423C;
  --color-warmweiss: #FAF6F0;
  --color-sand: #F0E7DA;
  --color-kartenweiss: #FFFFFF;
  --color-border: #EADFCF;

  --font-headline: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(43, 39, 37, 0.07);
  --header-height: 64px;
}

/* ---- @font-face (lokal, kein CDN) ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-v38-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-v38-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-v20-latin-700.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-warmweiss);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
}

strong { color: var(--color-text-title); }

/* ---- Fokus-Styles (sichtbar) ---- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-bernstein);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.container--narrow {
  max-width: 760px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: var(--color-terracotta);
  color: var(--color-warmweiss);
}
.btn--primary:hover { background-color: #9c4523; }

.btn--secondary {
  background-color: var(--color-anthrazit);
  color: var(--color-warmweiss);
}
.btn--secondary:hover { background-color: #453d38; }

.btn--outline {
  background-color: transparent;
  color: var(--color-warmweiss);
  border: 2px solid var(--color-warmweiss);
}
.btn--outline:hover { background-color: rgba(250, 246, 240, 0.15); }

.btn--lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Top-Banner (volle Breite, allererstes Element)
   ========================================================================== */
.top-banner {
  background-color: var(--color-anthrazit);
  color: var(--color-warmweiss);
}

.top-banner__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}

.top-banner__text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-banner__tel {
  color: var(--color-bernstein);
  font-weight: 500;
}
.top-banner__tel:hover { color: var(--color-warmweiss); }

.top-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-warmweiss);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(250, 246, 240, 0.35);
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.top-banner__cta:hover { background-color: rgba(250, 246, 240, 0.12); }
.top-banner__cta .icon { color: var(--color-bernstein); }

@media (max-width: 640px) {
  .top-banner__text span,
  .top-banner__text {
    font-size: 0.8125rem;
  }
  /* Satz auf Mobil kompakt: Motto-Teil ausblenden */
  .top-banner__text {
    display: none;
  }
  .top-banner__inner { justify-content: center; }
}

/* ==========================================================================
   Header / Navigation (sticky)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-warmweiss);
  border-bottom: 1px solid var(--color-sand);
  transition: box-shadow 0.25s ease;
}

/* dezenter Schatten nach Scroll (CSS only via scroll-driven Fallback: immer leicht) */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-shadow linear both;
    animation-timeline: scroll();
    animation-range: 0 80px;
  }
  @keyframes header-shadow {
    to { box-shadow: 0 2px 12px rgba(43, 39, 37, 0.10); }
  }
}

.site-header__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-text-title);
}
.brand__dot { color: var(--color-terracotta); }

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-body);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--color-terracotta); }

.nav__cta { white-space: nowrap; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-title);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background-color: var(--color-warmweiss);
    border-bottom: 1px solid var(--color-sand);
    box-shadow: 0 10px 24px rgba(43, 39, 37, 0.12);
    padding: 0.75rem clamp(1rem, 3vw, 2rem) 1.25rem;
  }

  .nav.is-open { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.65rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-sand);
  }

  .nav__cta { margin-top: 0.9rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: relative;
  min-height: clamp(420px, 52vw, 640px);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(43, 39, 37, 0.82) 0%, rgba(43, 39, 37, 0.55) 45%, rgba(43, 39, 37, 0.12) 100%);
}

.hero__content {
  max-width: 1160px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.hero__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.875rem, 4.5vw, 2.5rem); /* max 40px */
  line-height: 1.15;
  color: var(--color-warmweiss);
  max-width: 19ch;
}

.hero__sub {
  margin-top: 1rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-warmweiss);
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__trust {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-warmweiss);
  opacity: 0.92;
}

@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem); /* max 36px */
  line-height: 1.2;
  color: var(--color-text-title);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section__title--left { text-align: left; }

.section--leistungen { background-color: var(--color-warmweiss); }
.section--vorteile { background-color: var(--color-sand); }
.section--ablauf { background-color: var(--color-warmweiss); }
.section--ueber-uns { background-color: var(--color-kartenweiss); }
.section--faq { background-color: var(--color-sand); }
.section--kontakt { background-color: var(--color-warmweiss); }
.section--legal { background-color: var(--color-warmweiss); padding-top: 2.5rem; }

/* ==========================================================================
   Leistungen – 6 Karten
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-kartenweiss);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(43, 39, 37, 0.12);
}

.service-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text-title);
}

.service-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   Vorteile – 2-spaltige Liste mit inline SVG-Icons
   ========================================================================== */
.vorteile-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  max-width: 980px;
  margin-inline: auto;
}

.vorteil {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vorteil__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(232, 163, 61, 0.15);
  color: var(--color-terracotta);
}

.vorteil__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--color-text-title);
  margin-bottom: 0.25rem;
}

.vorteil__text {
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .vorteile-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ablauf – Timeline 4 Schritte
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}

/* Verbindungslinie Desktop */
.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-color: var(--color-border);
}

.timeline__step {
  position: relative;
  text-align: center;
  padding-inline: 0.5rem;
}

.timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bernstein);
  color: var(--color-anthrazit);
  font-weight: 700;
  font-size: 1.0625rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
}

.timeline__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text-title);
  margin-bottom: 0.35rem;
}

.timeline__text {
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 560px;
  }
  /* vertikale Linie */
  .timeline::before {
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline__step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 1.1rem;
    text-align: left;
    padding-inline: 0;
  }
  .timeline__num { grid-row: 1; }
  .timeline__title { grid-column: 2; }
  .timeline__text { grid-column: 2; }
}

/* ==========================================================================
   Über uns
   ========================================================================== */
.ueber-uns-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.ueber-uns__text p + p { margin-top: 1rem; }

.ueber-uns__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .ueber-uns-grid { grid-template-columns: 1fr; }
  .ueber-uns__img { order: -1; max-width: 520px; }
}

/* ==========================================================================
   FAQ – details/summary
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background-color: var(--color-kartenweiss);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-title);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__question::-webkit-details-marker { display: none; }

/* Plus/Minus-Symbol in Terracotta */
.faq__question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-terracotta);
  line-height: 1;
  flex-shrink: 0;
}
.faq__item[open] .faq__question::after { content: "−"; }

.faq__answer {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ==========================================================================
   Kontakt – Infos + CTA-Buttons
   ========================================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.kontakt__text p { max-width: 60ch; }

.kontakt__info {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kontakt__info a {
  font-weight: 600;
}
.kontakt__info a:hover { text-decoration: underline; }

.kontakt__actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.kontakt__btn { width: 100%; }

@media (max-width: 820px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-anthrazit);
  color: var(--color-warmweiss);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 2.25rem;
}

.site-footer__claim {
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-warmweiss);
}

.site-footer__motto {
  margin-top: 0.6rem;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-bernstein);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__legal a {
  color: var(--color-warmweiss);
  font-size: 0.9375rem;
}
.site-footer__legal a:hover { color: var(--color-bernstein); }

.site-footer__bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  padding-block: 1rem;
}

.site-footer__bottom p {
  font-size: 0.8125rem;
  color: var(--color-warmweiss);
  opacity: 0.85;
}

/* ==========================================================================
   Rechtsseiten (Impressum / Datenschutz)
   ========================================================================== */
.page-legal main { min-height: 60vh; }

.legal-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); /* max 40px */
  line-height: 1.2;
  color: var(--color-text-title);
  margin-bottom: 1rem;
}

.legal-hint {
  font-size: 0.875rem;
  line-height: 1.6;
  background-color: var(--color-sand);
  border-left: 3px solid var(--color-bernstein);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.legal-stand {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

.section--legal h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--color-text-title);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.section--legal h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--color-text-title);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.section--legal p { margin-bottom: 0.75rem; }

.section--legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}

.section--legal li { margin-bottom: 0.35rem; }

.back-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive Feinheiten 360–1920px
   ========================================================================== */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .btn { font-size: 0.9375rem; }
}

@media (min-width: 1600px) {
  .container,
  .site-header__inner,
  .top-banner__inner { max-width: 1360px; }
  .hero__content { max-width: 1360px; }
}

/* ==========================================================================
   prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-header[style] { box-shadow: none; }
}