/* =====================================================================
   Grazhoppers – angelehnt an das bisherige Design (Theme "Appointment Green"):
   weißer Kopfbereich, grasgrüne Akzente, dunkles Banner, Open Sans,
   zentrierte Abschnittstitel, Beiträge mit Bild links.
   ===================================================================== */

/* Open Sans lokal (keine Verbindung zu Google) */
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #7aa228;
  --green-dark: #5f8019;
  --green-light: #eef4e1;
  --dark: #242526;
  --text: #3a3d40;
  --muted: #6b7075;
  --grey-bg: #f5f6f4;
  --line: #e2e5df;
  --white: #ffffff;
  --radius: 3px;
  --font: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1, h2, h3 { color: var(--dark); margin: 0; line-height: 1.25; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 10px; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--green); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-inner { width: min(1170px, calc(100% - 32px)); margin-inline: auto; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 146px; height: auto; }
.menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 13px; border-radius: var(--radius); color: #1b1b1b; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s, color .15s; }
.menu a:hover { background: var(--green-light); color: var(--green-dark); }
.menu a.is-active { background: var(--green); color: #fff; }
.nav-toggle { display: none; background: var(--green); border: 0; border-radius: var(--radius); padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 11px 22px; background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: var(--radius); font: 600 15px var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--dark); }

/* ---------- Banner ---------- */
.banner { background: var(--grey-bg); border-bottom: 1px solid var(--line); }
.banner-overlay { padding: 64px 0 72px; text-align: center; }
.banner-logo { width: min(520px, 90%); height: auto; margin: 0 auto 32px; }
.banner h1 { font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.banner p { font-size: 1.1rem; color: var(--muted); margin: 0 auto 28px; max-width: 40em; }
.banner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.banner .btn-outline { border-color: var(--green); color: var(--green-dark); }
.banner .btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Info-Leiste ---------- */
.infobar { background: var(--green); color: #fff; }
.infobar-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.info { display: flex; align-items: center; gap: 16px; padding: 24px 20px; }
.info + .info { border-left: 1px solid rgba(255,255,255,0.3); }
.info-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; }
.info-icon svg { width: 24px; height: 24px; fill: #fff; }
.info strong { display: block; font-weight: 700; font-size: 1.05rem; }
.info span { font-size: 0.95rem; }
.info a { color: #fff; }

/* ---------- Abschnitte ---------- */
.section { padding: 80px 0; }
.section-grey { background: var(--grey-bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 8px; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--green); margin: 14px auto 0; }
.section-head p { color: var(--muted); margin: 0; }

/* Über uns */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text { max-width: 64ch; }
.about-text h3:not(:first-child) { margin-top: 32px; }
.about-side { display: grid; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 24px; }
.roles { margin: 0; }
.roles div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.roles div:last-child { border-bottom: 0; }
.roles dt { color: var(--muted); }
.roles dd { margin: 0; font-weight: 600; color: var(--dark); }
.prices { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prices th, .prices td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices td { text-align: right; font-weight: 700; color: var(--green-dark); }

/* Termine */
.calendar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin-bottom: 24px; }
.calendar iframe { display: block; width: 100%; height: 600px; border: 0; }

/* Was ist Square Dance */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; border-bottom: 3px solid var(--green); }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; font-size: 0.96rem; color: var(--muted); }

/* Links */
.linklist { list-style: none; margin: 0 auto; padding: 0; columns: 2; column-gap: 48px; max-width: 900px; }
.linklist li { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.linklist a { font-weight: 600; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.linklist span { color: var(--muted); text-align: right; font-size: 0.95rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 3px solid var(--green); display: grid; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.form input, .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd4cc; border-radius: var(--radius); background: #fff; margin-bottom: 8px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-weight: 400 !important; margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--green); }
.form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-message { margin-top: 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--green-light); color: var(--green-dark); font-weight: 600; border-left: 3px solid var(--green); }
.form-message.is-error { background: #fbe9e6; color: #8a1f11; border-left-color: #c0392b; }

/* Rechtliches */
.legal { padding: 64px 0; font-size: 0.95rem; color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.legal h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 14px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

/* Nach-oben-Button wie auf der alten Seite */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--green); border-radius: var(--radius); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--green-dark); }
.to-top svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--white); padding: 10px 16px 18px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
  .menu.is-open { display: flex; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about, .contact, .legal-grid { grid-template-columns: 1fr; }
  .infobar-grid { grid-template-columns: 1fr; }
  .info + .info { border-left: 0; border-top: 1px solid rgba(255,255,255,0.3); }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .banner-overlay { padding: 44px 0 52px; }
  .features, .form-row { grid-template-columns: 1fr; }
  .linklist { columns: 1; }
  .roles div { grid-template-columns: 1fr; gap: 0; }
  .calendar iframe { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu a, .btn, .to-top { transition: none; }
}
