/*
Theme Name: Lorenzschefeld e.V.
Theme URI: https://lorenzsche-feld.de
Author: Lorenzschefeld e.V.
Description: Grunddesign für die Vereinshomepage von Tangermünde Lorenzschefeld e.V. Modernes, mutiges Beige-Design mit Startseite, Über uns, Service (Downloads), Impressum, Datenschutz und Kontakt.
Version: 3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lorenzschefeld
*/

:root{
  /* Beige-Basis */
  --color-bg: #f4efe3;
  --color-bg-soft: #ece2cd;
  --color-surface: #fffdf8;

  /* Textfarben */
  --color-ink: #2c2718;
  --color-ink-soft: #6b6152;

  /* Akzente: kräftiges Salbeigrün + Terrakotta + Sonnengelb */
  --color-green: #5c7a52;
  --color-green-dark: #34492f;
  --color-terracotta: #d76a3c;
  --color-terracotta-dark: #a94e28;
  --color-sun: #eab04a;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(44, 39, 24, 0.08);
  --shadow-md: 0 14px 32px -12px rgba(44, 39, 24, 0.24);
  --shadow-lift: 0 20px 40px -14px rgba(44, 39, 24, 0.34);
  --max-width: 1160px;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-green-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-terracotta-dark); }

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Marquee-Ankündigungsleiste ---------- */
.marquee-bar {
  background: var(--color-ink);
  color: var(--color-bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}
.marquee-bar .marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.marquee-bar .marquee-track span {
  margin: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.marquee-bar a { color: var(--color-sun); text-decoration: underline; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-bar .marquee-track { animation: none; padding-left: 24px; }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(244, 239, 227, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(44, 39, 24, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--color-green-dark); }

.site-description { font-size: 0.82rem; color: var(--color-ink-soft); margin: 0; }

.main-navigation ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }

.main-navigation a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: var(--color-green); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--color-green-dark) 0%, var(--color-green) 55%, #8aa473 100%);
  color: #fdfaf3;
  padding: 108px 0 100px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero::before { width: 420px; height: 420px; top: -180px; right: -120px; background: rgba(255, 255, 255, 0.08); }
.hero::after { width: 300px; height: 300px; bottom: -160px; left: -70px; background: rgba(234, 176, 74, 0.22); }

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--color-sun);
  color: #3a2a0a;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 900;
}

.hero p {
  font-size: 1.16rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #eef1e6;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--color-terracotta);
  color: #fff;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: #fff;
  text-decoration: none;
}

.btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: none; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; transform: translateY(-3px); box-shadow: none; }

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

.btn-sun { background: var(--color-sun); color: #3a2a0a; }
.btn-sun:hover { background: #dc9a34; color: #3a2a0a; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt {
  background:
    radial-gradient(circle at 1px 1px, rgba(44,39,24,0.06) 1px, transparent 0) 0 0/22px 22px,
    var(--color-bg-soft);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin: 0 0 8px;
}

.section h2 {
  color: var(--color-ink);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 850;
  margin: 0 0 10px;
}

.section-intro { color: var(--color-ink-soft); margin-bottom: 40px; max-width: 660px; font-size: 1.03rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 39, 24, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card .icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 14px;
}

.card h3 { color: var(--color-ink); margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; }
.card p { margin: 0; color: var(--color-ink-soft); }

/* ---------- Termine / Event-Karten ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

.event-card {
  display: flex;
  gap: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 39, 24, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.event-card.is-featured {
  background: linear-gradient(160deg, var(--color-green-dark), var(--color-green));
  color: #fdfaf3;
  border: none;
}
.event-card.is-featured .event-meta,
.event-card.is-featured p { color: #eef1e6; }
.event-card.is-featured .date-badge { background: var(--color-sun); color: #3a2a0a; }

.date-badge {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: var(--radius-md);
  background: var(--color-terracotta);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.date-badge .day { font-size: 1.7rem; font-weight: 900; }
.date-badge .month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

.event-card h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.event-card .event-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.86rem; font-weight: 700;
  margin-top: 12px; color: var(--color-ink-soft);
}

/* Highlight-Banner (z.B. Flohmarkt) */
.highlight-banner {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 39, 24, 0.06);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.highlight-banner .meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 0.92rem; color: var(--color-ink-soft); }
.highlight-banner .meta strong { color: var(--color-ink); }

/* ---------- Vorstand / Board ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.board-member {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 39, 24, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.board-member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.board-member .avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-green-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; margin: 0 auto 14px;
}

.board-member h3 { margin: 0 0 4px; font-size: 1.04rem; font-weight: 800; }
.board-member .role { color: var(--color-terracotta-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Downloads / Service ---------- */
.download-list { list-style: none; padding: 0; margin: 0; }

.download-list li {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 39, 24, 0.06);
  padding: 20px 24px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.download-list li:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.download-list .file-label { font-weight: 800; color: var(--color-ink); }
.download-list .file-desc { color: var(--color-ink-soft); font-size: 0.9rem; }

/* ---------- Page content default ---------- */
.page-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 39, 24, 0.06);
  padding: 36px;
}
.page-content h1 { color: var(--color-ink); margin-top: 0; letter-spacing: -0.02em; font-weight: 900; }
.page-content h2 { color: var(--color-ink); font-size: 1.25rem; font-weight: 800; }

table.legal-table { border-collapse: collapse; width: 100%; margin: 16px 0; }
table.legal-table td { padding: 10px 10px; border-bottom: 1px solid rgba(44, 39, 24, 0.1); vertical-align: top; }
table.legal-table td:first-child { font-weight: 700; width: 220px; color: var(--color-ink); }

.placeholder { background: #fff1cc; color: #8a6300; padding: 1px 6px; border-radius: 4px; font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-green-dark); color: #e7ecdf; padding: 52px 0 24px; margin-top: 40px; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-bottom: 28px; }

.site-footer a { color: #dfe7d3; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0; font-weight: 800; }

.social-links { display: flex; gap: 10px; margin-top: 6px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-links a:hover { background: var(--color-terracotta); transform: translateY(-2px); }
.social-links svg { width: 17px; height: 17px; fill: #fff; }

.footer-bottom { text-align: center; font-size: 0.85rem; color: #b9c6ac; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-navigation ul { flex-direction: column; width: 100%; }
  .hero { padding: 72px 0 60px; clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%); }
  .highlight-banner { grid-template-columns: 1fr; text-align: left; }
  .event-card { flex-direction: column; }
}
