/* ============================================================
   Herrmann GaLaBau – herrmann-galabau.de
   Statischer Nachbau der Webflow-Seite (Stand Juli 2026)
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/raleway-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/raleway-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/raleway-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/raleway-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/raleway-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/raleway-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/titillium-web-700.woff2') format('woff2');
}

/* ---------- Farbpalette ---------- */
:root {
  --blue: #134f8a;            /* Überschriften, Buttons, dunkle Flächen */
  --text: #244030cc;          /* Fließtext (dunkelgrün, 80 %) */
  --green: #729b58;           /* Rahmen, Akzente */
  --accent: #bbd142;          /* Hover, Highlights */
  --accent-bright: #e2ff41;   /* Eyebrow auf dunklem Grund */
  --bg: #f8faf1;              /* Seitenhintergrund */
  --white: #fff;
  --card-shadow: 4px 4px 10px 3px #24403014;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--blue);
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 170%;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
}
h1 { margin-bottom: 25px; font-size: 50px; line-height: 100%; }
h2 { margin-bottom: 25px; font-size: 32px; line-height: 100%; }
h3 { margin-bottom: 23px; font-size: 24px; line-height: 105%; }
h4 { margin-bottom: 21px; font-size: 30px; line-height: 110%; }

p { margin-top: 0; color: var(--text); margin-bottom: 25px; }

a { color: var(--green); font-weight: 600; text-decoration: underline; }

ul { margin-top: 0; margin-bottom: 28px; padding-left: 40px; }
li { color: var(--text); }

img { max-width: 100%; display: inline-block; vertical-align: middle; border: 0; }

label { display: block; text-align: left; margin-bottom: 5px; font-weight: 700; }

/* Überschriften-Größen (wie Webflow .heading.hX) */
.heading-h1 { color: var(--blue); font-size: 58px; }
.heading-h2 { font-size: 42px; }
.heading-h3 { font-size: 36px; }
.heading-h5 { font-size: 24px; }
.centered { text-align: center; }
.white { color: var(--white); }
.text-accent { color: var(--accent); }

/* ---------- Layout-Grundlagen ---------- */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 50px 50px;
  position: relative;
}
.section.cta { padding-top: 50px; padding-bottom: 100px; }
.section.no-padding-top { padding-top: 0; }
.section.contact { padding-top: 200px; }
.section.kontakt { padding-bottom: 100px; }
/* Ersatz für die leere (ausgeblendete) Prozess-Sektion des Originals –
   erhält den vertikalen Abstand zwischen Projekten und CTA */
.section.spacer-only { padding-bottom: 50px; }

.content {
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.spacer-24 { height: 24px; }
.spacer-32 { height: 32px; }

/* Deko-Formen im Hintergrund */
.shape {
  z-index: 0;
  opacity: .15;
  width: 40vw;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}
.shape.pos-01 { width: 35vw; }
.shape.pos-02 { width: 35vw; top: auto; left: auto; right: 0; bottom: -50%; }
.shape.pos-03 { width: 35vw; top: auto; left: auto; right: 0; bottom: 0; }
.shape.pos-05 { width: 30vw; }
.shape.pos-06 { width: 40vw; top: auto; left: auto; right: 0; bottom: 0; }
.shape.pos-07 { width: 30vw; left: auto; right: 0; }

/* ---------- Navigation ---------- */
.navbar {
  z-index: 1000;
  background-color: var(--white);
  border-radius: 15px;
  max-width: 1214px;
  margin-left: auto;
  margin-right: auto;
  position: fixed;
  top: 28px;
  left: 28px;
  right: 28px;
  box-shadow: 5px 7px 14px 3px #10221633;
}
.nav-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav { display: flex; justify-content: center; align-items: center; }
.brand { display: flex; align-items: center; margin: 0 18px; padding: 10px 0; }
.logo { height: 60px; border-radius: 0; }
.nav-menu { display: flex; align-items: center; }
.nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 27px 20px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 130%;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover, .nav-link.current { color: var(--accent); }
.nav-button {
  display: flex;
  align-self: center;
  border: 3px solid var(--blue);
  background-color: var(--blue);
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 13px;
  margin: 0 18px;
  padding: 12px 27px;
  font-size: 15px;
  font-weight: 800;
  line-height: 100%;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.nav-button:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--blue);
  padding: 12px 16px;
}
.menu-button svg { width: 32px; height: 32px; display: block; }

/* ---------- Hero (Startseite) ---------- */
.section-hero {
  background-image: linear-gradient(#0006, #0006), url('../img/hero.jpg');
  background-position: 0 0, 50%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  position: relative;
}
.block-home-hero {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 70px 50px 0;
  position: relative;
}
.hero { width: 100%; max-width: 1200px; }
.text-subtitle {
  max-width: 730px;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 300;
}
.text-subtitle.green { color: var(--green); font-weight: 400; }
.text-subtitle.green.centered { max-width: none; color: var(--accent-bright); text-align: center; }
.heading-hero {
  max-width: 800px;
  color: var(--white);
  margin-bottom: 50px;
  font-size: 70px;
  line-height: 100%;
}

/* ---------- Buttons ---------- */
.primary-button {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--accent);
  background-color: transparent;
  color: var(--white);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 10px;
  width: 200px;
  padding: 15px 30px;
  font-weight: 800;
  line-height: 100%;
  text-decoration: none;
  transition: background-color .2s, color .2s;
  position: relative;
}
.primary-button:hover { background-color: var(--accent); color: var(--white); }
.tertiary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--blue);
  background-color: var(--blue);
  width: 195px;
  color: var(--white);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 800;
  line-height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.tertiary-button:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
}
.button-block { display: flex; justify-content: center; align-items: center; }

/* ---------- Angebot / Service-Karten ---------- */
.heading-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}
.paragraph { max-width: 470px; margin-bottom: 36px; }
.paragraph.no-margin { margin-bottom: 0; }
.paragraph.white { color: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  padding-top: 50px;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  border: 1px solid var(--green);
  background-color: var(--white);
  color: var(--blue);
  border-radius: 20px;
  padding: 15% 10%;
  text-decoration: none;
  font-weight: 400;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card .icon { width: 55px; height: 55px; }
.service-card h3 { font-size: 24px; }
.service-card .paragraph { margin-bottom: 36px; }
.read-text-block { display: flex; align-items: center; }
.read-text { padding-right: 5px; font-weight: 600; }
.service-arrow { width: 15px; height: 15px; transition: transform .3s ease; }
.service-card:hover .service-arrow { transform: translateX(5px); }

/* ---------- Über uns / Kontakt oben (2-Spalten) ---------- */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 48px;
  align-items: center;
  width: 100%;
  position: relative;
}
.text-box { max-width: 800px; }
.text-box.about {
  border: 1px solid var(--green);
  background-color: var(--white);
  border-radius: 20px;
  padding: 50px;
}
.text-box.legal {
  border: 1px solid var(--green);
  background-color: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: none;
  margin-bottom: 50px;
  padding: 30px;
}
.block-image {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.block-image .image,
.project-image .image {
  z-index: 5;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ---------- Projekte ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr .75fr;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  position: relative;
}
.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  margin-top: 20px;
}
.project-image {
  border-radius: 20px;
  min-height: 370px;
  position: relative;
  overflow: hidden;
}
.project-image.top { top: -20px; }
.projects-sticky-card {
  z-index: 30;
  border: 1px solid var(--green);
  background-color: var(--white);
  border-radius: 20px;
  margin-left: 5%;
  padding: 50px;
  position: sticky;
  top: 140px;
  align-self: start;
}
.project-content { display: flex; flex-direction: column; position: relative; z-index: 2; }

/* ---------- CTA ---------- */
.cta-block {
  display: flex;
  justify-content: center;
  background-color: var(--blue);
  border-radius: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.cta-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10%;
  position: relative;
  z-index: 1;
}
.heading-cta { color: var(--white); text-align: center; }

/* ---------- Footer ---------- */
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1.5px solid var(--green);
  background-color: var(--white);
  padding-left: 50px;
  padding-right: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 50px;
  grid-row-gap: 16px;   /* Webflow-Basis .w-layout-grid */
  width: 100%;
  padding-top: 70px;
  padding-bottom: 70px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.logo-footer { height: 60px; margin-top: 14px; border-radius: 0; }
.footer-title {
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 18px;
  padding-bottom: 11px;
  font-weight: 800;
}
.legal-links { display: flex; flex-direction: column; }
.footer-link {
  color: #244030b3;
  font-size: 14px;
  font-weight: 500;
  line-height: 200%;
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }
.paragraph .footer-link { font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
.paragraph .footer-link:hover { color: var(--accent); }

/* ---------- Popup („in Vorbereitung") ---------- */
.popup-wrapper {
  z-index: 900;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #134f8acc;
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
}
.popup-wrapper.open { display: flex; }
.popup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  border-radius: 18px;
  width: 400px;
  min-height: 300px;
  padding: 40px;
  position: relative;
}
.popup-headline, .text-popup { text-align: center; margin-bottom: 24px; }
.text-popup { color: var(--text); }
.close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: -16px;
  margin-right: -16px;
  background-color: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 20px;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  transition: background-color .2s;
}
.close-wrapper:hover { background-color: var(--accent); }
.close-wrapper svg { width: 100%; height: 100%; display: block; }

/* ---------- Formular (Kontakt) ---------- */
.form-block { display: flex; flex-direction: column; justify-content: center; width: 100%; }
.field-block { display: flex; flex-direction: column; flex: 1; margin-bottom: 8px; }
.text-input {
  border: 1px solid var(--green);
  color: var(--text);
  background-color: var(--white);
  border-radius: 10px;
  width: 100%;
  padding: 24px 16px;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 0 0 10px #00000003;
}
.text-input:focus { border-color: var(--accent); outline: none; }
.text-input::placeholder { color: #2440304d; }
textarea.text-input { min-height: 120px; padding-top: 16px; padding-bottom: 16px; line-height: 1.4em; resize: vertical; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}
.checkbox-label input { margin-top: 6px; accent-color: var(--green); }
.form-success {
  border: 1px solid var(--green);
  color: var(--text);
  background-color: #729b5833;
  border-radius: 10px;
  padding: 32px;
  font-size: 16px;
  line-height: 1.4em;
  display: none;
}
.form-error {
  color: #444;
  background-color: #ecd4d4;
  border-radius: 6px;
  padding: 16px;
  margin-top: 12px;
  display: none;
}
.form-success.show, .form-error.show { display: block; }

/* ---------- Kontakt-Info-Karten ---------- */
.contact-info-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--green);
  background-color: var(--blue);
  border-radius: 20px;
  padding: 40px 10%;
  box-shadow: var(--card-shadow);
}
.contact-info .icon { width: 55px; height: 55px; }
.contact-detail {
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Unterseiten-Hero (Impressum/Datenschutz) ---------- */
.block-hero {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 70px 50px 0;
  position: relative;
}

/* ---------- Scroll-Reveal-Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .reveal-media .image {
    opacity: 0;
    transform: scale(1.3);
    transition: opacity .9s ease, transform 1.1s cubic-bezier(.23, 1, .32, 1);
  }
  .reveal-media.is-visible .image { opacity: 1; transform: scale(1); }
  /* Staffelung für Kartenreihen */
  .stagger > *:nth-child(2) .reveal, .stagger > .reveal:nth-child(2) { transition-delay: .1s; }
  .stagger > *:nth-child(3) .reveal, .stagger > .reveal:nth-child(3) { transition-delay: .2s; }
  .stagger > *:nth-child(4) .reveal, .stagger > .reveal:nth-child(4) { transition-delay: .3s; }
  .reveal-delay-1 { transition-delay: .15s; }
  .reveal-delay-2 { transition-delay: .3s; }
}

/* ============================================================
   Breakpoints (wie Webflow: 991 / 767 / 479)
   ============================================================ */
@media (max-width: 991px) {
  .navbar { border-radius: 15px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--white);
    border-radius: 15px;
    margin-top: 0;
    box-shadow: 6px 7px 13px 2px #24403033;
    overflow: hidden;
  }
  .nav-menu.open { display: flex; }
  .nav-link { background-color: var(--white); }
  .nav-block { align-items: stretch; }
  .menu-button { display: flex; justify-content: center; align-items: center; background-color: var(--white); border-top-right-radius: 15px; border-bottom-right-radius: 15px; padding: 6px 6px 4px; align-self: stretch; }
  .menu-button svg { width: 24.375px; height: 18.281px; padding: 0 17.3125px; margin-bottom: 1.22px; box-sizing: content-box; }
  .nav-button {
    margin: 0;
    border-color: var(--white);
    background-color: var(--white);
    color: var(--blue);
    border-radius: 0 0 12px 12px;
    padding: 27px;
    justify-content: center;
  }
  .nav-button:hover { background-color: var(--white); color: var(--accent); border-color: var(--white); }
  .menu-button { display: block; }

  .block-home-hero { padding-left: 30px; padding-right: 30px; }
  .block-hero { padding: 90px 30px 0; }
  .heading-hero { font-size: 60px; }
  .text-subtitle { font-size: 14px; }

  .section { padding: 70px 30px 0; }
  .section.cta { padding-left: 30px; padding-right: 30px; }
  .section.contact { padding-top: 150px; }
  .section.spacer-only { padding-bottom: 0; }
  .content { overflow: hidden; }

  .heading-h1 { font-size: 54px; }
  .heading-h2 { font-size: 39px; }
  .heading-h3 { font-size: 33px; }
  .heading-h5 { font-size: 22px; }

  .services-grid { grid-template-columns: 1fr 1fr; padding-top: 30px; }
  .block-image { min-height: 370px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-sticky-card { width: 100%; margin-left: 0; position: static; }
  .footer-section { padding-left: 30px; padding-right: 30px; }
  .shape.pos-01, .shape.pos-02, .shape.pos-05, .shape.pos-06 { width: 50vw; }
  .text-box.legal { margin-bottom: 30px; }
  .contact-info-block { grid-template-columns: 1fr 1fr; padding-top: 30px; }
  .contact-detail { font-size: 14px; }
}

@media (max-width: 767px) {
  .heading-hero { font-size: 42px; }
  .section { padding-top: 50px; }
  .section.cta { padding-bottom: 50px; }
  .service-card:hover { transform: none; }
  .heading-block { grid-template-columns: 1fr; grid-row-gap: 0; }
  .projects-sticky-card { padding: 30px; }
  .project-cards { margin-top: 40px; }
  .project-image { min-height: 300px; }
  .service-card .icon, .contact-info .icon, .value-card .icon { width: 40px; height: 40px; }
  .two-column-grid { grid-template-columns: 1fr; grid-column-gap: 30px; grid-row-gap: 30px; }
  .heading-h1 { font-size: 48px; }
  .heading-h2 { font-size: 36px; }
  .heading-h3 { font-size: 30px; }
  .shape.pos-02 { width: 60vw; bottom: 20%; }
  .contact-info-block { grid-template-columns: 1fr; }
  .contact-info:hover { transform: none; }
  .contact-detail { font-size: 12px; }
  .spacer-32 { height: 32px; }
}

@media (max-width: 479px) {
  .navbar { top: 14px; left: 14px; right: 14px; }
  .logo { height: 52px; }
  .brand { margin-left: 12px; }
  .menu-button svg { padding: 0 12.3125px; }
  .logo-footer { height: 60px; margin-bottom: 14px; }
  .section-hero {
    background-image: linear-gradient(#0000, #0000), url('../img/hero.jpg');
    background-position: 0 0, 58%;
    min-height: 100svh;
  }
  .block-home-hero { justify-content: flex-end; align-items: flex-start; }
  .block-hero { padding-left: 0; padding-right: 0; }
  .primary-button { width: auto; }
  .tertiary-button { width: auto; margin-top: 30px; }
  .section { padding-bottom: 0; }
  .section.cta { padding-top: 50px; padding-bottom: 50px; }
  .section.contact { padding-top: 150px; }
  .service-card { box-shadow: none; padding-top: 10%; padding-bottom: 10%; }
  .services-grid { grid-template-columns: 1fr; padding-left: 1px; padding-right: 1px; }
  .block-image { min-height: 250px; }
  .projects-sticky-card { padding: 10%; }
  .project-cards { grid-template-columns: 1fr; }
  .project-image.top { top: 0; }
  .cta-text { padding-top: 20%; padding-bottom: 20%; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 50px; }
  .shape.pos-01 { width: 80vw; }
  .shape.pos-02 { width: 70vw; }
  .shape.pos-05 { width: 100vw; }
  .shape.pos-06 { display: none; }
  .heading-h1 { font-size: 40px; }
  .heading-h2 { font-size: 34px; }
  .heading-h3 { font-size: 28px; }
  .heading-h5 { font-size: 20px; }
  .contact-info { box-shadow: none; padding-top: 10%; padding-bottom: 10%; }
  .popup-wrapper { padding-left: 20px; padding-right: 20px; }
  .popup { width: auto; min-height: 0; padding-top: 40px; padding-bottom: 40px; }
}

/* ============================================================
   Projekt-Templates (/projekte, /projects/*) und 404-Seite
   – Design aus Webflow übernommen, Inhalte folgen später
   ============================================================ */

/* Projektliste: vollflächige Bildkarten */
.project-box {
  border-radius: 20px;
  margin-bottom: 30px;
  padding: 5% 7%;
  position: relative;
}
.project-box-image {
  z-index: 0;
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}
.project-box-image .image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.gradient-overlay {
  z-index: 1;
  background-image: linear-gradient(-260deg, #000c, #0000);
  border-radius: 20px;
  position: absolute;
  inset: 0;
}
.project-box .project-content { max-width: 620px; }
.project-box .paragraph { margin-bottom: 25px; }

/* Kopfbereich der Projekt-Detailseite */
.section-full {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 70vh;
  min-height: 500px;
  position: relative;
}
.content-full {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding-top: 120px;
  position: relative;
}
.project-image-wrapper {
  z-index: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.project-featured-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.project-image-overlay {
  background-image: linear-gradient(#00000080, #00000080);
  position: absolute;
  inset: 0;
}
.project-heading-block {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}
.paragraph.large { max-width: 500px; font-size: 17px; }
.project-details {
  z-index: 1;
  display: flex;
  background-color: #3b6149;
  border-radius: 20px;
  align-items: center;
  width: 88%;
  max-width: 970px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;
  padding-bottom: 30px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -80px;
  overflow: hidden;
  box-shadow: 0 12px 36px #0000004d;
}
.project-details-block {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  margin-right: -1px;
  padding: 15px 4%;
  box-shadow: 1px 0 #ffffff1f;
}
.project-detail-heading {
  color: var(--green);
  text-transform: uppercase;
  padding-bottom: 5px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 18px;
  font-weight: 400;
}
.project-detail-text { color: var(--white); font-size: 16px; }

/* Artikel-/Richtext-Bereich */
.content.blog { max-width: 750px; }
.rich-text-block { text-align: left; margin-bottom: 30px; }
.richtext h2, .richtext h3 { margin-top: 40px; }
.richtext > :first-child { margin-top: 0; }
.richtext figure { margin: 40px 0; }
.richtext figure img { border-radius: 20px; width: 100%; }
.richtext blockquote {
  border-left: 5px solid var(--accent);
  color: var(--accent);
  margin: 0 0 28px;
  padding: 10px 20px;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  line-height: 22px;
}
.richtext li { margin-bottom: 6px; }

/* "Other projects" auf blauem Grund */
.section.bg-color {
  background-color: var(--blue);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.heading-right-block { display: flex; justify-content: flex-start; align-items: center; }
.spacer-48 { height: 48px; }

/* 404 / Utility-Seite */
.utility-page-wrap {
  background-image: url('../img/utility-bg.jpg');
  background-position: 0 0;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
}
.utility-page-content {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--green);
  background-color: var(--white);
  text-align: center;
  border-radius: 20px;
  width: 350px;
  padding: 50px;
}
.secondary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--white);
  width: 195px;
  color: var(--white);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: transparent;
  border-radius: 10px;
  padding: 15px 30px;
  font-weight: 800;
  line-height: 100%;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.secondary-button:hover { border-color: var(--accent); background-color: var(--accent); color: var(--white); }
.secondary-button.full-width { width: 100%; }
/* Sichtbare Variante auf hellem Grund (im Webflow-Original weiß-auf-weiß) */
.secondary-button.on-light { border-color: var(--blue); color: var(--blue); }
.secondary-button.on-light:hover { border-color: var(--accent); background-color: var(--accent); color: var(--white); }
.utility-page-content .secondary-button { border-color: var(--blue); color: var(--blue); }
.utility-page-content .secondary-button:hover { border-color: var(--accent); background-color: var(--accent); color: var(--white); }

@media (max-width: 991px) {
  .project-details { bottom: -18%; }
  .section-full { height: 65vh; }
  .content-full { padding-left: 30px; padding-right: 30px; }
  .project-heading-block { padding-top: 70px; padding-bottom: 90px; }
  .project-box { padding-top: 7%; padding-bottom: 7%; }
  .project-detail-heading { font-size: 16px; }
  .project-detail-text { font-size: 14px; }
  .paragraph.large { font-size: 16px; }
}
@media (max-width: 767px) {
  .service-icon.large { width: 100px; height: 100px; }
  .utility-page-content { padding: 40px; }
  .secondary-button { width: auto; }
}
@media (max-width: 479px) {
  .project-box { padding: 10%; }
  .gradient-overlay { background-image: linear-gradient(#0009, #0009); }
  /* Karte relativ zur Sektion verankern: 24px über der Unterkante (wie Original) */
  .content-full { display: block; flex: none; height: 58vh; position: static; }
  .project-details { flex-direction: column; bottom: 24px; padding: 0 16px; }
  .project-details-block { padding: 24px 16px; box-shadow: 0 1px #ffffff1f; }
  .project-details-block:last-child { box-shadow: none; }
  .section-full { height: 90vh; min-height: 0; }
  .project-heading-block { padding-top: 15%; padding-bottom: 50px; }
  .utility-page-content { width: 270px; padding: 30px; }
}

/* ============================================================
   Über uns (/ueber-uns) und Angebot (/angebot)
   ============================================================ */

/* Hero-Bildreihe (Über uns) */
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  padding-top: 50px;
}
.hero-image { border-radius: 20px; width: 100%; }
.hero-image.bottom { position: relative; top: 40px; }

/* Statistik-Kacheln */
.block-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}
.stats {
  color: var(--accent);
  font-family: 'Titillium Web', sans-serif;
  font-size: 40px;
  font-weight: 700;
}
.stats-text { padding-bottom: 20px; font-size: 20px; font-weight: 700; }
.spacer-16 { height: 16px; }

/* Values-Karten */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  padding-top: 50px;
}
.value-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--green);
  color: var(--blue);
  background-color: var(--white);
  border-radius: 20px;
  padding: 10%;
  box-shadow: var(--card-shadow);
}
.value-card .icon { width: 55px; height: 55px; }
.value-card h3, .value-card h4 { font-size: 24px; }

/* Testimonial-Slider */
.centered-heading { display: flex; justify-content: center; align-items: center; text-align: center; }
.centered-heading .heading-block-text { display: flex; flex-direction: column; align-items: center; }
.testimonial-slider { position: relative; margin-bottom: 100px; }
.testimonial-slides { overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-slide { flex: 0 0 100%; min-width: 100%; }
.testimonial-slider-grid {
  display: grid;
  grid-template-columns: 1fr .5fr;
  grid-column-gap: 16px;
  border: 1px solid var(--green);
  background-color: var(--white);
  border-radius: 20px;
  padding: 30px;
}
.slider-content-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8%;
}
.testimonial-quote {
  color: var(--text);
  margin: 0 0 25px;
  font-size: 25px;
  font-weight: 600;
  line-height: 140%;
}
.slide-detail-wrapper { display: flex; justify-content: space-between; width: 100%; }
.author-name { color: var(--blue); font-weight: 600; }
.author-job-title { letter-spacing: 1px; text-transform: uppercase; font-weight: 300; }
.slide-number { color: var(--blue); letter-spacing: 4px; font-size: 23px; font-weight: 700; }
.number-accent { color: var(--accent); }
.testimonial-image { height: 300px; }
.image-cover { object-fit: cover; object-position: 50% 0; border-radius: 20px; width: 100%; height: 100%; }
.slider-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #2440304d;
  background: none;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform .2s, background-color .2s;
  position: absolute;
  bottom: -90px;
}
.slider-arrow:hover { background-color: var(--accent); transform: scale(.9); }
.slider-arrow.left { left: 0; }
.slider-arrow.right { left: 70px; }
.slider-arrow img { width: 20px; height: 20px; }
.slider-arrow.right img { transform: rotate(180deg); }

/* Check-Liste */
.block-check { display: flex; align-items: center; margin-bottom: 12px; }
.check {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  margin-right: 15px;
  flex-shrink: 0;
}
.icon-check { width: 25px; height: 25px; padding: 3px; }
.text-check { margin-bottom: 0; font-weight: 700; color: var(--text); }
.two-column-grid.reversed { }

/* Angebot: Service-Karten */
.service-collection-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 30px;
  grid-row-gap: 30px;
}
.service {
  border: 1px solid var(--green);
  border-radius: 20px;
  background-color: var(--white);
}
.service-block-image { overflow: hidden; border-radius: 20px 20px 0 0; }
.service-image {
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  width: 100%;
  min-height: 400px;
  max-height: 400px;
  display: block;
}
.service-box { padding: 5% 10% 8%; }
.service-heading-block { display: flex; justify-content: space-between; align-items: center; }
.service-icon { opacity: .3; width: 80px; height: 80px; margin-bottom: 25px; }
.paragraph.no-max-width { max-width: none; }
.service-box .secondary-button { border-color: var(--blue); color: var(--blue); }
.service-box .secondary-button:hover { border-color: var(--accent); background-color: var(--accent); color: var(--white); }
.service-box .heading-h3 { color: var(--blue); }

@media (max-width: 991px) {
  .values { grid-template-columns: 1fr 1fr; padding-top: 30px; }
  .service-image { min-height: 250px; }
  .service-box { padding-top: 30px; padding-bottom: 30px; }
  .stats-text { font-size: 18px; }
  .testimonial-slider-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .testimonial-image { height: 380px; order: -1; }
  .testimonial-quote { font-size: 23px; }
}
@media (max-width: 767px) {
  .stats { font-size: 37px; }
  .value-card:hover { transform: none; }
  .check { width: 25px; height: 25px; }
  .service-collection-list { grid-template-columns: 1fr; }
  .service-icon { width: 50px; height: 50px; margin-bottom: 10px; }
  .testimonial-slider-grid { margin-top: 30px; padding: 15px; }
  .slider-content-block { padding: 8% 0; }
  .testimonial-image { height: 250px; }
  .testimonial-quote { font-size: 18px; }
  .slide-detail-wrapper { flex-direction: column; }
  .testimonial-author-wrap { padding-bottom: 20px; }
}
@media (max-width: 479px) {
  .hero-images { grid-template-columns: 1fr 1fr; padding-top: 0; padding-bottom: 0; }
  .hero-image.bottom { position: static; top: 0; grid-row: span 2; align-self: center; height: 100%; object-fit: cover; }
  .stats { font-size: 32px; }
  .values { grid-template-columns: 1fr; }
  .value-card { box-shadow: none; padding-top: 10%; padding-bottom: 10%; }
  .service-image { min-height: 200px; }
  .service-heading-block { flex-direction: column-reverse; align-items: flex-start; }
  .stats-text { font-size: 16px; }
}

/* ============================================================
   Service-Detailseiten (/angebot/<slug>)
   ============================================================ */
.block-hero.left { flex-direction: row; justify-content: flex-start; align-items: flex-start; text-align: left; }
.service-icon.large { width: 200px; height: 200px; margin-right: 40px; margin-bottom: 0; }
.service-heading .paragraph.large { max-width: 500px; }
.two-one-column-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  align-items: start;
  width: 100%;
}
.service-featured-image { border-radius: 20px; width: 100%; }
.multi-image-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 20px;
}
.multi-image { margin-bottom: 20px; border-radius: 20px; width: 100%; }

/* Sidebar */
.side-bar-box {
  border: 1px solid var(--green);
  background-color: var(--white);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}
.side-bar-header { background-color: #729b5833; border-radius: 20px 20px 0 0; }
.side-bar-title {
  padding: 20px 30px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.service-categorie-link {
  display: block;
  width: 100%;
  padding: 20px 15px 20px 30px;
  text-decoration: none;
  transition: background-color .2s;
}
.service-categorie-link:hover, .service-categorie-link.current { background-color: #729b584d; }
.service-link { color: var(--blue); font-size: 15px; font-weight: 600; }
.checks-box { padding: 20px 30px; }
.checks-box .text-check { font-size: 16px; margin: 0; }
.free-quote-block { background-color: #3b6149; border-radius: 20px; padding: 40px 30px; }
.free-quote-block .heading-h5 { color: var(--white); }
.primary-button.full-width { width: 100%; }

@media (max-width: 991px) {
  .two-one-column-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .block-hero.left { flex-direction: column; padding-left: 0; padding-right: 0; }
  .service-icon.large { margin-right: 0; margin-bottom: 10px; }
  .multi-image-block { grid-template-columns: 1fr; }
}
