* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Anchor-Offset für Sticky Header */
section { scroll-margin-top: 90px; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background: #ffffff;
}

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

a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sichtbarer Fokus (Tastatur) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}

.container { width: min(1100px, 90%); margin: 0 auto; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #0ea5e9;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; }

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.logo { height: 48px; width: auto; }

/* Nav: responsiv ohne Burger-Menü */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}

.nav a {
  font-weight: 700;
  color: #0f172a;
  padding: 0.35rem 0.1rem;
}
.nav a:hover { color: #0ea5e9; text-decoration: none; }

/* Hero */
.hero { padding: 4rem 0; background: #f8fafc; }
.hero-grid { display: grid; gap: 2rem; }

.hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  font-weight: 800;
  border: 2px solid #0ea5e9;
  transition: filter 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(0.95); }

.btn-ghost {
  background: transparent;
  color: #0ea5e9;
}

/* Sections */
.section { padding: 4rem 0; }
.section.light { background: #f1f5f9; }
.section.dark { background: #0f172a; color: #fff; }
.section.dark a { color: #38bdf8; }

.section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.section p { margin-bottom: 1rem; max-width: 75ch; }

/* Grids */
.grid-2, .grid-3 { display: grid; gap: 2rem; }

/* Cards */
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  overflow: hidden; /* falls Bilder sehr groß sind */
}

.card img {
  border-radius: 12px;
}

.card h3 {
  margin: 1rem 0 0.5rem;
  line-height: 1.25;
}

/* 2x2 Grid für Leistungen */
.grid-4 {
  display: grid;
  gap: 2rem;
}

/* Einheitliche, quadratische Bilder in Cards */
.card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px; /* quadratisch mit weichen Ecken */
  background: #f1f5f9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional: runde Bilder (wenn du lieber rund willst)
   -> einfach .card-media { border-radius: 999px; } setzen
*/

/* kleine Hervorhebung für Feature-Card (Zapfanlage) */
.card-feature .card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 800;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr); /* 2 und 2 */
  }
}


/* Form */
.contact-form { margin-top: 1rem; max-width: 560px; }
.contact-form label { display: block; margin-bottom: 1rem; font-weight: 700; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
}

.contact-form textarea { resize: vertical; }

.form-note { font-size: .95rem; opacity: .9; margin-top: 1rem; }

/* Legal sections */
.legal p { max-width: 85ch; }
.legal h2 { margin-bottom: 1rem; }
.legal em { font-style: italic; }

/* Footer */
.footer { background: #020617; color: #cbd5f5; padding: 1.25rem 0; }

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

.footer a { color: #93c5fd; }

/* Responsive */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Motion-Reduktion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.form-success {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 12px;
  font-weight: 700;
}

.form-error {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-radius: 12px;
  font-weight: 700;
}
