/* =========================================================
   DESIGN TOKENS - Konzept 6 "Sonniges Gartenfest"
   Farben aus dem Referenzbild des Kunden abgeleitet.
   ========================================================= */
:root {
  --sky: #4a86b8;
  --sky-deep: #1f3557;
  --lawn: #4f5a1f;
  --lawn-light: #727d23;
  --gold: #d99a3d;
  --gold-light: #e8b84b;
  --cream: #FBF8F0;
  --brown: #5b4632;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(31, 53, 87, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--brown); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em 0; color: var(--sky-deep); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; font-size: 0.76rem; color: var(--gold);
  margin-bottom: 0.6em;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-light); color: var(--sky-deep); border-color: var(--sky-deep); }
.btn-secondary { background: transparent; color: var(--sky-deep); border-color: var(--sky-deep); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--cream);
  border-bottom: 4px solid var(--gold-light);
}
.header-logo-badge {
  position: absolute; top: -14px; left: 0; height: 250px; width: auto; z-index: 60;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 16px 205px; max-width: var(--max-width); margin: 0 auto;
  flex-wrap: wrap; gap: 16px;
}
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-name { font-family: var(--font-display); font-size: 1.21rem; font-weight: 700; color: var(--sky-deep); text-decoration: none; white-space: nowrap; }
.brand-name span { color: var(--gold); }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 700; color: var(--brown); padding: 4px 2px; font-size: 0.92rem; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--gold); }
.nav-toggle { display: none; }

/* =========================================================
   SIGNATUR-ELEMENT: Wimpelgirlande
   ========================================================= */
.pennants { display: flex; width: 100%; height: 24px; overflow: hidden; }
.pennants span { flex: 1; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 24px solid var(--c); }
.pennants span:nth-child(3n+1) { --c: var(--sky-deep); }
.pennants span:nth-child(3n+2) { --c: var(--gold-light); }
.pennants span:nth-child(3n+3) { --c: var(--lawn-light); }
.pennants.upside-down { transform: scaleY(-1); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; }
.hero img { width: 100%; display: block; height: 560px; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,15,0.05) 0%, rgba(20,30,15,0.55) 78%, rgba(20,30,15,0.74) 100%);
  display: flex; align-items: flex-end;
}
.hero-content { padding: 44px 24px; max-width: 640px; margin: 0 auto; width: 100%; color: #fff; }
.hero-content .eyebrow { background: rgba(20,30,15,0.35); padding: 5px 12px; border-radius: 999px; color: var(--gold-light); }
.hero-content h1 { color: #fff; text-shadow: 0 3px 14px rgba(0,0,0,0.35); }
.hero-content .lead { font-size: 1.08rem; max-width: 50ch; margin-bottom: 22px; color: #f3efe4; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-secondary { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* =========================================================
   SECTIONS ALLGEMEIN
   ========================================================= */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-alt { background: var(--sky-deep); color: var(--cream); }
.section-alt h2, .section-alt .eyebrow { color: var(--cream); }
.section-alt .eyebrow { color: var(--gold-light); }

/* =========================================================
   ARTIKEL / LEISTUNGEN
   ========================================================= */
.artikel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.artikel-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s ease; }
.artikel-card:hover { transform: translateY(-6px); }
.artikel-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.artikel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.artikel-card .body { padding: 20px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.artikel-card .tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.artikel-card p { color: #6b6255; font-size: 0.96rem; flex: 1; }
.artikel-card .card-link { margin-top: 12px; font-weight: 700; color: var(--sky-deep); text-decoration: none; font-size: 0.9rem; }

.btn-kalender {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--sky-deep); font-weight: 700; font-size: 0.86rem; cursor: pointer; padding: 8px 0;
  margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; font-family: var(--font-body);
  text-align: left;
}
.btn-kalender:hover { color: var(--gold); }

/* =========================================================
   VERFÜGBARKEITSKALENDER (öffentlich, je Artikel)
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(31,53,87,0.55); display: flex;
  align-items: center; justify-content: center; padding: 20px; z-index: 200;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 26px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-close {
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: var(--brown); padding: 2px 8px; border-radius: 6px;
}
.modal-close:hover { background: var(--cream); }

.modal-monatsnav { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; gap: 10px; }
.modal-monatsnav button {
  background: var(--cream); border: 1.5px solid #E0D6C4; border-radius: 8px; padding: 7px 12px;
  cursor: pointer; font-weight: 700; color: var(--sky-deep); font-family: var(--font-body); font-size: 0.85rem;
}
.modal-monatsnav button:disabled { opacity: 0.35; cursor: not-allowed; }
.modal-monatsnav .monatslabel { font-weight: 800; color: var(--sky-deep); }

#kalender-status { font-size: 0.88rem; color: #8a7d6a; }

table.oeffentlicher-kalender { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 6px; }
table.oeffentlicher-kalender th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8a7d6a;
  padding: 4px 0; font-weight: 700;
}
table.oeffentlicher-kalender td { padding: 3px; text-align: center; }
.tag-btn {
  width: 100%; aspect-ratio: 1/1; border-radius: 8px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.tag-btn.tag-frei { background: #E4EEDD; color: var(--lawn); }
.tag-btn.tag-frei:hover { background: #cfe3c1; }
.tag-btn.tag-belegt { background: #FBE4E2; color: #B23A2E; cursor: not-allowed; }
.tag-btn.tag-vergangen { background: transparent; color: #cfc6b6; cursor: not-allowed; }
.tag-btn.tag-ausgewaehlt { background: var(--gold-light); color: var(--sky-deep); box-shadow: 0 0 0 2px var(--sky-deep) inset; }

.kalender-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; margin: 14px 0; color: #6b6255; }
.kalender-legende .box { width: 13px; height: 13px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: 4px; }

.kalender-auswahl { background: #F3ECD9; border-radius: 10px; padding: 12px 14px; font-size: 0.88rem; margin-bottom: 16px; color: var(--brown); }

/* =========================================================
   VORTEILE
   ========================================================= */
.vorteile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.vorteil-item .icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 12px;
}
#warum-wir .vorteil-item { text-align: center; }
#warum-wir .vorteil-item .icon {
  width: 75px; height: 75px; border-radius: 21px; font-size: 2.03rem; margin: 0 auto 18px;
}

/* =========================================================
   EINZUGSGEBIET
   ========================================================= */
.gebiet-liste { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gebiet-liste span { background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.9rem; color: var(--sky-deep); }

/* =========================================================
   KONTAKT
   ========================================================= */
.kontakt-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.kontakt-info-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.kontakt-info-box dt { font-weight: 800; color: var(--sky-deep); margin-top: 16px; }
.kontakt-info-box dt:first-child { margin-top: 0; }
.kontakt-info-box dd { margin: 2px 0 0; }

form.kontakt-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field label .req { color: var(--gold); }
.form-field input, .form-field textarea {
  border: 1.5px solid #E0D6C4; border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; background: var(--cream);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 3px rgba(31,53,87,0.14); }
.captcha-box { display: flex; align-items: center; gap: 14px; background: #F3ECD9; border-radius: 10px; padding: 14px; flex-wrap: wrap; }
.captcha-question { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--sky-deep); white-space: nowrap; }
.captcha-box input {
  max-width: 100px; border: 1.5px solid #E0D6C4; border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; background: var(--white);
}
.form-hint { font-size: 0.82rem; color: #8a7d6a; }
.form-msg { padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.form-msg.success { background: #E4EEDD; color: var(--lawn); }
.form-msg.error { background: #FBE4E2; color: #B23A2E; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--sky-deep); color: #DCE6EF; padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: var(--gold-light); }
.site-footer a { text-decoration: none; color: #DCE6EF; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #AFC0D2; }

/* =========================================================
   RECHTLICHE SEITEN (Impressum/Datenschutz)
   ========================================================= */
.rechtlich { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; }
.rechtlich h1 { margin-bottom: 0.8em; }
.rechtlich h2 { margin-top: 1.6em; font-size: 1.3rem; }
.rechtlich p, .rechtlich li { color: #4a4030; }

/* =========================================================
   RESPONSIVE
   Drei Stufen: Tablet (<=900px), Smartphone (<=640px),
   kleine Smartphones (<=400px). Die Haupt-Navigation wird ab
   Tablet-Breite auf das Hamburger-Menü umgeschaltet (siehe auch
   js/main.js), da sie mit allen Punkten + Button auf typischer
   Tablet-Breite (~768px) sonst umbricht/überläuft.
   ========================================================= */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-inner { padding-left: 165px; }
  .header-logo-badge { height: 190px; top: -10px; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero img { height: 460px; }
  .artikel-grid { gap: 20px; }
  section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .header-inner { padding-left: 120px; padding-top: 10px; padding-bottom: 10px; }
  .header-logo-badge { height: 140px; top: -6px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero img { height: 380px; }
  .hero-content { padding: 32px 20px; }
  .modal-box { padding: 18px; }
  .modal-overlay { padding: 12px; }
  form.kontakt-form { padding: 22px; }
  .kontakt-info-box { padding: 22px; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 26px 16px; }
  .header-inner { padding-left: 96px; }
  .header-logo-badge { height: 110px; top: -4px; }
  .header-inner .btn-primary { padding: 9px 16px; font-size: 0.82rem; }
  .brand-name { font-size: 1.06rem; }
  form.kontakt-form { padding: 18px; }
  .kontakt-info-box { padding: 18px; }
  .tag-btn { font-size: 0.75rem; }
}
@media (hover: none) and (pointer: coarse) {
  /* Touch-Geräte: keine Hover-Anhebung, stattdessen kurzes Antippen sichtbar machen */
  .btn:hover { transform: none; }
  .artikel-card:hover { transform: none; }
  .btn:active, .artikel-card:active { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
