:root {
  --green: #0a742f;
  --green-dark: #064723;
  --green-soft: #edf7f0;
  --red: #db1338;
  --red-dark: #b60e2d;
  --white: #ffffff;
  --text: #17231b;
  --muted: #526057;
  --border: #d7e2da;
  --shadow: 0 10px 28px rgba(10, 50, 25, 0.10);
  --content-width: 1240px;
  --radius: 12px;
}

/* =========================
   RESET UND BASIS
========================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--green-soft);
}

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

a {
  color: var(--green);
}

a:hover {
  color: var(--red);
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  margin-bottom: 22px;
  color: #243126;
}

p:last-child {
  margin-bottom: 0;
}

/* Tastatur-Navigation */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--red);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================
   HEADER
========================= */

.site-header {
  color: var(--white);
  background: var(--green-dark);
  border-bottom: 5px solid var(--red);
}

.header-inner {
  width: min(100% - 40px, var(--content-width));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

#logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

#logo img {
  width: 176px;
  height: auto;
}

.header-text {
  min-width: 250px;
}

.company-name {
  margin-bottom: 3px;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
}

.company-subtitle {
  margin-bottom: 0;
  max-width: 370px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 7px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  background: var(--red);
  transform: translateY(-1px);
  outline: none;
}

/* =========================
   HERO
========================= */

.hero {
padding:
    clamp(48px, 5vw, 72px)
    max(20px, calc((100% - var(--content-width)) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(125deg, var(--green-dark), var(--green) 62%, #0d8b3a);
  border-bottom: 5px solid var(--red);
  background-image: url("images/heroBG.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
  text-shadow: 2px 2px 5px black;
}

.hero h1 {
  max-width: 880px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(2.15rem, 5vw, 3.75rem);
}

.hero p {
  max-width: 790px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.small-hero {
  padding-top: clamp(58px, 7vw, 86px);
  padding-bottom: clamp(58px, 7vw, 86px);
  background-image: url("images/heroBG.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
  text-shadow: 2px 2px 5px black;
}

.small-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

/* =========================
   BUTTONS
========================= */

.btn,
.more-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn {
  padding: 13px 28px;
  background: var(--red);
}

.btn:hover,
.btn:focus-visible {
  color: var(--white);
  background: var(--red-dark);
  box-shadow: 0 8px 18px rgba(219, 19, 56, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.more-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 20px;
  background: var(--green);
}

.more-btn:hover,
.more-btn:focus-visible {
  color: var(--white);
  background: var(--green-dark);
  transform: translateY(-1px);
  outline: none;
}

/* =========================
   STARTSEITE
========================= */

#leistungen,
.about,
.contact,
.faq-section {
  padding: 72px max(20px, calc((100% - var(--content-width)) / 2));
}

#leistungen {
  background: var(--green-soft);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 38px;
}

.card {
  display: flex;
  min-height: 295px;
  flex-direction: column;
  padding: 28px 25px 25px;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 26px;
  color: var(--text);
}

.about {
  background: var(--white);
}

.about p {
  max-width: 1000px;
  margin-bottom: 18px;
}

/* =========================
   KONTAKT
========================= */

.contact {
  background: var(--green-soft);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 30px;
}

.contact-wrapper form,
.contact-alternatives {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-wrapper form {
  padding: 30px;
}

.contact-wrapper fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-wrapper label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 700;
}

.contact-wrapper input,
.contact-wrapper textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--white);
  font: inherit;
}

.contact-wrapper input:focus,
.contact-wrapper textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 116, 47, 0.16);
  outline: none;
}

.contact-wrapper textarea {
  min-height: 150px;
  resize: vertical;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-notice {
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-alternatives {
  padding: 27px;
}

.contact-alternatives h3 {
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 1.28rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 7px;
}

.contact-item:hover {
  background: var(--green-soft);
}

.contact-item .icon {
  min-width: 24px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.contact-item a {
  overflow-wrap: anywhere;
  color: var(--green-dark);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* =========================
   DETAILSEITEN
========================= */

.info-page {
  width: min(calc(100% - 40px), 1100px);
  margin: 46px auto;
  padding: clamp(32px, 6vw, 66px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-page p {
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.damage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.damage-list li {
  padding: 13px 15px;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: var(--green-soft);
}

.faq-section {
  background: var(--green-soft);
}

.faq-item {
  width: min(100%, 1100px);
  margin: 0 auto 20px;
  padding: 25px;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.18rem;
}

.faq-item p {
  margin-bottom: 12px;
}

/* =========================
   IMPRESSUM / DATENSCHUTZ
========================= */

.legal-page {
  width: min(calc(100% - 40px), 1000px);
  margin: 46px auto;
  padding: clamp(30px, 6vw, 60px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-page section {
  margin-bottom: 34px;
  padding: 0;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page a {
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 28px 20px;
  border-top: 5px solid var(--red);
  color: var(--white);
  background: var(--green-dark);
  text-align: center;
}

.site-footer p {
  margin-bottom: 6px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 14px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  outline: none;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1040px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    justify-content: center;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {
  html {
    scroll-padding-top: 12px;
  }

  .header-inner {
    width: min(100% - 30px, var(--content-width));
    flex-direction: column;
    gap: 11px;
    text-align: center;
  }

  #logo img {
    width: 148px;
  }

  .header-text {
    min-width: 0;
  }

  .company-subtitle {
    max-width: 100%;
  }

  .main-nav {
    flex-direction: column;
    gap: 7px;
  }

  .main-nav a {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
    text-align: center;
  }

  .hero .btn {
    width: 100%;
  }

  #leistungen,
  .about,
  .contact,
  .faq-section {
    padding: 52px 20px;
  }

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

  .card {
    min-height: 0;
  }

  .more-btn {
    width: 100%;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-wrapper form,
  .contact-alternatives {
    padding: 22px;
  }

  .damage-list {
    grid-template-columns: 1fr;
  }

  .info-page,
  .legal-page {
    width: calc(100% - 28px);
    margin: 24px auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 0.97rem;
  }

  .company-name {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .contact-fields {
    grid-template-columns: 1fr;
  }
}