/* ==========================================================================
   Kasseler Fanhilfe e.V. — Basis-Stylesheet
   Farbpalette: ausschließlich Logo-Rot, Schwarz und Weiß (inkl. Abstufungen)
   ========================================================================== */

:root {
  --color-red: #9c0e0e;
  --color-red-dark: #6e0a0a;
  --color-red-darker: #4a0707;
  --color-black: #111111;
  --color-white: #ffffff;

  --tint-red-05: rgba(156, 14, 14, 0.05);
  --tint-red-08: rgba(156, 14, 14, 0.08);
  --tint-red-15: rgba(156, 14, 14, 0.15);
  --tint-red-30: rgba(156, 14, 14, 0.3);
  --tint-black-05: rgba(17, 17, 17, 0.05);
  --tint-black-10: rgba(17, 17, 17, 0.1);
  --tint-black-60: rgba(17, 17, 17, 0.6);

  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1.2em;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-red);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-black);
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand img {
  height: 104px;
  width: 104px;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--color-black);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-red);
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-red);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle .bar:nth-child(1) { top: 12px; }
.nav-toggle .bar:nth-child(2) { top: 18px; }
.nav-toggle .bar:nth-child(3) { top: 24px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--color-black);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-red);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-white);
  color: var(--color-black);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-red);
}

.hero .container {
  padding-top: 28px;
  padding-bottom: 28px;
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 24px;
  bottom: -70px;
  aspect-ratio: 1 / 1;
  background-image: url("../assets/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-black);
  max-width: 560px;
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    text-align: center;
  }
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--color-red);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-red);
  color: var(--color-white);
  text-decoration: none;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

section.tint {
  background: var(--color-white);
  border-top: 1px solid var(--tint-black-10);
  border-bottom: 1px solid var(--tint-black-10);
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header .eyebrow {
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 10px;
}

.section-header .eyebrow.eyebrow-2x {
  font-size: 1.6rem;
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 2px solid var(--color-red);
  padding: 28px 26px;
  background: var(--color-white);
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---------- News / Aktuelles ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--tint-black-10);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item time {
  font-weight: 700;
  color: var(--color-red);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-item h3 {
  margin-bottom: 8px;
}

.news-item p {
  margin-bottom: 1em;
  color: var(--tint-black-60);
}

.news-item > div > p:last-child,
.news-item ol:last-child + p {
  margin-bottom: 0;
}

.news-item ol {
  margin: 0 0 0 20px;
  padding: 0;
}

.news-item ol li {
  margin-bottom: 12px;
  color: var(--color-black);
}

.news-item ol li:last-child {
  margin-bottom: 0;
}

.news-item ol li::marker {
  color: var(--color-red);
  font-weight: 700;
}

.news-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.news-toggle:hover,
.news-toggle:focus {
  text-decoration: underline;
}

.news-toggle::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.news-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.news-expand {
  margin-top: 16px;
}

.news-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tint-red-08);
  color: var(--color-red);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- Steps (Mitgliedschaft) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 60px;
  border-left: 2px solid var(--tint-red-30);
  margin-left: 20px;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p:last-child {
  margin-bottom: 0;
}

/* ---------- Pricing / Beitrag ---------- */
.price-box {
  border-left: 3px solid var(--color-red);
  padding: 4px 0 2px 24px;
}

.price-box h3 {
  margin-bottom: 2px;
}

.price-box p {
  margin-bottom: 2px;
}

.price-box .amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--color-red);
  margin-bottom: 28px;
}

.price-box .amount span {
  font-size: 1rem;
  color: var(--color-black);
  font-family: var(--font-body);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tint-black-10);
  border: 1px solid #c7c7c7;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-black);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--tint-red-15);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--tint-black-60);
  margin-top: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.checkbox-row label {
  font-weight: 400;
  margin-bottom: 0;
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--tint-red-08);
  border: 1px solid var(--color-red);
  color: var(--color-red-dark);
}

.form-status.error {
  display: block;
  background: #f5e5e5;
  border: 1px solid var(--color-red);
  color: var(--color-red-dark);
}

/* ---------- Contact info blocks ---------- */
.contact-info {
  display: grid;
  gap: 24px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-heading);
}

.contact-info .icon svg {
  width: 20px;
  height: 20px;
}

.contact-info h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info p {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal page ---------- */
.legal-block {
  margin-bottom: 56px;
}

.legal-block h2 {
  border-bottom: 3px solid var(--color-red);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.legal-block h3 {
  margin-top: 28px;
}

.legal-block h4 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-block ol {
  margin: 0 0 1.2em 20px;
  padding: 0;
}

.legal-block ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.legal-block ol li:last-child {
  margin-bottom: 0;
}

.legal-block ol li::marker {
  color: var(--color-red);
  font-weight: 700;
}

.legal-block .legal-notice {
  background: var(--tint-red-05);
  border-left: 3px solid var(--color-red);
  padding: 16px 20px;
  margin-bottom: 1.2em;
}

.legal-block .legal-notice p {
  margin-bottom: 0.8em;
}

.legal-block .legal-notice p:last-child {
  margin-bottom: 0;
}

.placeholder {
  background: var(--tint-red-08);
  border: 1px dashed var(--color-red);
  padding: 1px 6px;
  color: var(--color-red-dark);
  font-style: normal;
  font-weight: 600;
}

.legal-toc {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border: 1px solid var(--tint-black-10);
  padding: 20px 24px;
}

.legal-toc li {
  margin-bottom: 8px;
}

.legal-toc li:last-child {
  margin-bottom: 0;
}

/* ---------- Callout / CTA ---------- */
.callout {
  background: var(--color-white);
  color: var(--color-black);
  border-top: 3px solid var(--color-red);
  border-bottom: 3px solid var(--color-red);
}

.callout .container {
  padding: 56px 24px;
  text-align: center;
}

.callout h2 {
  color: var(--color-black);
}

.callout p {
  color: var(--tint-black-60);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-white);
  color: var(--color-black);
  border-top: 3px solid var(--color-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 44px;
  width: 44px;
}

.footer-brand strong {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.site-footer h4 {
  color: var(--color-red);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer p {
  color: var(--tint-black-60);
}

.site-footer a {
  color: var(--color-black);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-red);
}

.footer-bottom {
  border-top: 1px solid var(--tint-black-10);
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--tint-black-60);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-header .container {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    height: 68px;
    width: 68px;
  }

  .brand-text {
    font-size: 1.4rem;
  }

  .main-nav {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 40px;
  }

  .main-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--tint-black-10);
  }

  .main-nav a[aria-current="page"] {
    border-bottom: 1px solid var(--tint-black-10);
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
