/* ============================================================
   Smart Allgäu – Stylesheet
   Mobile-first, keine externen Abhängigkeiten
   ============================================================ */

/* ── Reset & Basis ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2d6a4f;
  --green-dark:   #1b4332;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --accent:       #40916c;
  --text:         #1a1a2e;
  --text-muted:   #555e6d;
  --bg:           #ffffff;
  --bg-alt:       #f4f9f6;
  --border:       #d0e4d8;
  --card-shadow:  0 2px 16px rgba(45,106,79,.10);
  --radius:       12px;
  --radius-sm:    8px;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:        1100px;
  --nav-h:        64px;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ──────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--green-light); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--accent) 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero .container { position: relative; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #d8f3dc;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 750px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: .88;
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  border: none;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.btn-primary { background: #fff; color: var(--green-dark); }
.btn-primary:hover { background: var(--green-pale); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

/* ── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}
.service-icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.service-card p { color: var(--text-muted); font-size: .95rem; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.price-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}
.price-card.highlighted {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.price-card.highlighted h3,
.price-card.highlighted .price-amount,
.price-card.highlighted .price-unit,
.price-card.highlighted .price-features li { color: #fff; }
.price-card.highlighted .price-features li::before { color: var(--green-light); }
.price-card.highlighted .badge { background: var(--green-light); color: var(--green-dark); }

.price-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 12px 0 2px;
  line-height: 1;
}
.price-unit { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }

.price-description {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 10px 0 4px;
  line-height: 1.5;
}
.price-card.highlighted .price-description { color: rgba(255,255,255,.7); }

.price-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
  opacity: .4;
}
.price-card.highlighted .price-divider { border-color: rgba(255,255,255,.25); }

.price-features { list-style: none; flex: 1; margin-bottom: 24px; }
.price-features li {
  font-size: .9rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.price-card .btn { width: 100%; text-align: center; font-size: .92rem; padding: 12px 0; }
.price-card:not(.highlighted) .btn { background: var(--green-pale); color: var(--green-dark); }
.price-card:not(.highlighted) .btn:hover { background: var(--green); color: #fff; }
.price-card.highlighted .btn { background: #fff; color: var(--green-dark); }
.price-card.highlighted .btn:hover { background: var(--green-pale); }

/* ── Kontakt ────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .97rem;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; padding: 13px; font-size: 1rem; }

/* ── Preise: MwSt.-Hinweis ──────────────────────────────── */
.pricing-legal-note {
  text-align: center;
  margin-top: 24px;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Formular: Datenschutzhinweis ───────────────────────── */
.form-privacy-note {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-privacy-note a { color: var(--green); }

/* ── Datenschutzerklärung ───────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.privacy-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.privacy-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.privacy-block p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.privacy-block p:last-child { margin-bottom: 0; }
.privacy-block a { color: var(--green); }

/* ── Impressum ──────────────────────────────────────────── */
.imprint-section {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 40px;
}
.imprint-section h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.imprint-note { font-size: .82rem; opacity: .55; margin-bottom: 24px; }
.imprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  font-size: .9rem;
  line-height: 1.8;
}
.imprint-grid strong { color: #fff; display: block; margin-bottom: 2px; }
.imprint-grid a { color: var(--green-light); }

/* ── Warum-Section ──────────────────────────────────────── */
.section-why { background: #f0f4f2; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .25s, transform .25s;
}
.why-card:hover { box-shadow: var(--card-shadow); transform: translateY(-3px); }
.why-icon { font-size: 2rem; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }
.why-card p  { font-size: .95rem; color: var(--text-muted); line-height: 1.6; }

/* ── Referenzen ─────────────────────────────────────────── */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.reference-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.reference-card:hover { box-shadow: var(--card-shadow); transform: translateY(-3px); }

.ref-visual {
  background: #12121e;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 12px;
}
.ref-icon { font-size: 3.5rem; }

.workflow-svg { width: 100%; height: auto; display: block; border-radius: 4px; }

.ref-body { padding: 22px 22px 24px; }
.ref-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.ref-body p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-top: 10px; }

.ref-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-tag  {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Über uns ────────────────────────────────────────────── */
.about-wrapper {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  align-items: start;
}
.about-icon-col { padding-top: 8px; }
.about-icon-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.about-icon { font-size: 2.2rem; }
.about-text-col h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.about-text-col #about-paragraphs p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 1rem;
}
.about-text-col #about-paragraphs p:last-child { margin-bottom: 0; }

/* ── Pricing: 5 Karten ──────────────────────────────────── */
/* Reduziert min-Breite damit 5 Karten in eine Reihe passen  */
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #0d2818;
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 18px 20px;
  font-size: .82rem;
}
.footer a { color: rgba(255,255,255,.6); }
.footer-links { margin-top: 6px; font-size: .8rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav-links.open a { padding: 10px 0; display: block; }
  .nav-cta { margin-top: 8px; display: inline-block; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }

  .section { padding: 56px 0; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 20px; }
  .hero { padding: 70px 0 60px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
