/*
Theme Name: Web Verein Ruhig
Theme URI: https://example.invalid/
Author: Web-Verein Projekt
Description: Ruhige Gestaltungsalternative für Wir in Müddersheim. Eigenständiges Vergleichs-Theme auf Basis von Web Verein 0.2.0; Inhalte und Bildmotiv des Hero-Banners bleiben unverändert.
Version: 0.11.3
Requires at least: 6.6
Requires PHP: 8.1
Template: web-verein
Text Domain: web-verein-ruhig
*/

/*
 * DINish wird direkt aus dem Theme geladen. Die Definitionen liegen bewusst
 * im Haupt-Stylesheet, damit sie unabhängig vom Customizer verfügbar sind.
 */
@font-face {
  font-family: "DINish";
  src: url("../fonts/dinish/DINish-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DINish";
  src: url("../fonts/dinish/DINish-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DINish";
  src: url("../fonts/dinish/DINish-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "DINish";
  src: url("../fonts/dinish/DINish-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DINish";
  src: url("../fonts/dinish/DINish-Heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --wim-blue: #30383d;
  --wim-blue-hover: #59636a;
  --wim-red: #d71832;
  --wim-red-hover: #b81229;
  --wim-ink: #485158;
  --wim-muted: #626b70;
  --wim-paper: #fafafa;
  --wim-soft: #eeeeec;
  --wim-footer: #dfdfdf;
  --wim-footer-light: #e9e9e9;
  --wim-footer-dark: #d6d6d6;
  --wim-footer-link: #37434a;
  --wim-button: #3b454b;
  --wim-nav-start: #2f3438;
  --wim-nav-end: #59636a;
  --wim-border: #d7d8d8;
  --wim-radius: .4rem;
  --wim-shadow: 0 12px 32px rgba(42, 49, 51, .07);
  --wim-shell-width: 82vw;
  --wim-content: 1680px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wim-ink);
  background: var(--wim-paper);
  font-family: "DINish", Arial, sans-serif;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--wim-blue); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #111;
  display: block; font-size: 14px; height: auto; left: 8px; padding: 14px 18px;
  top: 8px; width: auto; z-index: 100000;
}

.wim-shell { width: min(var(--wim-shell-width), var(--wim-content)); margin-inline: auto; }
.wim-site-header {
  position: relative;
  background: var(--wim-paper);
  z-index: 50;
}
.wim-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; }
.wim-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; min-width: 180px; }
.wim-brand .custom-logo { max-height: 62px; width: auto; }
.wim-brand-text {
  font-family: "DINish", Arial, sans-serif;
  font-weight: 700;
  color: var(--wim-blue);
  font-size: 1.2rem;
}

.wim-nav-toggle {
  display: none;
  border: 1px solid var(--wim-blue);
  border-radius: var(--wim-radius);
  padding: .7rem 1rem;
  background: var(--wim-blue);
  color: #fff;
  font-weight: 700;
}
.wim-main-nav ul, .wim-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.wim-main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem .85rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: transparent;
  color: var(--wim-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.15;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.wim-main-nav a:hover, .wim-main-nav a:focus-visible {
  background: #edf2f7;
  border-color: #dce3ea;
  color: var(--wim-blue-hover);
}
.wim-main-nav .current-menu-item > a, .wim-main-nav .current_page_item > a {
  color: var(--wim-blue-hover);
  box-shadow: inset 0 -2px 0 var(--wim-red);
}

.wim-button, .wp-block-button__link, .wim-year-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 40px; padding: .55rem .85rem; border-radius: var(--wim-radius);
  border: 1px solid var(--wim-button); background: var(--wim-button); color: #fff;
  text-decoration: none; font-size: .94rem; font-weight: 600; line-height: 1.15; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.wim-button:hover, .wim-button:focus-visible,
.wp-block-button__link:hover, .wp-block-button__link:focus-visible,
.wim-year-link:hover, .wim-year-link:focus-visible {
  background: var(--wim-blue-hover); border-color: var(--wim-blue-hover); color: #fff;
  transform: translateY(-1px); box-shadow: 0 5px 14px rgba(48,75,95,.14);
}

.wim-hero { overflow: hidden; background: var(--wim-paper); }
.wim-hero--banner { line-height: 0; }
.wim-hero-banner { width: min(100%, 1853px); margin-inline: auto; background: var(--wim-paper); }
.wim-hero-banner img { display: block; width: 100%; height: auto; }

.wim-hero--navigation { padding-block: 1rem 1.5rem; background: var(--wim-paper); }
.wim-hero-card { border-radius: .7rem; overflow: visible; box-shadow: var(--wim-shadow); }
.wim-hero-visual {
  min-height: clamp(300px, 30vw, 420px);
  background-image: var(--wim-hero-background);
  background-repeat: no-repeat;
  background-position: center 48%;
  background-size: cover;
  border-radius: .7rem .7rem 0 0;
}
.wim-hero-visual.wim-hero-visual--wide {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 2008 / 442;
  background-size: cover;
  background-position: center;
}
.wim-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wim-hero-nav-band {
  position: relative;
  z-index: 2;
  min-height: 72px;
  margin-top: -72px;
  padding-inline: 1.1rem;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--wim-nav-start) 0%, var(--wim-nav-end) 100%);
  border-top: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
}
.wim-hero-nav-label { display: none; color: #fff; font: 700 1.2rem/1 "DINish",Arial,sans-serif; }
.wim-hero-nav { width: 100%; }
.wim-hero-nav ul { width: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; }
.wim-hero-nav li + li { border-left: 1px solid rgba(248,245,239,.18); }
.wim-hero-nav a {
  width: 100%;
  min-height: 72px;
  padding: .7rem .65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .94rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.wim-hero-nav a:hover, .wim-hero-nav a:focus-visible { background: rgba(255,255,255,.07); border-color: transparent; color: #fff; }
.wim-hero-nav .current-menu-item > a, .wim-hero-nav .current_page_item > a { color: #fff; box-shadow: inset 0 -4px 0 var(--wim-red); }

.wim-section { padding-block: 4.25rem; }
.wim-section--soft { background: transparent; }
.wim-section-title {
  margin: 0 0 .5rem;
  font-family: "DINish", Arial, sans-serif;
  color: var(--wim-blue);
  font-size: clamp(1.7rem,3vw,2.5rem);
  line-height: 1.2;
}
.wim-section-lead { margin: 0 0 2.1rem; color: var(--wim-muted); max-width: 760px; }
.wim-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.3rem; }
.wim-card {
  background: transparent;
  border: 0;
  border-radius: .65rem;
  overflow: hidden;
  box-shadow: none;
}
.wim-card-body { padding: 1.4rem; }
.wim-card h2, .wim-card h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "DINish", Arial, sans-serif;
  color: var(--wim-blue);
}
.wim-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--wim-paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wim-card-media img { width: 100%; height: 100%; object-fit: contain; }
.wim-media-credit {
  position: absolute;
  right: .45rem;
  bottom: .4rem;
  max-width: calc(100% - .9rem);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wim-ink);
  font-size: clamp(.54rem, .7vw, .66rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}
.wim-placeholder-label { color: var(--wim-blue); font-weight: 700; }
.wim-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: .35rem 0 1rem; color: var(--wim-muted); font-size: .94rem; }
.wim-event-feature { display: grid; grid-template-columns: minmax(240px,.5fr) minmax(0,1.5fr); gap: 0; align-items: stretch; }
.wim-event-feature .wim-card-media { aspect-ratio: auto; min-height: 320px; }
.wim-event-feature .wim-card-body { padding: clamp(1.5rem,4vw,3rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.wim-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--wim-red); }

.wim-content { padding-block: 3rem 4rem; }
.wim-content > * { width: 100%; max-width: none; }
.wim-content > .alignwide { max-width: var(--wim-content); }
.wim-page-header { padding: 2.8rem 0 1.3rem; }
.wim-page-title { margin: 0; font: 700 clamp(2rem,4vw,3.2rem)/1.1 "DINish",Arial,sans-serif; color: var(--wim-blue); }
.wim-page-intro { margin: .6rem 0 0; color: var(--wim-muted); max-width: 800px; }

.wim-event-list { display: grid; gap: 1.25rem; }
.wim-event-row { display: grid; grid-template-columns: minmax(280px,.42fr) minmax(0,1fr); border: 0; border-radius: .65rem; overflow: hidden; background: transparent; box-shadow: none; }
.wim-event-row .wim-card-media {
  align-self: start;
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.wim-event-row .wim-card-body { padding: 1.35rem; }
.wim-event-row .wim-card-body > p,
.wim-event-feature .wim-card-body > p { max-width: 72ch; }
.wim-archive-link { margin-top: 2rem; }
.wim-event-content { padding-top: 1rem; }
.wim-archive-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1.5rem 0 2rem; }
.wim-year-link.is-active { background: var(--wim-blue-hover); border-color: var(--wim-blue-hover); }

.wim-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
}
.wim-activity-card h2 {
  margin: 0 0 1rem;
  color: var(--wim-blue);
  font-family: "DINish", Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}
.wim-activity-card {
  padding: var(--tuning-card-space, 1rem);
  background: var(--wim-soft);
  border-radius: .65rem;
  box-shadow: 0 8px 24px rgba(42, 49, 51, .08);
}
.wim-activity-copy > :first-child { margin-top: 0; }
.wim-activity-copy > :last-child { margin-bottom: 0; }
.wim-activity-copy strong { color: var(--wim-blue); }

.wim-site-footer {
  margin-top: 2rem;
  overflow: hidden;
  color: var(--wim-ink);
  border-top: 4px solid var(--wim-red);
  background-color: var(--wim-footer);
  background-image:
    radial-gradient(circle at 15% 30%, rgba(233,233,233,.82) 0, rgba(233,233,233,0) 38%),
    radial-gradient(circle at 82% 72%, rgba(214,214,214,.58) 0, rgba(214,214,214,0) 42%),
    linear-gradient(115deg, var(--wim-footer-dark) 0%, var(--wim-footer) 42%, var(--wim-footer-light) 68%, var(--wim-footer) 100%);
}
.wim-footer-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.25rem,3vw,3rem);
}
.wim-footer-copy { margin: 0; opacity: .9; }
.wim-footer-nav a {
  display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .35rem;
  background: transparent; color: var(--wim-footer-link); text-decoration: underline; text-underline-offset: .18em; font-weight: 600;
  border: 0; border-radius: 0;
  transition: color .18s ease;
}
.wim-footer-nav a:hover, .wim-footer-nav a:focus-visible {
  background: transparent; color: var(--wim-blue-hover); text-decoration-thickness: .12em; transform: none;
}

.wim-admin-hint { padding: 1rem; border: 1px dashed var(--wim-border); background: #fff; color: var(--wim-muted); }

.wim-dorftroedel-map {
  max-width: none;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wim-border);
}
.wim-dorftroedel-map .wp-block-image { margin: 1.4rem 0 1rem; }
.wim-map-figure img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  border: 1px solid var(--wim-border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 49, 51, .08);
}
.wim-dorftroedel-map figcaption { color: var(--wim-muted); font-size: .9rem; }
.wim-map-print-note { color: var(--wim-muted); font-size: .95rem; }

.wim-satzung-2022 { margin-top: 1rem; }
.wim-satzung-2022 h3 { margin: 2.5rem 0 .8rem; }
.wim-satzung-2022 > ol,
.wim-satzung-2022 li > ol { padding-left: 1.75rem; }
.wim-satzung-2022 li { margin-bottom: .7rem; }
.wim-satzung-2022 li > p { margin: .7rem 0; }
.wim-satzung-alpha { list-style-type: lower-alpha; }
.wim-satzung-note {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--wim-red);
  background: var(--wim-soft);
}
.wim-home-progress .wp-block-heading {
  margin: 0;
  color: var(--wim-blue);
  font-family: "DINish", Arial, sans-serif;
  font-size: clamp(1.7rem,3vw,2.5rem);
  line-height: 1.2;
}
.wim-membership-cta { padding-top: 1rem; }
.wim-membership-cta p { max-width: 72ch; }
.wim-membership-contact a {
  color: var(--wim-blue);
  text-decoration: underline;
  text-underline-offset: .16em;
}
.wim-team-pattern { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.wim-team-name { margin: 0 0 .25rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.wim-team-role { margin: 0 0 .8rem; color: var(--wim-muted); font-size: 1.05rem; }
.wim-team-portrait-placeholder {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--wim-border);
  background: var(--wim-soft);
  color: var(--wim-muted);
}
.wim-pattern-note { color: var(--wim-muted); font-size: .95rem; }

@media (max-width: 900px) {
  .wim-hero--navigation { overflow: visible; }
  .wim-header-inner { min-height: 72px; align-items: center; }
  .wim-nav-toggle { display: inline-flex; }
  .wim-main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--wim-paper); border-bottom: 1px solid var(--wim-border); padding: 1rem; box-shadow: 0 10px 20px rgba(42,49,51,.08); }
  .wim-main-nav.is-open { display: block; }
  .wim-main-nav ul { flex-direction: column; width: min(calc(100% - 2rem), var(--wim-content)); margin: auto; }
  .wim-main-nav a { width: 100%; }
  .wim-grid { grid-template-columns: 1fr 1fr; }
  .wim-event-feature { grid-template-columns: 1fr; }
  .wim-event-feature .wim-card-body { padding: 1.5rem 0 0; }
  .wim-event-row { grid-template-columns: 210px 1fr; }
  .wim-activity-grid { grid-template-columns: 1fr; }
  .wim-footer-inner { align-items: flex-start; flex-direction: column; }
  .wim-hero--navigation { padding-top: .75rem; }
  .wim-hero-visual { min-height: clamp(245px, 48vw, 350px); background-position: center center; }
  .wim-hero-nav-band { min-height: 64px; margin-top: 0; justify-content: space-between; border-radius: 0; }
  .wim-hero-nav-label { display: inline-block; }
  .wim-hero-nav-band .wim-nav-toggle { display: inline-flex; min-height: 42px; background: transparent; border-color: rgba(255,255,255,.48); }
  .wim-hero-nav {
    display: none !important;
    position: absolute;
    z-index: 100;
    left: 0;
    right: 0;
    top: 64px;
    padding: 0;
    background: linear-gradient(90deg, var(--wim-nav-start) 0%, var(--wim-nav-end) 100%);
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 12px 24px rgba(42,49,51,.16);
  }
  .wim-nav-toggle[aria-expanded="true"] + .wim-hero-nav,
  .wim-hero-nav.is-open {
    display: block !important;
    padding: .65rem;
  }
  .wim-hero-nav ul { display: flex; width: 100%; }
  .wim-hero-nav li + li { border-left: 0; }
  .wim-hero-nav a { min-height: 48px; color: #fff; }
}

@media print {
  .wim-dorftroedel-map .wp-block-button { display: none; }
  .wim-map-figure img { width: 100%; max-height: 235mm; object-fit: contain; box-shadow: none; }
}

@media (max-width: 1200px) {
  .wim-shell { width: min(calc(100% - 2rem), var(--wim-content)); }
}

@media (max-width: 620px) {
  .wim-shell { width: min(calc(100% - 1.25rem), var(--wim-content)); }
  .wim-brand-text { font-size: 1rem; }
  .wim-grid { grid-template-columns: 1fr; }
  .wim-event-row { grid-template-columns: 1fr; }
  .wim-event-row .wim-card-body { padding: 1.5rem 0 0; }
  .wim-footer-nav ul { flex-direction: column; align-items: stretch; width: 100%; }
  .wim-footer-nav a { width: 100%; }
  .wim-team-pattern { flex-direction: column; align-items: stretch; }
  .wim-team-pattern > .wp-block-column { width: 100%; flex-basis: auto !important; }
  .wim-button, .wp-block-button__link, .wim-year-link { min-height: 44px; }
}
