/*
Theme Name:  SAG Studernheim
Theme URI:   https://studernheim.net
Author:      SAG e.V. – Studernheimer Arbeitsgemeinschaft
Description: Offizielles Theme für studernheim.net
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: sag-studernheim
*/

/* ── VARIABLEN ── */
:root {
  --yellow:   #f9b93b;
  --yellow-d: #e0a020;
  --yellow-l: #fef3d7;
  --yellow-m: #fde8a0;
  --ink:      #1a1604;
  --dark:     #221e08;
  --muted:    #6b6340;
  --border:   #e8dfa8;
  --cream:    #fffdf4;
  --white:    #ffffff;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.nav-brand {
  display: flex; align-items: center; gap: .875rem;
  text-decoration: none;
}
.nav-wappen { height: 42px; width: auto; }
.nav-name {
  font-family: 'Lora', serif;
  color: var(--yellow); font-size: 1.1rem; line-height: 1.2;
}
.nav-name small {
  display: block; font-size: .65rem; opacity: .6;
  font-family: 'Outfit', sans-serif; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}
#primary-navigation ul { list-style: none; display: flex; gap: .15rem; }
#primary-navigation ul a {
  display: block; padding: .45rem .85rem;
  text-decoration: none; color: rgba(255,255,255,.65);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em; border-radius: 4px;
  transition: background .2s, color .2s;
}
#primary-navigation ul a:hover,
#primary-navigation ul .current-menu-item > a { background: rgba(249,185,59,.15); color: var(--yellow); }
.nav-cta {
  background: var(--yellow) !important; color: var(--dark) !important; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--yellow-d) !important; }

/* ── MAIN CONTENT AREA ── */
.site-main { padding-top: 64px; }

/* ── HERO (Startseite) ── */
.hero-section {
  min-height: 92vh;
  background: var(--dark);
  display: grid; grid-template-rows: 1fr auto;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(249,185,59,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 70%, rgba(249,185,59,.07) 0%, transparent 40%);
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 5rem 3rem 3rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(249,185,59,.12); border: 1px solid rgba(249,185,59,.3);
  color: var(--yellow); padding: .35rem .9rem;
  border-radius: 20px; font-size: .75rem;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-section h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  color: white; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 1.25rem;
}
.hero-section h1 em { font-style: italic; color: var(--yellow); }
.hero-sub {
  color: rgba(255,255,255,.6); font-size: 1.05rem;
  max-width: 44ch; line-height: 1.8; margin-bottom: 2.5rem;
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-yellow {
  display: inline-block; padding: .8rem 1.75rem;
  background: var(--yellow); color: var(--dark);
  text-decoration: none; font-weight: 700; font-size: .9rem;
  border-radius: 6px; transition: background .2s, transform .2s;
}
.btn-yellow:hover { background: var(--yellow-d); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; padding: .8rem 1.75rem;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  text-decoration: none; font-weight: 500; font-size: .9rem;
  border-radius: 6px; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.hero-wappen-wrap {
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-wappen-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,185,59,.2) 0%, transparent 70%);
}
.hero-wappen {
  width: 280px; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 12px 40px rgba(249,185,59,.25));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-stats { border-top: 1px solid rgba(249,185,59,.15); display: flex; position: relative; z-index: 1; }
.hero-stat {
  flex: 1; padding: 1.4rem 2rem;
  border-right: 1px solid rgba(249,185,59,.1); text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong { display: block; font-family: 'Lora', serif; font-size: 2rem; color: var(--yellow); }
.hero-stat span { font-size: .73rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; }

/* ── SECTION GEMEINSAM ── */
.section-wrap { padding: 5rem 3rem; }
.section-eyebrow {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow-d); font-weight: 600; margin-bottom: .6rem;
}
.section-wrap h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2; letter-spacing: -.01em; margin-bottom: 1rem;
}
.rule { width: 2.5rem; height: 3px; background: var(--yellow); border-radius: 2px; margin: 1.1rem 0 1.5rem; }

/* ── AKTUELLES / NEWS ── */
.aktuelles-wrap { background: var(--cream); }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem;
}
.link-more {
  color: var(--muted); text-decoration: none; font-size: .875rem;
  font-weight: 500; transition: color .2s;
}
.link-more:hover { color: var(--yellow-d); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Single news card */
.news-card {
  background: white; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(249,185,59,.15); }
.news-card-thumb {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--dark), rgba(249,185,59,.3));
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-pill {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--yellow); color: var(--dark);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 4px;
}
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.news-card-body h3 {
  font-family: 'Lora', serif; font-size: 1.15rem; line-height: 1.35; margin-bottom: .7rem;
}
.news-card-body h3 a { text-decoration: none; color: var(--ink); transition: color .2s; }
.news-card-body h3 a:hover { color: var(--yellow-d); }
.news-card-body p { font-size: .875rem; color: var(--muted); line-height: 1.7; flex: 1; }
.read-more {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--yellow-d); font-size: .8rem; font-weight: 600;
  text-decoration: none; margin-top: 1rem; transition: color .2s;
}
.read-more:hover { color: var(--ink); }

/* ── VERANSTALTUNGEN / EVENTS ── */
.events-wrap { background: var(--yellow-l); }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }

.event-card {
  background: white; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(249,185,59,.2); }
.event-card-thumb {
  height: 180px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--dark), rgba(249,185,59,.25));
}
.event-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.event-date-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--yellow); color: var(--dark);
  font-size: .75rem; font-weight: 700; padding: .3rem .75rem;
  border-radius: 4px; margin-bottom: .875rem; width: fit-content;
}
.event-card-body h3 {
  font-family: 'Lora', serif; font-size: 1.1rem; line-height: 1.3; margin-bottom: .5rem;
}
.event-card-body h3 a { text-decoration: none; color: var(--ink); transition: color .2s; }
.event-card-body h3 a:hover { color: var(--yellow-d); }
.event-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.event-meta span { display: flex; align-items: center; gap: .3rem; }
.event-card-body p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-top: .5rem; flex: 1; }

/* ── SINGLE POST / PAGE ── */
.single-post-wrap, .page-wrap { max-width: 780px; margin: 0 auto; padding: 4rem 2rem; }
.single-post-header { margin-bottom: 2.5rem; }
.single-post-header h1 { font-family: 'Lora', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem; }
.post-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.post-featured-img { width: 100%; border-radius: 10px; margin-bottom: 2rem; height: 380px; object-fit: cover; }
.post-content { font-size: 1.05rem; line-height: 1.85; color: #2a2510; }
.post-content h2 { font-family: 'Lora', serif; font-size: 1.6rem; margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--yellow-d); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* ── ÜBER UNS (SAG) ── */
.sag-wrap {
  background: white;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.sag-img-box {
  background: var(--dark); border-radius: 14px;
  aspect-ratio: 4/5; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sag-img-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 30%, rgba(249,185,59,.15), transparent 60%);
}
.sag-wappen-inner { width: 65%; height: auto; position: relative; z-index: 1; opacity: .9; }
.sag-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--yellow); color: var(--dark);
  padding: 1.25rem 1.5rem; border-radius: 10px; text-align: center;
  box-shadow: 0 8px 24px rgba(249,185,59,.3);
}
.sag-badge strong { display: block; font-family: 'Lora', serif; font-size: 2rem; }
.sag-badge span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.sag-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.sag-features { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.sag-feat {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .875rem 1rem; background: var(--yellow-l);
  border-radius: 8px; border-left: 3px solid var(--yellow);
}
.sag-feat-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.sag-feat-text strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.sag-feat-text span { font-size: .8rem; color: var(--muted); }

/* ── TERMINE ── */
.termine-wrap { background: var(--dark); color: white; }
.termine-wrap .section-eyebrow { color: var(--yellow); }
.termine-wrap h2 { color: white; }
.termine-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; margin-top: 2.5rem; }
.termin-list { display: flex; flex-direction: column; gap: .875rem; }
.termin {
  background: rgba(249,185,59,.06); border-radius: 10px;
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem;
  border: 1px solid rgba(249,185,59,.1); transition: background .2s, border-color .2s;
}
.termin:hover { background: rgba(249,185,59,.12); border-color: rgba(249,185,59,.3); }
.termin-date {
  flex-shrink: 0; text-align: center; background: var(--yellow);
  border-radius: 8px; padding: .6rem .9rem; min-width: 3.5rem;
}
.termin-date .day { display: block; font-family: 'Lora', serif; font-size: 1.75rem; color: var(--dark); line-height: 1; }
.termin-date .month { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dark); opacity: .7; }
.termin-info h4 { font-size: .95rem; font-weight: 600; color: white; margin-bottom: .25rem; }
.termin-info p { font-size: .8rem; color: rgba(255,255,255,.5); }
.newsletter-box {
  background: rgba(249,185,59,.08); border-radius: 14px;
  border: 1px solid rgba(249,185,59,.2); padding: 3rem;
}
.newsletter-box h3 { font-family: 'Lora', serif; font-size: 1.75rem; color: white; margin-bottom: .75rem; }
.newsletter-box p { color: rgba(255,255,255,.55); font-size: .9rem; margin-bottom: 2rem; line-height: 1.7; }
.nl-form { display: flex; gap: .75rem; max-width: 400px; }
.nl-form input {
  flex: 1; padding: .875rem 1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(249,185,59,.25);
  color: white; font-family: 'Outfit', sans-serif; font-size: .9rem;
  border-radius: 8px; outline: none;
}
.nl-form input:focus { border-color: var(--yellow); }
.nl-form button {
  padding: .875rem 1.5rem; background: var(--yellow); color: var(--dark);
  border: none; font-family: 'Outfit', sans-serif; font-size: .875rem;
  font-weight: 700; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.nl-form button:hover { background: var(--yellow-d); }

/* ── KONTAKT ── */
.kontakt-wrap { background: var(--yellow-l); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.kontakt-left p { color: var(--muted); max-width: 40ch; margin-bottom: 2rem; line-height: 1.8; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  background: white; border-radius: 10px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border);
}
.cc-icon { width: 2.75rem; height: 2.75rem; border-radius: 8px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.cc-text strong { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.cc-text span { font-size: .9rem; color: var(--ink); }

/* Kontakt Formular (WPForms / Contact Form 7) */
.wpcf7-form, .wpforms-form { display: flex; flex-direction: column; gap: .875rem; }
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--border); background: white;
  font-family: 'Outfit', sans-serif; font-size: .9rem; color: var(--ink);
  outline: none; border-radius: 8px; transition: border-color .2s;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus,
.wpforms-form input:focus, .wpforms-form textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(249,185,59,.15); }
.wpcf7-form textarea, .wpforms-form textarea { min-height: 130px; resize: vertical; }
.wpcf7-submit, .wpforms-submit {
  padding: .875rem 2rem; background: var(--yellow); color: var(--dark);
  border: none; font-family: 'Outfit', sans-serif;
  font-size: .9rem; font-weight: 700; border-radius: 8px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.wpcf7-submit:hover, .wpforms-submit:hover { background: var(--yellow-d); transform: translateY(-2px); }

/* ── FOOTER ── */
#site-footer {
  background: #110f02; color: rgba(255,255,255,.45);
  padding: 3rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
}
.footer-brand-name { font-family: 'Lora', serif; color: var(--yellow); font-size: 1.1rem; }
.footer-brand-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.footer-wappen { height: 40px; width: auto; opacity: .85; }
.footer-brand p { font-size: .8rem; line-height: 1.6; max-width: 30ch; }
#site-footer h4 { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
#site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
#site-footer ul a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .85rem; transition: color .2s; }
#site-footer ul a:hover { color: var(--yellow); }
.footer-bottom {
  background: #0a0900; padding: 1.25rem 3rem;
  display: flex; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.25); flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.25); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.5); }

/* ── WORDPRESS ADMIN BAR KOMPATIBILITÄT ── */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
