/*
Theme Name:  SchoeneckKlimaaktiv
Theme URI:   
Author:      
Description: LoaclZero-Team-Website
Version:     1.0
License:     GNU General Public License v2 or later
Text Domain: vereinstheme
*/

/* ── Lokale Fonts ────────────────────────────────────────── */
@font-face {
    font-family: 'Lato';
    src: url('fonts/lato-v25-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/lato-v25-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/lato-v25-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/lato-v25-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
  --bg:      #f4f1eb;
  --surface: #ffffff;
  --primary: #1c3a2e;
  --accent:  #b5722a;
  --text:    #2a2a2a;
  --muted:   #6b6b6b;
  --border:  #d9d3c7;
  --nav-h:   64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ─────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

#site-nav .site-title a {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .03em;
}

#site-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

#site-nav .nav-menu a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

#site-nav .nav-menu a:hover,
#site-nav .nav-menu .current-menu-item > a,
#site-nav .nav-menu .current_page_item > a {
  color: #fff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ── Inhalt ──────────────────────────────────────────────── */
#content {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* ── Hero (Startseite) ───────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(28,58,46,.08) 0%, transparent 70%),
    var(--bg);
}

.hero-inner { max-width: 680px; }

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.hero .hero-text {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* ── Seiten-Header ───────────────────────────────────────── */
.page-header {
  margin-bottom: 2.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'Lato', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.page-header .subtitle {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ── Typografie ──────────────────────────────────────────── */
.page-content h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.2rem 0 .7rem;
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 .4rem;
}

.page-content p  { margin-bottom: .9rem; }
.page-content ul,
.page-content ol { margin: .5rem 0 1rem 1.4rem; }
.page-content li { margin-bottom: .3rem; }
.page-content a  { color: var(--accent); }

/* ── Info-Box ────────────────────────────────────────────── */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  margin: 1.2rem 0;
}

.info-box p:last-child { margin-bottom: 0; }

/* ── Vorstandskarten ─────────────────────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
}

.board-card .role {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .3rem;
}

.board-card .name {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.board-card .contact {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .3rem;
}

/* ── Kontaktformular (Contact Form 7) ───────────────────── */
.wpcf7 { margin-top: 1.5rem; }

.wpcf7-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.6rem;
}

.wpcf7-form .form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.wpcf7-form .form-group.full { grid-column: 1 / -1; }

.wpcf7-form label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .65rem .9rem;
  color: var(--text);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,58,46,.1);
}

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

.wpcf7-form input[type="submit"] {
  margin-top: 1rem;
  padding: .75rem 2.2rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}

.wpcf7-form input[type="submit"]:hover { background: #274f3e; }

/* ── Footer ──────────────────────────────────────────────── */
#site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1.4rem 2rem;
  font-size: .82rem;
}

#site-footer a { color: rgba(255,255,255,.8); }

/* ── Hamburger-Button (desktop unsichtbar) ───────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: opacity .2s;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
  /* Nav umbruchfähig damit Menü darunter klappt */
  #site-nav {
    height: auto;
    flex-wrap: wrap;
    padding: 0 1.2rem;
  }

  /* Site-Title behält die ursprüngliche Höhe */
  #site-nav .site-title {
    height: var(--nav-h);
    display: flex;
    align-items: center;
  }

  /* Hamburger einblenden */
  .nav-toggle {
    display: flex;
    height: var(--nav-h);
    align-items: center;
  }

  /* Menü standardmäßig versteckt */
  #site-nav .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: .5rem 0 1rem;
  }

  /* Menü offen */
  #site-nav .nav-menu.is-open {
    display: flex;
  }

  #site-nav .nav-menu a {
    font-size: .88rem;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    text-transform: uppercase;
  }

  /* Sonstiges */
  #content { padding: 2rem 1.2rem 4rem; }
  .page-header h1 { font-size: 1.7rem; }
  .wpcf7-form .form-grid { grid-template-columns: 1fr; }
  .wpcf7-form .form-group.full { grid-column: 1; }
}
