@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/Open_Sans/static/OpenSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/Open_Sans/static/OpenSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("assets/fonts/Titillium_Web/TitilliumWeb-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("assets/fonts/Titillium_Web/TitilliumWeb-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --red: #c10625;
  --text: #171717;
  --muted: #6d6d6d;
  --line: #dedede;
  --gray: #f1f1f1;
  --white: #ffffff;
  --content: 1120px;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --font-heading: "Titillium Web", "Open Sans", Arial, Helvetica, sans-serif;
  --header-height: clamp(4rem, 7vw, 4.75rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  
  background: var(--white);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }


h1, h2, h3,
.main-nav,
.button,
.contact-card button,
.feature-card {
  font-family: var(--font-heading);
}

h1{font-size: clamp(48px, 6vw, 74px); margin: 0; line-height: 1.2; letter-spacing: .01em; font-weight: 600;}
h2{font-size: clamp(29px, 3vw, 39px); margin: 0 0 22px; color: var(--red); line-height: 1.12; letter-spacing: .01em;}
h3{font-size: 22px; margin: 0 0 12px; line-height: 1.25;}
p{font-size: 16px; margin: 0 0 17px; line-height: 1.45; font-family: var(--font-body); color: var(--text);}

a:hover {color: var(--red);}
a.button:hover{color: var(--white);}
.privacy-link a:hover{color: var(--white)}
.button {margin-top: 22px;}

.hero-card p{
  color: white;
}

.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; width: 280px; max-width: 45vw; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; gap: 28px;  }
.main-nav a { text-decoration: none; }

/* ============================================================
   BURGER Menü
============================================================ */
.menu-toggle {
  display: none;
  width: clamp(2.5rem, 8vw, 3rem);
  height: clamp(2.5rem, 8vw, 3rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 102;
}

.menu-icon {
  width: 30px;
  height: auto;
  object-fit: contain;
}

/* Close-Icon zunächst ausblenden */
.menu-icon-close {
  display: none;
}

/* Bei geöffnetem Menü Icons tauschen */
.site-header.menu-open .menu-icon-open {
  display: none;
}

.site-header.menu-open .menu-icon-close {
  display: block;
}

@media (max-width: 45em) {
  .menu-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 0.0625rem solid var(--line);
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .main-nav a {
    display: block;
    padding:
      clamp(0.9rem, 4vw, 1.15rem)
      clamp(1rem, 4vw, 1.25rem);
    text-decoration: none;
    border-bottom: 0.0625rem solid var(--line);
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ============================================================
   Hero
============================================================ */
.hero { overflow: hidden; background: #fff; }
.hero-inner {
  position: relative;
  min-height: 505px;
  display: flex;
  align-items: center;
  padding-block: 15px 0;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 66%;
  min-height: 330px;
  padding: 45px clamp(110px, 14vw, 35px) 60px 40px;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 80px;
  margin-bottom: 130px;
}

.hero-card p {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 500;
}

.hero-person {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 0;
  width: min(50vw, 570px);
  max-height: 590px;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
}

.section { padding: 74px 0; }
.section-gray { background: var(--gray); }
.narrow-left { max-width: 690px; }

/* Ankerziele berücksichtigen die sticky Navigation */
.section[id] {
  scroll-margin-top: var(--header-height);
}

.red-text { color: var(--red); }
.button,
.contact-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 1px;
  padding: 10px 18px;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.button { background: var(--red); color: #fff; }
.button:hover { filter: brightness(.94); }

.feature-grid {
  margin: 30px 0 94px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 840px;
}

.feature-card {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
}

.feature-icon { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }

.person-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  max-width: 980px;
}
.person-photo { margin: 0; aspect-ratio: 1 / 1.12; overflow: hidden; background: #ddd; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 23%; }
.person-copy h3 { margin-top: 0; }
.person-copy p { margin-bottom: 12px; }

.contact-section { padding-bottom: 85px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(360px, 530px) 1fr;
  gap: 60px;
  align-items: start;
}
.contact-card {
  background: var(--red);
  color: #fff;
  padding: 28px 32px 30px;
}

.contact-card h3{
  margin-bottom: 22px;
}

.contact-card label:not(.checkbox-row) {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="tel"],
.contact-card textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 7px 9px;
  background: #fff;
  color: #111;
  font: inherit;
  outline: 2px solid transparent;
  outline-offset: 1px;
}

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="tel"] {
  height: 38px;
}

.contact-card textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline-color: rgba(255,255,255,.65);
}
.privacy-link { margin: 26px 0 18px !important;  color: white;}
.privacy-link a { text-underline-offset: 2px; }
.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.35;
}
.checkbox-row input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: white; }
.required-note {margin: 22px 0 22px !important; color: white;}
.contact-card button { background: #fff; color: #111; min-height: 34px; padding: 7px 14px; }

.site-footer { background: #fff; }
.footer-main {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
  padding-block: 52px 48px;
}
.footer-about { max-width: 430px; }
.footer-logo { width: 300px; max-width: 100%; margin-bottom: 22px; }
.footer-about p,
.footer-contact p { margin: 0 0 12px; }
.footer-contact h3 { margin: 2px 0 12px;  }
.contact-line { display: flex; align-items: flex-start; gap: 10px; }
.contact-icon { width: 24px; height: 24px; margin-top: 2px; flex: 0 0 auto; object-fit: contain; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.footer-bar { background: var(--red); color: #fff; }
.footer-bar-inner {
  min-height: 88px;
  padding-block: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
}

.legal-links { display: grid; gap: 4px; justify-items: start; }
.legal-links a { color: #fff; }

@media (max-width: 900px) {
  .hero-inner { min-height: 455px; padding-block: 0; }
  .hero-card { width: 68%; min-height: 290px; padding-right: 105px; margin-top: 50px; margin-bottom: 50px; }
  .hero-person { width: min(49vw, 520px); right: -10px; bottom: -2%; }
  .feature-grid { gap: 10px; }
  .feature-card { padding-inline: 20px; gap: 12px; font-size: 16px; }
  .person-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 720px) {
  .section[id] {scroll-margin-top: -30px;}
  .container { width: min(100% - 30px, var(--content)); }
  .site-header { position: relative; }
  .header-inner { min-height: 66px; gap: 16px; }
  .brand { width: 205px; max-width: 58vw; }
  .main-nav { gap: 13px; }

  .hero-inner {
    min-height: 0;
    padding: 28px 0 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-card { width: 70%; min-height: 0; padding: 28px 26px 26px; margin-bottom:20px; }
  div.hero-card {margin-top: 0px;}
  .hero-card h1 { font-size: clamp(30px, 9vw, 60px); }
  .hero-card p { font-size: 16px; max-width: 65%; }
  .hero-person {
    position: relative;
    right: -152px;
    bottom: auto;
    justify-self: center;
    width: min(88vw, 400px);
    max-height: none;
    margin-top: -342px;
  }

  .section { padding: 54px 0; }
  .section h2 { font-size: 31px; }
  .narrow-left { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; margin-bottom: 45px; max-width: 520px; }
  .feature-card { font-size: 16px; min-height: 76px; }
  .person-grid { grid-template-columns: 1fr; gap: 26px; }
  .person-photo { width: min(100%, 420px); aspect-ratio: 1 / 1.05; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-space { display: none; }
  .contact-card { width: 100%; max-width: 520px; padding: 26px 24px; }
  .form-row.two-col { grid-template-columns: 1fr; gap: 0; }

  .footer-main { grid-template-columns: 1fr; gap: 38px; padding-block: 42px; }
  .footer-bar-inner { grid-template-columns: 1fr; gap: 14px; align-items: start; }
}

@media (max-width: 607px) {
  div.container.hero-inner {padding-top: 0; margin-left: 0; margin-right: 0;}
  img.hero-person {
    position: relative;
    right: -40%;
    bottom: auto;
    justify-self: center;
    width: min(88vw, 290px);
    max-height: none;
    margin-top: -306px;
  }
  .hero-card { padding: 45px 20px 45px; width:88%; margin-bottom: 0px;}
}

@media (max-width: 430px) {
  body { font-size: 16px; }
  .header-inner { align-items: center; padding-block: 12px; }
  .hero-inner {
    margin-left: 0; margin-right: 0; padding-top: 0;
  }
  .brand { width: 175px; }
  .main-nav { flex-direction: column; gap: 3px; align-items: flex-end; }
  .hero-card {margin-bottom: 0px;}
  .hero-card h1 { font-size: 28px; }
  .hero-card p { font-size: 16px; }
  .section h2 { font-size: 28px; }
  .contact-card { padding-inline: 20px; }

  img.hero-person {
    position: relative;
    right: -40%;
    bottom: auto;
    justify-self: center;
    width: min(88vw, 220px);
    max-height: none;
    margin-top: -231px;
  }
  .hero-card { padding: 36px 20px 36px; width:90%;}
}

/*Formular Honeypot*/
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   IMPRESSUM / DATENSCHUTZ
============================================================ */
.legal-page {
  background: var(--gray);
}

/* Kopfbereich der Unterseite */
.legal-hero {
  background: var(--red);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.legal-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}

.legal-hero p {
  color: var(--white);
  margin-top: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: 0;
}

.legal-section {
  padding-block:  clamp(3rem, 7vw, 6rem);
}

.legal-content {
  width: min(100%, 760px);
}

.legal-content h2 {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1em;
}

.legal-content ul,
.legal-content ol {
  margin:  0 0 clamp(1rem, 3vw, 1.5rem);
  padding-left: 1.3em;
  line-height: 1.5;
}

.legal-content li {
  margin-bottom: 0.4em;
}

.legal-content a {
  color: var(--red);
  overflow-wrap: anywhere;
}

.legal-content address {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  font-style: normal;
  line-height: 1.6;
}

/* Zurück-Link */
.legal-back {
  margin-top:
    clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 720px) {
  .legal-hero {
    padding-block:
      clamp(2rem, 10vw, 3rem);
  }

  .legal-section {
    padding-block:
      clamp(2.5rem, 10vw, 4rem);
  }
}

/*404-Fehlerseite*/
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24vh 25vh;
  border-bottom: 1px solid var(--muted);
}

.error-content {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.error-code {
  margin-bottom: 20px;
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--red);
}

.error-title {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
}

.error-text {
  max-width: 520px;
  margin: 0 auto 35px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}