/* ===== FONTS ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1B3F7A;
  --blue-d:  #122d5c;
  --teal:    #5BBFB5;
  --teal-d:  #42a89e;
  --teal-l:  #d4f0ed;
  --gray:    #f4f6f9;
  --text:    #1a1a2e;
  --muted:   #5a6480;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(27,63,122,.12);
  --trans:   .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  display: inline-block;
  background: var(--teal-l);
  color: var(--teal-d);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: box-shadow var(--trans);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.nav-logo img { height: 66px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--trans);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--trans);
}

.nav-links a:hover { color: var(--teal-d); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: .55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background var(--trans) !important;
}
.btn-nav:hover { background: var(--teal-d) !important; }
.btn-nav::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-d) 0%, var(--blue) 55%, #2a6e7a 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('hero-besen.jpg') center/cover no-repeat;
  opacity: .28;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(91,191,181,.2);
  border: 1px solid rgba(91,191,181,.4);
  color: var(--teal);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 16px; height: 16px; }

#hero h1 { color: var(--white); margin-bottom: 1.25rem; }

#hero p {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-d); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.hero-stat span {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-top: .15rem;
  display: block;
}

/* ===== SECTION BASE ===== */
section { padding: 5rem 0; }

/* ===== REFERENZEN ===== */
#referenzen { background: var(--white); }

.referenzen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ref-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.ref-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.ref-card-info h3 { margin-bottom: .4rem; }
.ref-card-info p  { color: var(--muted); font-size: .95rem; margin: 0; }

/* Compare Slider */
.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}

.compare-after  { z-index: 1; }
.compare-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
}

.compare-after  img,
.compare-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.compare-before img { max-width: none; }

.compare-label {
  position: absolute;
  top: 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 99px;
  color: white;
  z-index: 4;
  pointer-events: none;
}
.compare-label--before { left: 1rem;  background: rgba(0,0,0,.55); }
.compare-label--after  { right: 1rem; background: rgba(91,191,181,.9); }

/* Handle */
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.compare-line {
  flex: 1;
  width: 3px;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,.4);
}

.compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  flex-shrink: 0;
  color: var(--teal-d);
}
.compare-btn svg { width: 16px; height: 16px; }

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

/* ===== LEISTUNGEN ===== */
#leistungen { background: var(--gray); }
#leistungen .section-head { text-align: center; margin-bottom: 3rem; }
#leistungen .section-head p { color: var(--muted); max-width: 560px; margin: .75rem auto 0; }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(27,63,122,.18);
  border-top-color: var(--teal);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--teal-l);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-d);
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ===== ÜBER UNS ===== */
#ueber-uns { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 160px; height: 160px;
  background: var(--teal-l);
  border-radius: 20px;
  z-index: -1;
}

.about-text .section-label { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }

.check-list { list-style: none; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .6rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--muted); }
.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-l);
  color: var(--teal-d);
  font-weight: 800;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== CTA BANNER ===== */
#cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text h2 { color: var(--white); margin-bottom: .6rem; }
.cta-text p { color: rgba(255,255,255,.75); max-width: 500px; }

.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover { background: var(--teal-l); }

/* ===== VORTEILE ===== */
#vorteile { background: var(--gray); }
#vorteile .section-head { text-align: center; margin-bottom: 3rem; }
#vorteile .section-head p { color: var(--muted); max-width: 560px; margin: .75rem auto 0; }

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

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.benefit-icon {
  width: 56px; height: 56px;
  background: var(--teal-l);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--teal-d);
}
.benefit-icon svg { width: 28px; height: 28px; }

.benefit-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.benefit-card p { color: var(--muted); font-size: .9rem; }

/* ===== KONTAKT ===== */
#kontakt { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px; height: 48px;
  background: var(--teal-l);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--teal-d);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-item strong { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-item a, .contact-item span { font-weight: 600; color: var(--text); }
.contact-item a:hover { color: var(--teal-d); }

/* Form */
.contact-form {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form h3 { margin-bottom: 1.75rem; font-size: 1.4rem; }

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--trans);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
}

textarea { resize: vertical; min-height: 130px; }

.form-check { display: flex; align-items: flex-start; gap: .75rem; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  accent-color: var(--teal);
}
.form-check label { font-size: .85rem; font-weight: 400; color: var(--muted); }
.form-check label a { color: var(--teal-d); text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: .95rem;
  font-size: 1.05rem;
  margin-top: 1.25rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.btn-submit:hover { background: var(--teal-d); transform: translateY(-1px); }

/* ===== FOOTER ===== */
footer {
  background: var(--blue-d);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

.footer-brand img { height: 52px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .9rem; transition: color var(--trans); }
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}

.footer-bottom a { color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--teal); }

/* ===== INNER PAGES ===== */
.page-hero {
  padding: 138px 0 60px;
  background: linear-gradient(135deg, var(--blue-d), var(--blue));
  color: var(--white);
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.7); }

.page-content { padding: 4rem 0 5rem; }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; color: var(--blue); }
.page-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.page-content p, .page-content li { color: var(--muted); margin-bottom: .75rem; line-height: 1.8; }
.page-content ul { padding-left: 1.5rem; }
.page-content a { color: var(--teal-d); text-decoration: underline; }

/* ===== SUCCESS STATE ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success-icon { margin-bottom: 1rem; }
.form-success-icon svg { width: 56px; height: 56px; color: var(--teal); }
.form-success h3 { color: var(--blue); margin-bottom: .5rem; }
.form-success p { color: var(--muted); }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  z-index: 500;
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); background: var(--teal-d); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-image img { height: auto; }
}

@media (max-width: 680px) {
  .services-grid  { grid-template-columns: 1fr; }
  .benefits-grid  { grid-template-columns: 1fr; }
  .hero-content   { padding-top: 2rem; }
  .hero-stat strong { margin-bottom: 0; }
  .hero-stat span   { margin-top: -.25rem; display: block; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #f0f0f0; }
  .nav-links a { display: block; padding: .75rem 0; }
  .btn-nav { margin-top: .5rem; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-stats { gap: 1.5rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }
}
