/*
Theme Name: SV Haslach App Theme
Theme URI: https://svhaslach.de
Author: SV Haslach i.K. 1911 e.V.
Description: WordPress-Theme für die neue SVH-Webseite mit App-API, News, Terminen, Abteilungen, Sponsoren und SVH MAG.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: Proprietary
Text Domain: svh
*/

:root {
  --svh-black: #050505;
  --svh-ink: #151515;
  --svh-muted: #707070;
  --svh-soft: #f4f4f5;
  --svh-glass: rgba(255,255,255,.76);
  --svh-border: rgba(255,255,255,.82);
  --svh-silver: #dfe1e5;
  --svh-red: #e51c23;
  --svh-radius-xl: 34px;
  --svh-radius-lg: 24px;
  --svh-shadow: 0 22px 60px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--svh-ink);
  background: linear-gradient(180deg, #fafafa 0%, #e3e5e8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.svh-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.svh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(246,246,247,.76);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.svh-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 86px;
}

.svh-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.svh-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.svh-brand small {
  display: block;
  color: var(--svh-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: -3px;
}

.svh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.svh-nav a {
  border-radius: 999px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
}

.svh-nav a:hover,
.svh-nav .current-menu-item > a {
  background: var(--svh-black);
  color: #fff;
}

.svh-menu-toggle { display: none; }

.svh-hero {
  margin-top: 28px;
  min-height: 510px;
  overflow: hidden;
  position: relative;
  color: #fff;
  border-radius: var(--svh-radius-xl);
  box-shadow: var(--svh-shadow);
  background: #0b0b0d;
}

.svh-hero__media {
  position: absolute;
  inset: 0;
  opacity: .56;
}

.svh-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.18) contrast(1.08);
}

.svh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 44%, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.64) 50%, rgba(0,0,0,.25));
}

.svh-hero__content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  padding: clamp(34px, 7vw, 82px);
}

.svh-kicker {
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.svh-hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: .97;
  letter-spacing: -.055em;
  margin: 18px 0 20px;
}

.svh-lead {
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2vw, 24px);
  max-width: 580px;
}

.svh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.svh-button {
  align-items: center;
  background: #fff;
  border-radius: 18px;
  color: #000;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
}

.svh-button--dark {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.svh-section {
  margin: clamp(34px, 6vw, 74px) 0;
}

.svh-section__head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.svh-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0;
}

.svh-section__link {
  color: var(--svh-muted);
  font-weight: 800;
}

.svh-eyebrow {
  color: var(--svh-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.svh-grid {
  display: grid;
  gap: 18px;
}

.svh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.svh-card {
  background: var(--svh-glass);
  border: 1px solid var(--svh-border);
  border-radius: var(--svh-radius-lg);
  box-shadow: 0 14px 44px rgba(0,0,0,.08);
  overflow: hidden;
}

.svh-card__body { padding: 20px; }
.svh-card__media {
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.svh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svh-card__logo {
  align-items: center;
  background: linear-gradient(135deg, #fff, #dfe1e5);
  display: flex;
  justify-content: center;
}
.svh-card__logo img {
  width: 42%;
  height: 42%;
  object-fit: contain;
}

.svh-card h3 {
  font-size: 22px;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 8px;
}

.svh-card p,
.svh-card time {
  color: var(--svh-muted);
  font-size: 15px;
}

.svh-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.svh-live {
  background: #fff;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  box-shadow: var(--svh-shadow);
  padding: clamp(20px, 4vw, 34px);
}

.svh-live__label {
  align-items: center;
  color: var(--svh-muted);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.svh-live__label::before {
  background: var(--svh-red);
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

.svh-department {
  min-height: 190px;
  padding: 24px;
}

.svh-department__icon {
  align-items: center;
  background: #000;
  border-radius: 18px;
  color: #fff;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin-bottom: 20px;
  width: 58px;
}

.svh-event-card {
  align-items: stretch;
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 180px;
}

.svh-event-card__date {
  align-items: center;
  background: #080808;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svh-event-card__date strong { font-size: 38px; line-height: 1; }
.svh-event-card__date span { color: rgba(255,255,255,.62); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.svh-sponsor-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.svh-sponsor {
  align-items: center;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 170px;
  padding: 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.svh-sponsor:hover { box-shadow: var(--svh-shadow); transform: translateY(-3px); }
.svh-sponsor img { height: 82px; max-width: 180px; object-fit: contain; }
.svh-sponsor span { font-size: 14px; font-weight: 850; }

.svh-promo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svh-promo {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px;
}

.svh-promo h2 { font-size: 36px; margin: 6px 0 10px; }
.svh-promo p { color: var(--svh-muted); }
.svh-promo .svh-button { align-self: flex-start; margin-top: auto; }
.svh-promo__icon { align-items: center; background: #000; border-radius: 20px; color: #fff; display: flex; font-size: 18px; font-weight: 950; height: 64px; justify-content: center; margin-bottom: 42px; width: 64px; }
.svh-promo--dark { background: #080808; color: #fff; }
.svh-promo--dark p, .svh-promo--dark .svh-eyebrow { color: rgba(255,255,255,.62); }
.svh-promo--dark .svh-promo__icon { background: #fff; color: #000; }
.svh-promo--instagram { background: linear-gradient(145deg, #feda75, #fa7e1e 30%, #d62976 58%, #962fbf 78%, #4f5bd5); color: #fff; }
.svh-promo--instagram p, .svh-promo--instagram .svh-eyebrow { color: rgba(255,255,255,.82); }

.svh-contact {
  align-items: center;
  background: #050505;
  border-radius: 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 54px);
}

.svh-contact p { color: rgba(255,255,255,.68); }
.svh-empty { align-items: center; background: rgba(255,255,255,.7); border: 1px solid #fff; border-radius: 22px; display: flex; gap: 18px; min-height: 150px; padding: 24px; }
.svh-empty img { height: 64px; object-fit: contain; width: 64px; }
.svh-empty h3 { margin: 0 0 5px; }
.svh-empty p { color: var(--svh-muted); margin: 0; }

.svh-archive, .svh-content-page { padding-top: 48px; padding-bottom: 40px; }
.svh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.svh-filter a { background: rgba(255,255,255,.7); border: 1px solid #fff; border-radius: 999px; font-size: 14px; font-weight: 800; padding: 9px 14px; }
.svh-filter a.is-active { background: #000; color: #fff; }
.svh-page-header { background: #090909; border-radius: 30px; color: #fff; margin-bottom: 28px; padding: clamp(30px, 6vw, 64px); }
.svh-page-header h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -.05em; line-height: 1; margin: 6px 0 0; }
.svh-lead-dark { color: rgba(255,255,255,.7); max-width: 720px; }
.svh-content-image { border-radius: 28px; max-height: 600px; overflow: hidden; }
.svh-content-image img { height: 100%; object-fit: cover; width: 100%; }
.svh-prose { background: rgba(255,255,255,.8); border: 1px solid #fff; border-radius: 28px; font-size: 18px; margin-top: 22px; padding: clamp(24px, 5vw, 56px); }
.svh-prose > * { max-width: 820px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.page-numbers { background: #fff; border-radius: 12px; padding: 9px 13px; }
.page-numbers.current { background: #000; color: #fff; }

.svh-footer {
  background: #050505;
  color: #fff;
  margin-top: 80px;
  padding: 46px 0;
}

.svh-footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 2fr 1fr 1fr;
}

.svh-footer a,
.svh-footer p {
  color: rgba(255,255,255,.72);
}

@media (max-width: 860px) {
  .svh-header__inner { min-height: 74px; }
  .svh-menu-toggle { background: #000; border: 0; border-radius: 14px; display: grid; gap: 4px; margin-left: auto; padding: 12px; }
  .svh-menu-toggle > span:not(.screen-reader-text) { background: #fff; border-radius: 2px; display: block; height: 2px; width: 22px; }
  .svh-nav { align-items: stretch; background: rgba(248,248,249,.98); border-bottom: 1px solid rgba(0,0,0,.08); display: none; flex-direction: column; left: 0; padding: 14px; position: absolute; right: 0; top: 74px; }
  .svh-nav.is-open { display: flex; }
  .svh-grid--3,
  .svh-grid--4,
  .svh-footer__grid,
  .svh-promo-grid { grid-template-columns: 1fr; }
  .svh-sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svh-contact { align-items: flex-start; flex-direction: column; }
  .svh-hero { min-height: 470px; }
}

@media (max-width: 520px) {
  .svh-page { width: min(100% - 20px, 1180px); }
  .svh-brand img { height: 48px; width: 48px; }
  .svh-brand { font-size: 15px; }
  .svh-hero { border-radius: 26px; min-height: 520px; }
  .svh-hero__content { padding: 30px 24px; }
  .svh-sponsor-grid { grid-template-columns: 1fr 1fr; }
  .svh-sponsor { min-height: 140px; padding: 14px; }
  .svh-event-card { grid-template-columns: 78px 1fr; }
}
