/*
Theme Name: Angelverein Eldetal
Theme URI: https://example.invalid/angelverein-eldetal
Author: VDSF Angelverein Eldetal e.V.
Description: Schlankes, barrierearmes und responsives Vereinseigenes WordPress-Theme ohne Abhängigkeiten.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: eldetal
License: GNU General Public License v2 or later
*/

:root {
  --forest-950: #071b13;
  --forest-900: #0b261b;
  --forest-850: #0f3022;
  --forest-800: #123c2a;
  --forest-700: #1c553d;
  --forest-100: #dfe8df;
  --ivory: #f7f5ee;
  --surface: #fffefa;
  --paper-soft: #eef2ec;
  --brass: #d6b45e;
  --brass-light: #e6cb83;
  --ink: #15231c;
  --muted: #536159;
  --line: #cdd8ce;
  --on-dark: #f8f8f3;
  --on-dark-muted: #c9d6ce;
  --warning-bg: #fff1c7;
  --warning-border: #8b5b00;
  --warning-text: #382500;
  --radius-sm: .625rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --shadow-soft: 0 1.5rem 4rem rgba(0, 0, 0, .18);
  --content: 74rem;
  --reading: 48rem;
  --gutter: clamp(1rem, 3vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  color-scheme: light;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  color: var(--ink);
  background: var(--forest-950);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1rem, .975rem + .125vw, 1.075rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--forest-700);
  text-decoration-thickness: .09em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--forest-900);
  text-decoration-thickness: .13em;
}

:focus-visible {
  outline: .2rem solid var(--brass-light);
  outline-offset: .2rem;
}

::selection {
  color: var(--forest-950);
  background: var(--brass-light);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1rem;
  clip: auto;
  border-radius: var(--radius-sm);
  color: var(--forest-950);
  background: var(--brass-light);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .28);
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--on-dark);
  background: rgba(7, 27, 19, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(.75rem);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  min-height: 5rem;
  margin-inline: auto;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .875rem;
  color: var(--on-dark);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-decoration: none;
}

.brand:hover {
  color: var(--on-dark);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: var(--forest-950);
  background: var(--brass);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: -.03em;
  box-shadow: inset 0 0 0 .2rem rgba(7, 27, 19, .11);
}

.brand-name {
  display: block;
  max-width: 25rem;
}

.brand small {
  display: block;
  margin-top: .3rem;
  color: var(--on-dark-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav .menu,
.site-nav > .menu > ul {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .menu a,
.site-nav > .menu > ul a {
  position: relative;
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .55rem .72rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark);
  font-size: .925rem;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav .menu a:hover,
.site-nav .menu a:focus-visible,
.site-nav > .menu > ul a:hover,
.site-nav > .menu > ul a:focus-visible {
  color: var(--on-dark);
  background: rgba(255, 255, 255, .1);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--brass-light);
  box-shadow: inset 0 -.15rem 0 var(--brass);
}

.menu-toggle {
  display: none;
  min-width: 3.25rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: var(--forest-950);
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.site-main {
  min-height: 62vh;
  padding: clamp(1rem, 3vw, 2.25rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 180, 94, .07), transparent 24rem),
    var(--forest-950);
}

.home .site-main {
  padding-top: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(28rem, 1.1fr);
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  min-height: clamp(34rem, calc(100svh - 7rem), 46rem);
  margin-inline: auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  color: var(--on-dark);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 11%;
  left: -11rem;
  width: 22rem;
  height: 22rem;
  content: "";
  border: 1px solid rgba(214, 180, 94, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(214, 180, 94, .035), 0 0 0 7rem rgba(214, 180, 94, .025);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.15rem;
  color: var(--brass-light);
  font-size: .775rem;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: .125rem;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(2.75rem, 6.1vw, 5.35rem);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.hero p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--on-dark-muted);
  font-size: clamp(1.075rem, 1rem + .35vw, 1.3rem);
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  height: clamp(26rem, 61vh, 39rem);
}

.hero-visual::after {
  position: absolute;
  z-index: -1;
  right: -1rem;
  bottom: -1rem;
  width: 72%;
  height: 78%;
  content: "";
  border: 1px solid rgba(214, 180, 94, .55);
  border-radius: 9rem 1.25rem 9rem 1.25rem;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10rem 1.25rem 10rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.hero-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: end start;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(214, 180, 94, .45);
  border-radius: 10rem 1.25rem 10rem 1.25rem;
  color: var(--brass-light);
  background: linear-gradient(145deg, var(--forest-700), var(--forest-900));
  box-shadow: var(--shadow-soft);
}

.hero-fallback span {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.65rem;
  padding: .75rem 1.15rem;
  border: .125rem solid var(--brass);
  border-radius: var(--radius-sm);
  color: var(--forest-950) !important;
  background: var(--brass);
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 .45rem 1.2rem rgba(0, 0, 0, .16);
}

.button::after {
  margin-left: .65rem;
  content: "→";
  font-size: 1.15em;
}

.button:hover,
.wp-block-button__link:hover {
  color: var(--forest-950) !important;
  background: var(--brass-light);
  border-color: var(--brass-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.content-wrap {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: clamp(2.25rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 5rem);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  box-shadow: var(--shadow-soft);
}

.home .content-wrap {
  position: relative;
  z-index: 4;
  margin-top: clamp(1rem, 3vw, 2.5rem);
}

.entry-header {
  max-width: var(--reading);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.entry-title {
  margin: 0;
  color: var(--forest-900);
  font-size: clamp(2.25rem, 5.2vw, 4.65rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.entry-content {
  max-width: var(--reading);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--forest-900);
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.entry-content > h2 {
  margin: 2.4em 0 .65em;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.entry-content > h3 {
  margin: 2em 0 .55em;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-block: 1.1rem;
}

.entry-content li + li {
  margin-top: .45rem;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.35rem;
  border-left: .25rem solid var(--brass);
  color: var(--forest-800);
  font-size: 1.1em;
}

.entry-content .wp-block-image {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  box-shadow: 0 1rem 2.5rem rgba(7, 27, 19, .14);
}

.entry-content .wp-block-image img {
  width: 100%;
}

.wp-block-image figcaption {
  margin: 0;
  padding: .7rem 1rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: left;
}

.entry-content .wp-block-columns {
  gap: clamp(1rem, 3vw, 2rem);
  margin: 2rem 0;
}

.entry-content .wp-block-column {
  min-width: 0;
}

.card,
.entry-content .is-style-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  box-shadow: 0 .5rem 1.5rem rgba(7, 27, 19, .055);
}

.card > *:first-child,
.entry-content .is-style-card > *:first-child {
  margin-top: 0;
}

.card > *:last-child,
.entry-content .is-style-card > *:last-child {
  margin-bottom: 0;
}

.event-list {
  display: grid;
  gap: .875rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.event-list li::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: .35rem;
  content: "";
  background: var(--forest-700);
}

.event-list strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--forest-900);
  font-size: 1.125rem;
  line-height: 1.35;
}

.event-list time {
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: 17rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.contact-list {
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-placeholder {
  padding: 1rem 1.125rem;
  border: .125rem solid var(--warning-border);
  border-radius: var(--radius-sm);
  color: var(--warning-text);
  background: var(--warning-bg);
  font-weight: 730;
}

.legal-note {
  padding: 1rem 1.125rem;
  border-left: .3rem solid var(--forest-700);
  border-radius: var(--radius-sm);
  color: var(--forest-900);
  background: var(--forest-100);
}

.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: .75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  color: var(--on-dark);
  background: var(--forest-800);
}

.entry-content input:not([type="checkbox"]):not([type="radio"]),
.entry-content select,
.entry-content textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .8rem;
  border: .125rem solid #77867d;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
}

.entry-content textarea {
  min-height: 9rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.required-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.form-field {
  display: grid;
  gap: .4rem;
}

.form-field label,
.form-consent label {
  color: var(--forest-900);
  font-weight: 750;
}

.form-field .optional {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--forest-700);
  outline: .2rem solid rgba(28, 85, 61, .22);
  outline-offset: .1rem;
}

.form-consent {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: .7rem;
  align-items: start;
}

.form-consent input {
  width: 1.35rem;
  height: 1.35rem;
  margin: .2rem 0 0;
  accent-color: var(--forest-700);
}

.form-consent label {
  font-weight: 560;
}

.form-submit {
  display: inline-flex;
  width: fit-content;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.2rem;
  border: .125rem solid var(--forest-800);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
  background: var(--forest-800);
  font-weight: 800;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.form-message {
  margin: 1.5rem 0;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-sm);
}

.form-message:focus {
  outline: .2rem solid var(--brass);
  outline-offset: .15rem;
}

.form-message ul {
  margin-bottom: 0;
}

.form-error {
  color: #4b1111;
  background: #fde8e7;
  border-left: .35rem solid #9f2727;
}

.form-success {
  color: var(--forest-900);
  background: var(--forest-100);
  border-left: .35rem solid var(--forest-700);
}

.contact-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.site-footer {
  color: var(--on-dark);
  background: var(--forest-900);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  align-items: start;
  gap: 2rem 4rem;
}

.site-footer p {
  margin: 0;
}

.footer-legal {
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem 1rem;
  margin-bottom: .45rem;
}

.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--on-dark);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--brass-light);
}

.site-footer small {
  color: var(--on-dark-muted);
}

@media (max-width: 68rem) {
  .hero {
    grid-template-columns: minmax(0, .85fr) minmax(24rem, 1.15fr);
    gap: 2.25rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 6.6vw, 4.75rem);
  }
}

@media (max-width: 80rem) {
  .header-inner {
    min-height: 4.5rem;
    gap: .75rem;
  }

  .brand-mark {
    flex-basis: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: .55rem var(--gutter) 1rem;
    background: var(--forest-900);
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .3);
  }

  .menu-js .site-nav:not(.is-open) {
    display: none;
  }

  .site-nav .menu,
  .site-nav > .menu > ul {
    display: grid;
    align-items: stretch;
  }

  .site-nav .menu a,
  .site-nav > .menu > ul a {
    min-height: 3rem;
    padding-inline: .85rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 3.5rem 0 4rem;
    gap: 1.5rem;
  }

  .hero-inner {
    padding: 0;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-visual {
    height: clamp(20rem, 58vw, 31rem);
  }

  .hero-visual img {
    border-radius: 6rem 1rem 6rem 1rem;
  }

  .hero-visual::after {
    right: -.5rem;
    bottom: -.5rem;
    border-radius: 5.5rem 1rem 5.5rem 1rem;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

@media (max-width: 46rem) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .brand-name {
    max-width: min(16rem, 52vw);
    font-size: .94rem;
  }

  .brand small {
    display: none;
  }

  .site-main {
    padding-bottom: 2.5rem;
  }

  .content-wrap {
    padding: 2.25rem clamp(1rem, 5vw, 1.5rem);
    border-radius: 1.15rem;
  }

  .entry-content .wp-block-columns {
    display: grid;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 30rem) {
  .brand-mark {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand-name {
    max-width: 45vw;
    font-size: .86rem;
  }

  .menu-toggle {
    min-width: 3rem;
    padding-inline: .65rem;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .hero-visual {
    height: 17rem;
  }

  .button,
  .wp-block-button__link,
  .form-submit {
    width: 100%;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #76857b;
    --muted: #39473f;
    --on-dark-muted: #eef3ef;
  }

  .site-header,
  .site-footer {
    border-color: rgba(255, 255, 255, .45);
  }

  .content-wrap,
  .card,
  .entry-content .is-style-card,
  .event-list li {
    border-width: .125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .wp-block-button__link:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .button,
  .wp-block-button__link,
  .legal-note,
  .legal-placeholder {
    color: ButtonText !important;
    background: Canvas;
    border: 2px solid ButtonText;
  }

  .site-nav .current-menu-item > a,
  .site-nav .current_page_item > a {
    text-decoration: underline;
  }
}

@media print {
  body,
  .site-main,
  .content-wrap {
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  .site-header,
  .site-footer,
  .button,
  .wp-block-button__link {
    display: none !important;
  }

  .content-wrap {
    width: 100%;
    padding: 0;
    border: 0;
  }

  a {
    color: #000;
  }
}
