@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat.woff2") format("woff2-variations"),
       url("fonts/Montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #0E7C7B;
  --petrol-dark: #0a5f5e;
  --petrol-soft: #e7f3f3;
  --navy: #111E2E;
  --anthracite: #1A1D21;
  --anthracite-2: #141618;
  --bg: #F6F7F9;
  --white: #ffffff;
  --text: #111E2E;
  --muted: #5A6473;
  --line: #d5dae0;
  --placeholder-bg: #f3faf9;
  --radius: 6px;
  --wrap: 1120px;
  --header-h: 5.5rem;
  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--petrol-dark);
}

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
  color: var(--white);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  min-height: var(--header-h);
  padding: 0.7rem 0;
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  width: 166px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--petrol);
  border-bottom-color: var(--petrol);
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

.btn-primary:hover {
  background: var(--petrol-dark);
  border-color: var(--petrol-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost.on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost.on-dark:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ----- Hero ----- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 10.75rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: min(100% - 2.5rem, var(--wrap));
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--petrol);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-weight: 750;
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero-sub {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-shape {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(42vw, 520px);
  height: 190px;
  pointer-events: none;
  z-index: 0;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----- Sections ----- */

.section {
  padding: 4.75rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.kicker {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--petrol);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 730;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.accent-bar {
  display: block;
  width: 2.6rem;
  height: 4px;
  background: var(--petrol);
  margin: 0.9rem 0 0;
  border: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* Leistungen */

#leistungen {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem 1.45rem 1.7rem;
}

.icon {
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 1.05rem;
  color: var(--petrol);
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Über mich */

.about-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.4fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.about-name {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.about-name strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.about-role {
  margin: 0.55rem 0 0;
  color: var(--petrol);
  font-weight: 650;
  font-size: 1.02rem;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Kontakt */

#kontakt {
  background: var(--anthracite);
  color: var(--white);
}

#kontakt .kicker {
  color: #7ec7c6;
}

#kontakt h2 {
  color: var(--white);
}

#kontakt .lead {
  color: #c5c9cf;
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 38rem;
}

.contact-list a,
.contact-list .plain {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #22262b;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  border: 1px solid #2c3137;
}

.contact-list a:hover {
  border-color: var(--petrol);
  color: var(--white);
}

.contact-ico {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  background: var(--petrol);
  color: var(--white);
  display: grid;
  place-items: center;
}

.contact-ico svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.contact-list small {
  display: block;
  color: #9aa1aa;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.contact-list span.val {
  font-weight: 550;
  word-break: break-word;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--anthracite-2);
  color: #c5c9cf;
  padding: 1.6rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: #dfe3e8;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* ----- Legal pages ----- */

.legal-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.legal {
  padding: 2.5rem 0 4.5rem;
}

.legal .wrap {
  max-width: 46rem;
  width: min(100% - 2.5rem, 46rem);
}

.legal h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: #2a3340;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.3rem 0;
}

.legal address {
  font-style: normal;
  margin: 0 0 1rem;
}

.placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--petrol);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.placeholder .tag {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol-dark);
}

.placeholder p {
  margin: 0;
  color: var(--navy);
}

/* ----- Responsive ----- */

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-inner,
  .legal .wrap {
    width: min(100% - 1.75rem, var(--wrap));
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    min-height: 0;
    padding: 0.65rem 0 0.75rem;
    gap: 0.55rem 1rem;
  }

  .logo img {
    width: 136px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 0.3rem 1.2rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .hero-inner {
    padding: 3.25rem 0 9rem;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-actions .btn {
    flex: 1 1 10rem;
  }

  .hero-shape {
    width: 78vw;
    height: 118px;
  }

  .section {
    padding: 3.4rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1100px) {
  .hero-inner {
    margin-left: auto;
    margin-right: auto;
    padding-top: 6.25rem;
    padding-bottom: 11.25rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-hero .wrap {
  max-width: 46rem;
  width: min(100% - 2.5rem, 46rem);
}

#kontakt .lead {
  margin-top: 1rem;
}

/* ----- Hero-Bild Funkenflug ----- */
.hero {
  background: #0b1219 url("funken.jpg") center right / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(8,14,20,0.82) 0%, rgba(8,14,20,0.62) 50%, rgba(8,14,20,0.25) 100%);
}
.hero .eyebrow { color: #5fd0cd; }
.hero h1 { color: #ffffff; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hero .hero-sub { color: rgba(255,255,255,0.85); }
.hero-shape { z-index: 1; }

/* ----- Icons in Petrol-Kachel ----- */
.icon {
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: var(--petrol);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14,124,123,0.25);
}

/* ----- Standort-Badge im Hero ----- */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(95,208,205,0.55);
  border-radius: 999px;
  background: rgba(14,124,123,0.18);
  backdrop-filter: blur(4px);
  color: #e6f7f6;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow svg { color: #5fd0cd; flex: none; }

/* ----- Google-Maps-Pin ----- */
.contact-ico.maps-pin { background: #fff; }
.contact-ico.maps-pin svg { width: 70%; height: 70%; }
.maps-link { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: #5fd0cd; font-weight: 600; }
