/* =========================================================
   Dachfenster Einbauservice – DM Sans / steel-blue accent
   ========================================================= */

:root {
  --text: #17151B;
  --accent: #1E5AA8;
  --bg-light: #F5F5F7;
  --white: #FFFFFF;
  --muted: #909090;
  --muted-light: #B8B8B8;
  --wood: #C5853A;
  --footer-bg: #17151B;
  --black: #000000;
  --max: 1200px;
  --radius-btn: 10px;
  --font: "DM Sans", sans-serif;
  --header-h: 78px;
  --topbar-h: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

ul {
  list-style: none;
}

.page-wrapper {
  overflow-x: hidden;
}

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

/* ----- Buttons ----- */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.theme-btn:hover,
.theme-btn:focus {
  background: var(--black);
  color: var(--white) !important;
}

.theme-btn--light {
  background: var(--white);
  color: var(--text) !important;
}

.theme-btn--light:hover,
.theme-btn--light:focus {
  background: var(--black);
  color: var(--white) !important;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}

.link-cta:hover {
  color: var(--black);
}

.link-cta i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.link-cta:hover i {
  transform: translateX(4px);
}

/* ----- Top bar ----- */
.top-bar {
  background: var(--bg-light);
  border-bottom: 1px solid rgba(23, 21, 27, 0.06);
  font-size: 14px;
  color: var(--text);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.top-bar-address {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
}

.top-bar-address i {
  color: var(--accent);
  font-size: 14px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.top-bar-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text);
  font-size: 15px;
}

.top-bar-icons a:hover {
  color: var(--accent);
}

.top-bar .theme-btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* ----- Sticky header ----- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(23, 21, 27, 0.08);
  transition: box-shadow 0.3s ease;
}

.main-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(23, 21, 27, 0.08);
}

.header-upper .inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-box .logo {
  width: 44px;
  height: 44px;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-outer {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.main-menu .navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-menu .navigation a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.main-menu .navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-menu .navigation a:hover::after {
  width: 100%;
}

.main-menu .navigation a:hover {
  color: var(--accent);
}

.mobile-nav-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggler span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggler.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggler.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggler.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Page title ----- */
.page-title {
  padding: 80px 0 0;
  text-align: center;
}

.page-title h1 {
  font-family: var(--font);
  font-size: 45px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--text);
  max-width: 980px;
  margin: 0 auto;
}

/* ----- Intro split ----- */
.intro-section {
  padding: 100px 0 60px;
}

.intro-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

.intro-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro-content h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: var(--accent);
}

.intro-accent {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.4px;
}

.intro-content p {
  margin-bottom: 22px;
  color: var(--text);
}

.intro-content h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 10px 0 14px;
}

.benefit-list {
  margin-bottom: 28px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  font-size: 16px;
  color: var(--text);
}

.benefit-list .dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ----- Icon boxes ----- */
.icon-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  position: relative;
}

.icon-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--white);
  border-radius: 3px;
  border-top-width: 3px;
}

.icon-box {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.icon-box-content h3,
.icon-box-content .icon-box-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.icon-box-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.icon-box-content a {
  color: var(--text);
}

.icon-box-content a:hover {
  color: var(--accent);
}

.value-section {
  padding: 40px 0 80px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* ----- Fenstertypen split ----- */
.types-split-section {
  padding: 0 0 40px;
}

.types-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.types-split-media {
  background: center / cover no-repeat url("../img/medium/fenstertypen.jpg");
  min-height: 320px;
}

.types-split-content {
  padding: 50px 0 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.types-split-content h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.types-split-content p {
  margin-bottom: 22px;
}

/* ----- Types grid ----- */
.types-grid-section {
  padding: 20px 0 60px;
}

.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 50px;
}

.partner-note {
  margin-top: 50px;
  padding: 28px 0 0;
}

.partner-note h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.partner-note p {
  color: var(--muted);
  max-width: 640px;
}

/* ----- Beratung / Austausch ----- */
.advice-replace-section {
  padding: 40px 0 60px;
}

.advice-replace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.advice-replace-grid h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 16px;
}

.advice-replace-grid .eyebrow {
  margin-bottom: 8px;
}

.advice-replace-grid p {
  margin-bottom: 18px;
}

.advice-replace-grid .icon-box {
  margin-top: 24px;
}

/* ----- Rain section ----- */
.rain-section {
  padding: 40px 0 80px;
}

.rain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.rain-grid h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 16px;
}

.rain-boxes {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ----- CTA band (#kontakt) ----- */
.cta-band {
  position: relative;
  padding: 120px 0;
  background: center / cover no-repeat url("../img/medium/cta-bg.jpg");
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.7;
  z-index: 0;
}

.cta-band .auto-container {
  position: relative;
  z-index: 1;
}

.cta-band .cta-eyebrow {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--white);
}

.cta-band h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 0 auto 20px;
  max-width: 800px;
  color: var(--white);
}

.cta-band p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--white);
  font-size: 16px;
}

.cta-band .theme-btn {
  background: var(--white);
  color: var(--text) !important;
}

.cta-band .theme-btn:hover {
  background: var(--black);
  color: var(--white) !important;
}

/* ----- Footer ----- */
.main-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col p {
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 18px;
}

.footer-col .list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted-light);
}

.footer-col .list a {
  color: var(--muted-light);
}

.footer-col .list a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ----- Impressum ----- */
.impressum-section {
  background: var(--bg-light);
  padding: 80px 0 100px;
}

.impressum-card {
  background: var(--white);
  padding: 48px 52px;
  max-width: 860px;
  margin: 0 auto;
}

.impressum-card .eyebrow {
  margin-bottom: 12px;
}

.impressum-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.impressum-card h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 10px;
  color: var(--text);
}

.impressum-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 26px 0 8px;
}

.impressum-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 6px;
}

.impressum-card p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--muted);
}

/* ----- Mobile call + scroll top ----- */
.mobile-call-button {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--accent);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(196, 8, 7, 0.35);
  align-items: center;
  gap: 8px;
}

.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.25s ease;
  font-size: 16px;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--black);
}

/* ----- Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .page-title {
    padding: 40px 20px 0;
  }

  .page-title h1 {
    font-size: 38px;
  }

  .intro-section {
    padding: 70px 0 50px;
  }

  .intro-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .value-grid,
  .types-split,
  .types-grid,
  .advice-replace-grid,
  .rain-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .types-split-media {
    min-height: 280px;
  }

  .types-split-content {
    padding: 40px 0 0;
  }

  .cta-band {
    padding: 100px 20px;
  }

  .cta-band h2 {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .top-bar-address {
    display: none;
  }

  .mobile-nav-toggler {
    display: flex;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(23, 21, 27, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .main-menu.show {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
  }

  .main-menu .navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
  }

  .main-menu .navigation a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(23, 21, 27, 0.06);
  }

  .main-menu .navigation a::after {
    display: none;
  }

  .header-upper {
    position: relative;
  }
}

@media (max-width: 767px) {
  .page-title h1 {
    font-size: 29px;
  }

  .intro-content h2 {
    font-size: 26px;
  }

  .intro-accent {
    font-size: 22px;
  }

  .top-bar .theme-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .cta-band {
    padding: 70px 20px;
  }

  .cta-band h2 {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .impressum-card {
    padding: 28px 20px;
  }

  .mobile-call-button {
    display: inline-flex;
  }

  .scroll-to-top {
    bottom: 80px;
    right: 16px;
  }

  .icon-box {
    gap: 18px;
  }
}
