/*
Theme Name: Zeltlager 2027
Theme URI: https://zeltlager27.de/
Author: Freiwillige Feuerwehr der Stadt Diepholz
Description: WordPress-Theme fuer das 44. Kreiszeltlager der Jugendfeuerwehren im Landkreis Diepholz 2027.
Version: 1.0.10
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: zeltlager27
*/

@font-face {
  font-display: swap;
  font-family: "ZL27-BluesSmile";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/ZL27-BluesSmile.woff2") format("woff2"),
    url("assets/fonts/ZL27-BluesSmile.woff") format("woff"),
    url("assets/fonts/ZL27-BluesSmile.otf") format("opentype"),
    url("assets/fonts/ZL27-BluesSmile.ttf") format("truetype");
}

:root {
  --zl27-ink: #10182f;
  --zl27-navy: #14255f;
  --zl27-blue: #2e96ff;
  --zl27-blue-dark: #166dcc;
  --zl27-sky: #eaf5ff;
  --zl27-green: #9ecd58;
  --zl27-green-dark: #6f9634;
  --zl27-paper: #f7fbf1;
  --zl27-white: #ffffff;
  --zl27-muted: #5a667f;
  --zl27-line: rgba(20, 37, 95, 0.14);
  --zl27-shadow: 0 18px 45px rgba(20, 37, 95, 0.17);
  --zl27-radius: 8px;
  --zl27-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zl27-paper);
  color: var(--zl27-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--zl27-blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--zl27-white);
  color: var(--zl27-ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 241, 0.95);
  border-bottom: 1px solid var(--zl27-line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--zl27-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 210px;
  gap: 12px;
  color: var(--zl27-navy);
  text-decoration: none;
  font-weight: 800;
}

.site-branding img {
  width: min(220px, 44vw);
  max-height: 46px;
}

.primary-menu,
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--zl27-navy);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--zl27-blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--zl27-line);
  border-radius: var(--zl27-radius);
  background: var(--zl27-white);
  box-shadow: none;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--zl27-navy);
  content: "";
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -7px;
}

.menu-toggle-bars::after {
  top: 7px;
}

.site-header.is-menu-open .menu-toggle-bars {
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle-bars::before {
  transform: translateY(7px) rotate(90deg);
}

.site-header.is-menu-open .menu-toggle-bars::after {
  opacity: 0;
}

.nav-cta a,
.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--zl27-radius);
  background: var(--zl27-green);
  color: var(--zl27-navy);
  box-shadow: 0 8px 18px rgba(158, 205, 88, 0.26);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.site-header .menu-toggle {
  display: none;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--zl27-line);
  border-radius: var(--zl27-radius);
  background: var(--zl27-white);
  box-shadow: none;
}

.button.secondary {
  background: var(--zl27-blue);
  color: var(--zl27-white);
  box-shadow: 0 8px 18px rgba(46, 150, 255, 0.2);
}

.button.light {
  background: var(--zl27-white);
  color: var(--zl27-navy);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--zl27-white);
  background:
    linear-gradient(112deg, rgba(12, 27, 42, 0.94), rgba(22, 50, 74, 0.86)),
    radial-gradient(circle at 14% 20%, rgba(158, 205, 88, 0.3), transparent 32%),
    linear-gradient(135deg, var(--zl27-navy), var(--zl27-blue));
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -16vw;
  width: 48vw;
  min-width: 420px;
  aspect-ratio: 1;
  background: url("assets/logo.svg") center/contain no-repeat;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  width: min(var(--zl27-max), calc(100% - 32px));
  min-height: clamp(560px, 74vh, 760px);
  margin: 0 auto;
  padding: 72px 0 84px;
  gap: clamp(28px, 6vw, 76px);
}

.hero-inner > * {
  min-width: 0;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--zl27-green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  max-width: 920px;
  color: inherit;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.hero-lead {
  max-width: 770px;
  margin: 24px 0 0;
  color: var(--zl27-sky);
  font-size: clamp(18px, 2vw, 22px);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.wp-block-buttons.hero-actions {
  display: flex;
}

.hero-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--zl27-radius);
  background: rgba(255, 255, 255, 0.1);
}

.fact strong {
  display: block;
  color: var(--zl27-white);
  font-size: 28px;
  line-height: 1.15;
}

.fact span {
  display: block;
  color: var(--zl27-sky);
  font-weight: 700;
}

.fact p {
  margin: 0;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section.alt {
  background: var(--zl27-white);
}

.section.dark {
  background: var(--zl27-navy);
  color: var(--zl27-white);
}

.section-inner,
.site-main {
  width: min(var(--zl27-max), calc(100% - 32px));
  margin: 0 auto;
}

.wp-block-group.section,
.wp-block-group.hero,
.wp-block-group.section-inner,
.wp-block-group.hero-inner,
.wp-block-group.grid,
.wp-block-group.hero-facts {
  margin-block-start: 0;
  margin-block-end: 0;
}

.section-header {
  max-width: 790px;
  margin-bottom: 32px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--zl27-navy);
  font-family: "ZL27-BluesSmile", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.15;
}

.dark h2,
.dark h3,
.dark h4 {
  color: var(--zl27-white);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(31px, 4vw, 48px);
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.lead {
  color: var(--zl27-muted);
  font-size: 20px;
}

.dark .lead {
  color: var(--zl27-sky);
}

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

.card,
.post-card,
.faq-item {
  padding: 24px;
  border: 1px solid var(--zl27-line);
  border-radius: var(--zl27-radius);
  background: var(--zl27-white);
  box-shadow: 0 8px 24px rgba(12, 27, 42, 0.06);
}

.card > :first-child,
.section-header > :first-child {
  margin-top: 0;
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.card p:last-child,
.faq-item p:last-child,
.post-card p:last-child {
  margin-bottom: 0;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
}

.post-card .post-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--zl27-sky);
  overflow: hidden;
}

.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.post-card .post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.post-meta {
  color: var(--zl27-muted);
  font-size: 14px;
  font-weight: 800;
}

.post-card h3 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.post-card h3 a {
  color: var(--zl27-navy);
  text-decoration: none;
}

.entry-content {
  padding: 56px 0 80px;
}

.entry-content > * {
  max-width: 820px;
}

.entry-content > .alignwide {
  max-width: var(--zl27-max);
}

.entry-content h2,
.entry-content h3 {
  margin-top: 36px;
}

.page-hero {
  background: var(--zl27-navy);
  color: var(--zl27-white);
  padding: 64px 0;
}

.page-hero .page-title {
  width: min(var(--zl27-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-footer {
  background: var(--zl27-ink);
  color: var(--zl27-sky);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  width: min(var(--zl27-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  gap: 28px;
}

.footer-menu a,
.site-footer a {
  color: var(--zl27-white);
}

.footer-note {
  margin: 8px 0 0;
  color: rgba(233, 242, 255, 0.78);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--zl27-line);
  border-radius: var(--zl27-radius);
  background: var(--zl27-white);
  color: var(--zl27-ink);
  font: inherit;
}

textarea {
  min-height: 140px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .footer-inner,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
    align-items: center;
    min-height: 68px;
  }

  .site-branding {
    min-width: 0;
  }

  .site-branding img {
    width: min(190px, calc(100vw - 96px));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px;
    border: 1px solid var(--zl27-line);
    border-top: 4px solid var(--zl27-green);
    border-radius: 0 0 var(--zl27-radius) var(--zl27-radius);
    background: rgba(255, 250, 241, 0.98);
    box-shadow: var(--zl27-shadow);
  }

  .site-header.is-menu-open .primary-nav {
    display: block;
  }

  .primary-menu {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .primary-menu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
  }

  .nav-cta a {
    justify-content: center;
    margin-top: 6px;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 64px;
  }

  .hero h1 {
    font-size: clamp(34px, 7.2vw, 52px);
  }

  .grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .site-main,
  .footer-inner,
  .hero-inner,
  .page-hero .page-title {
    width: min(100% - 24px, var(--zl27-max));
  }

  .primary-menu a {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(30px, 9.2vw, 38px);
    overflow-wrap: anywhere;
  }
}
