/* ===== Variablen (Grün, Blau, Weiß) ===== */
:root {
  --hsc-green: #0d5c2e;
  --hsc-green-light: #1a7a3e;
  --hsc-green-dark: #084020;
  --hsc-blue: #1e4d7b;
  --hsc-blue-light: #2a6ba8;
  --hsc-blue-dark: #133554;
  --white: #ffffff;
  --off-white: #f5f8fa;
  --text: #1a1a1a;
  --text-muted: #4a5568;
  --bg-page: #f5f8fa;
  --bg-header: rgba(255, 255, 255, 0.95);
  --footer-bg: #133554;
  --footer-text: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --header-min-height: 5rem;
  /* Safe Area für Notch-Geräte (iPhone X+, Android mit Ausschnitt) */
  --safe-top: env(safe-area-inset-top, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
}

/* ===== Hell-/Dunkelmodus ===== */
[data-theme="dark"] {
  --off-white: #2d2d2d;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --bg-page: #1a1a1a;
  --bg-header: rgba(26, 26, 26, 0.98);
  --footer-bg: #0d2137;
  --footer-text: rgba(255, 255, 255, 0.85);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] body {
  background: var(--bg-page);
  color: var(--text);
}
[data-theme="dark"] .header {
  background: var(--bg-header);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}
[data-theme="dark"] .footer a {
  color: var(--footer-text);
}
[data-theme="dark"] .news-rotation,
[data-theme="dark"] .section {
  background: var(--off-white);
}
[data-theme="dark"] .section-title,
[data-theme="dark"] .vorstand-heading,
[data-theme="dark"] .vorstand-role,
[data-theme="dark"] .goal-number,
[data-theme="dark"] .goal-item h3 {
  color: #f5f8ff;
}
[data-theme="dark"] .content-card h3 {
  color: #b4f2c9;
}
[data-theme="dark"] .goal-item {
  background: var(--off-white);
}
[data-theme="dark"] .btn-secondary {
  background: #2563eb;
}
[data-theme="dark"] .btn-secondary:hover {
  background: #3b82f6;
}
[data-theme="dark"] .vorstand-card-btn {
  color: #f5f8ff;
  border-color: rgba(245, 248, 255, 0.8);
}
[data-theme="dark"] .vorstand-card-btn:hover {
  background: rgba(245, 248, 255, 0.1);
  color: #ffffff;
}
[data-theme="dark"] a {
  color: #62a5ff;
}
[data-theme="dark"] a:hover {
  color: #a9c9ff;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline;
}
.theme-toggle .icon-sun {
  display: inline;
}
.theme-toggle .icon-moon {
  display: none;
}
.theme-toggle {
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition:
    background var(--transition),
    color var(--transition);
}
.theme-toggle:hover {
  background: var(--hsc-blue);
  color: var(--white);
}

/* ===== Reset & Basis (W3C-orientiert) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Nur Scroll-Verhalten reduzieren – keine globalen Animation/Transition-Overrides (verhindert unsichtbare Inhalte) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Skip-Link: Zum Inhalt springen (WCAG 2.1, Barrierefreiheit) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--hsc-blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Abstand unter der fixen Nav (2rem) – Inhalt nicht mehr unter der Leiste, besser lesbar */
main#main-content {
  padding-top: calc(var(--header-min-height) + 2rem);
}

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

a {
  color: var(--hsc-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--hsc-blue-dark);
}

/* Sichtbarer Fokus für Tastatur (W3C/WCAG 2.1) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hsc-blue);
  outline-offset: 2px;
}

/* Touch-Ziele mind. 44×44px (WCAG 2.5.5) */
.nav-toggle,
.theme-toggle {
  min-width: 44px;
  min-height: 44px;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
  --header-min-height: 5rem;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-top: var(--safe-top);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.header-logo-img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  gap: 0.5rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition);
}

.nav-list a:hover {
  background: var(--off-white);
  color: var(--hsc-green);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hsc-blue);
  border-radius: 1px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    justify-content: space-between;
    padding-right: 0.25rem;
  }

  .header-logo {
    margin-right: 0;
  }
  .header-logo-img {
    height: 44px;
  }
  :root {
    --header-min-height: 5.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Theme-Button links neben Burger – nicht dahinter, immer klickbar */
  .theme-toggle {
    margin-right: 2.75rem;
    flex-shrink: 0;
  }

  .nav-list {
    flex: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-strong);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height var(--transition),
      opacity var(--transition);
  }

  .nav-list.is-open {
    max-height: 320px;
    opacity: 1;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--hsc-green-dark) 0%,
    var(--hsc-green) 35%,
    var(--hsc-blue) 70%,
    var(--hsc-blue-dark) 100%
  );
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.hero .btn-primary {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(0.6);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform 0.2s ease,
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--off-white);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: var(--hsc-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--hsc-blue-dark);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--hsc-blue);
}

.btn-pdf {
  background: var(--hsc-green);
  color: var(--white);
  border: 2px solid var(--hsc-green);
}

.btn-pdf:hover {
  background: var(--hsc-green-dark);
  border-color: var(--hsc-green-dark);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

/* ===== PDF-Modal (Mitgliedsantrag) ===== */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.pdf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.pdf-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="dark"] .pdf-modal-box {
  background: #252525;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .antrag-form-wrap {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pdf-modal-actions {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--hsc-blue-dark);
  color: var(--white);
}

.pdf-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.logo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.logo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.logo-modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

.logo-modal-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.logo-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hsc-blue-dark);
}

.logo-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--hsc-blue-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner-text {
  max-width: 720px;
  font-size: 0.95rem;
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.cookie-banner-text p {
  margin: 0;
}

.cookie-banner-text a {
  color: #e5e7eb;
  text-decoration: underline;
}

.cookie-banner-actions {
  flex-shrink: 0;
}

.cookie-banner-btn {
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--hsc-green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner-btn:hover {
  background: var(--hsc-green-dark);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    display: flex;
    justify-content: flex-end;
  }
}

.pdf-modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.pdf-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 3rem 3rem 3rem 3rem;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pdf-modal-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pdf-modal-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdf-modal-hint--top {
  margin: 0 0 1rem;
}

.pdf-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-outline-antrag {
  border: 2px solid var(--hsc-blue);
  color: var(--hsc-blue);
  background: transparent;
}

.btn-outline-antrag:hover {
  background: var(--off-white);
  color: var(--hsc-blue-dark);
}

/* ===== Antrag-Formular (ausfüllbar) ===== */
.antrag-form-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.antrag-form-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.antrag-form {
  max-width: 640px;
}

.antrag-screen {
  display: block;
}

.antrag-print {
  display: none;
}

.antrag-heading {
  font-size: 0.95rem;
  color: var(--hsc-blue-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.antrag-intro {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.antrag-erklaerung {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.5;
  color: var(--text);
}

.antrag-row--two {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  align-items: flex-end;
}

.antrag-row--two .antrag-field {
  flex: 1;
  min-width: 0;
}

.antrag-row--inline-small {
  display: flex;
  gap: 0.5rem;
}

.antrag-input--plz {
  width: 5rem;
  flex-shrink: 0;
}

.antrag-input--betrag {
  width: 6rem;
}

.antrag-label--hide {
  visibility: hidden;
}

.antrag-hinweis {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.antrag-select {
  cursor: pointer;
  appearance: auto;
}

.antrag-row--lieblingsteam .antrag-label {
  font-size: 11px;
}
.antrag-row--lieblingsteam .antrag-input {
  font-size: 14px;
}
.antrag-row--lieblingsteam .antrag-lieblingstext {
  font-size: 10px;
}
.antrag-lieblingstext {
  font-size: 10px;
  color: var(--hsc-green-dark);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.antrag-unterschrift-placeholder {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.antrag-block {
  margin-bottom: 1.25rem;
}

.antrag-block-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hsc-green-dark);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.antrag-row {
  margin-bottom: 0.85rem;
}

.antrag-row--inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.antrag-field {
  flex: 0 0 auto;
  min-width: 0;
}

.antrag-field--grow {
  flex: 1;
  min-width: 120px;
}

.antrag-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.antrag-required {
  color: var(--hsc-blue);
}

.antrag-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: var(--white);
  transition: border-color var(--transition);
}

.antrag-input:focus {
  border-color: var(--hsc-blue);
  box-shadow: 0 0 0 2px rgba(30, 77, 123, 0.2);
}

.antrag-input:focus-visible {
  outline: 2px solid var(--hsc-blue);
  outline-offset: 1px;
}

.antrag-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.antrag-unterschrift {
  margin-bottom: 0.5rem;
}

.antrag-signature-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* ===== Sections (Einblend-Animation per JS-Klasse) ===== */
.section {
  padding: 4rem 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--hsc-blue-dark);
  margin: 0 0 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-title--light {
  color: var(--white);
}

/* ===== Vorstand (Über uns – kompakte Darstellung) ===== */
.vorstand-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hsc-green-dark);
  margin: 0 0 1rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
}

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 0 auto 2rem auto;
  max-width: 720px;
}

.vorstand-card {
  text-align: center;
  background: var(--off-white);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 77, 123, 0.08);
}

.vorstand-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  display: block;
}

.vorstand-role {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hsc-blue-dark);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vorstand-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.vorstand-card-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--hsc-blue-dark);
  background: transparent;
  border: 1px solid var(--hsc-blue-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}
.vorstand-card-btn:hover {
  background: var(--hsc-blue-dark);
  color: var(--white);
}

/* ===== Vorstand-Modal (Vorstellung lesen) ===== */
.vorstand-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}
.vorstand-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.vorstand-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.vorstand-modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vorstand-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--hsc-blue-dark);
  color: var(--white);
}
.vorstand-modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.vorstand-modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vorstand-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.vorstand-modal-body {
  flex: 1;
  min-height: 0;
  padding: 1.5rem 1.5rem 2rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.vorstand-modal-img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  margin: 0 auto;
  display: block;
}
.vorstand-modal-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.vorstand-modal-text p {
  margin: 0 0 0.75rem;
}
.vorstand-modal-text p:last-child {
  margin-bottom: 0;
}

/* ===== News-Modal (Volltext-Dialog) ===== */
.news-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.news-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.news-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-theme="dark"] .news-modal {
  background: #252525;
}
.news-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--hsc-blue-dark);
  color: var(--white);
  flex-shrink: 0;
}
.news-modal-title-wrap {
  flex: 1;
  min-width: 0;
}
.news-modal-date {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 0.25rem;
}
.news-modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.news-modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.news-modal-body {
  flex: 1;
  min-height: 0;
  padding: 1.25rem 1.5rem;
  overflow: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}
.news-modal-body p {
  margin: 0 0 0.75rem;
}
.news-modal-body p:last-child {
  margin-bottom: 0;
}
.news-modal-body a {
  font-weight: 600;
}

/* ===== Content Grid (Über uns) ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--off-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 77, 123, 0.1);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.content-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hsc-green-dark);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.content-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Goals List ===== */
.goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--hsc-green);
  box-shadow: var(--shadow);
  transition:
    border-color var(--transition),
    transform 0.2s ease;
}

.goal-item:hover {
  border-left-color: var(--hsc-blue);
  transform: translateX(4px);
}

.goal-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--hsc-blue);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.goal-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hsc-blue-dark);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.goal-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.section--cta {
  background: linear-gradient(
    135deg,
    var(--hsc-blue) 0%,
    var(--hsc-blue-dark) 100%
  );
  color: var(--white);
}

.section--cta .container {
  text-align: center;
}

.cta-text {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.section--cta a {
  color: inherit;
}

/* ===== Contact ===== */
.contact-block {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 77, 123, 0.12);
}

.contact-block p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.contact-block p:last-of-type {
  margin-bottom: 1rem;
}

.contact-block .btn {
  margin-top: 0.5rem;
}

.contact-logo {
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-logo-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius);
}

.contact-logo-caption {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

[data-theme="dark"] .contact-logo-caption {
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-logo {
  height: 72px;
  width: auto;
  opacity: 0.9;
  border-radius: 14px;
}

.footer-logo-link:hover .footer-logo {
  opacity: 1;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-text a {
  color: var(--footer-text);
  text-decoration: underline;
}

.footer-text a:hover {
  opacity: 0.85;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-social-link {
  padding: 0;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  /* Light Mode: hellerer Button auf dunklem Footer */
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .footer-social-icon {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.footer-social-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-social-icon img {
  display: block;
  width: 24px;
  height: 24px;
  /* Standard: dunkel (für Light Mode) */
  filter: brightness(0);
}

[data-theme="dark"] .footer-social-icon img {
  /* Im Dark Mode: weiß */
  filter: brightness(0) invert(1);
}

.footer-social-label {
  line-height: 1;
}

.footer-legal {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-legal a {
  color: var(--white);
}

/* ===== News-Feed ===== */
/* ===== News-Rotationsleiste (Carousel) ===== */
.news-rotation {
  padding: 2rem 1.5rem;
  background: var(--white);
}

.news-rotation-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--hsc-blue-dark);
  margin: 0 0 1.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .news-rotation-title {
  color: #e5f0ff;
}

.news-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

/* Track-Breite = Anzahl Slides × 100%, jede Slide = 1/N → eine News füllt den sichtbaren Bereich */
.news-carousel-track {
  display: flex;
  transition: transform 0.45s ease-out;
  flex-direction: row;
  width: calc(100% * var(--news-slide-count, 5));
}

.news-slide {
  flex: 0 0 calc(100% / var(--news-slide-count, 5));
  width: calc(100% / var(--news-slide-count, 5));
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  cursor: pointer;
}

.news-slide-image-wrap {
  width: 100%;
  aspect-ratio: 800 / 360;
  overflow: hidden;
  background: var(--hsc-blue);
}

.news-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-slide-body {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.news-slide-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.news-slide-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hsc-blue-dark);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.news-slide-excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.news-slide-link {
  font-size: 0.95rem;
  font-weight: 600;
}

[data-theme="dark"] .news-slide-title {
  color: #e5f0ff;
}

[data-theme="dark"] .news-slide-link {
  color: #9cc4ff;
}

[data-theme="dark"] .news-slide-link:hover {
  color: #c9ddff;
}

.news-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--hsc-blue-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background var(--transition),
    transform 0.2s ease;
}

.news-carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.news-carousel-btn--prev {
  left: 0.75rem;
}

.news-carousel-btn--next {
  right: 0.75rem;
}

.news-rotation-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* ===== News-Seite (Übersicht) ===== */
.news-page-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-page-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}

.news-page-date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.news-page-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hsc-blue-dark);
  margin: 0 0 0.75rem;
}

.news-page-item p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.news-page-item p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .news-page-item {
  background: var(--off-white);
}

[data-theme="dark"] .news-page-title {
  color: #e5f0ff;
}

/* ===== Cloud / Mitgliederbereich ===== */
.section--cloud {
  background: linear-gradient(
    135deg,
    var(--hsc-green) 0%,
    var(--hsc-green-dark) 100%
  );
  color: var(--white);
}

.section--cloud .container {
  text-align: center;
}

.cloud-text {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.cloud-login {
  margin: 0 0 1rem;
}

.cloud-hinweis {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.section--cloud a {
  color: inherit;
}

/* ===== Login / Registrierung ===== */
.auth-page {
  padding: 4rem 1.5rem 3rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--hsc-blue-dark);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.auth-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  color: var(--hsc-blue-dark);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--hsc-blue);
  box-shadow: 0 0 0 3px rgba(30, 77, 123, 0.15);
}

.form-error {
  color: #c53030;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.form-success {
  color: var(--hsc-green);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-footer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 600;
}

.auth-footer--small {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.auth-hint {
  margin: 0 0 1rem;
  padding: 0.75rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-hint a {
  font-weight: 600;
}

/* ===== eCloud-Seite ===== */
.cloud-page {
  padding: 3rem 1.5rem 4rem;
  min-height: 60vh;
}

.cloud-container {
  max-width: 720px;
  margin: 0 auto;
}

.cloud-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--hsc-blue);
}

.cloud-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--hsc-blue-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cloud-user {
  margin: 0 auto 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cloud-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hsc-blue-dark);
  margin: 0 0 1rem;
}

.cloud-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cloud-upload-label {
  cursor: pointer;
  margin: 0;
}

.cloud-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.cloud-upload-filename {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cloud-file-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cloud-loading,
.cloud-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cloud-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cloud-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cloud-list-item:last-child {
  border-bottom: none;
}

.cloud-list-name {
  font-weight: 500;
  color: var(--hsc-blue-dark);
  flex: 1 1 200px;
  word-break: break-all;
}

.cloud-list-size {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cloud-list-download {
  font-size: 0.9rem;
  font-weight: 600;
}

.cloud-upload {
  margin-bottom: 2rem;
}

.cloud-files .cloud-section-title {
  margin-bottom: 0.75rem;
}

.cloud-password {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.cloud-password-form {
  max-width: 360px;
}

.cloud-password-form .form-group {
  margin-bottom: 1rem;
}

/* Wartet auf Freischaltung */
.cloud-pending {
  margin-top: 2rem;
}

.cloud-pending-box {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 560px;
}

.cloud-pending-box .cloud-section-title {
  margin-top: 0;
}

.cloud-pending-box p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.cloud-pending-box p:last-child {
  margin-bottom: 0;
}

/* Admin: Benutzerverwaltung */
.cloud-admin {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.cloud-admin-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cloud-admin-list-wrap {
  overflow-x: auto;
}

.cloud-admin-list {
  min-width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
  font-weight: 600;
  color: var(--hsc-blue-dark);
  background: var(--off-white);
}

.admin-table td {
  vertical-align: middle;
}

.btn-small {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

/* ===== Rechtliche Seiten (Impressum, Datenschutz) ===== */
.legal-page {
  padding: 5rem 1.5rem 3rem;
  min-height: 60vh;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--hsc-blue-dark);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legal-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-block h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hsc-green-dark);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legal-block p,
.legal-block ul {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-block ul {
  padding-left: 1.5rem;
}

.legal-stand {
  margin: 2rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.legal-back {
  margin: 2rem 0 0;
}

/* ===== Drucken: Antrag (6 mm Seitenrand, Inhalt mit Abstand) ===== */
@page {
  size: A4;
  margin: 6mm;
  margin-top: 4mm;
}

@media print {
  /* Alles ausblenden, was nicht gedruckt werden soll – nur .antrag-print drucken */
  body > a.skip-link,
  body > header,
  body > footer,
  main > .hero,
  main > .section,
  main > .news-rotation,
  .news-rotation,
  .news-carousel,
  .news-carousel-track,
  .news-carousel-btn,
  .news-rotation-more {
    display: none !important;
    visibility: hidden !important;
  }
  body * {
    visibility: hidden;
  }
  main {
    display: block !important;
    visibility: visible !important;
  }
  /* Nur die Modal-Druckansicht (.antrag-print) sichtbar = nur 1 Dokument */
  .pdf-modal,
  .pdf-modal-box,
  .pdf-modal-body,
  .antrag-form-wrap,
  .antrag-form,
  .antrag-print,
  .antrag-print * {
    visibility: visible;
  }
  .antrag-screen,
  .antrag-screen * {
    display: none !important;
    visibility: hidden !important;
  }
  .antrag-print {
    display: block !important;
  }
  .pdf-modal {
    position: fixed;
    inset: 0;
    background: #fff;
    padding: 0;
    z-index: 99999;
    overflow: hidden !important;
  }
  .pdf-modal-backdrop,
  .pdf-modal-close,
  .pdf-modal-header,
  .pdf-modal-hint--top,
  .pdf-modal-actions {
    display: none !important;
  }
  .pdf-modal-box {
    max-width: none;
    max-height: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden !important;
  }
  .pdf-modal-body {
    padding: 0;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .pdf-modal-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .antrag-form-wrap {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .antrag-form-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .antrag-print {
    padding-left: 10mm;
    padding-right: 10mm;
    padding-top: 0;
    padding-bottom: 8mm;
  }
  .antrag-print-page {
    page-break-inside: avoid;
    padding: 0;
    margin: 0;
    padding-top: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    line-height: 1.28;
    color: #000;
  }
  .antrag-print-doc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8pt;
    margin: 0 auto 10pt;
    padding-top: 0;
    width: fit-content;
    max-width: 100%;
  }
  .antrag-print-logo {
    width: 28mm;
    height: auto;
    max-height: 28mm;
    object-fit: contain;
    flex-shrink: 0;
  }
  .antrag-print-title {
    font-size: 13pt;
    font-weight: bold;
    text-align: center;
    margin: 0;
    line-height: 1.25;
    flex: 0 1 auto;
    min-width: 0;
  }
  .antrag-print-header {
    display: flex;
    align-items: flex-start;
    gap: 8pt;
    margin: 0 0 0;
  }
  .antrag-print-empfaenger-block {
    flex: 0 1 auto;
    min-width: 0;
  }
  .antrag-print-empfaenger {
    margin: 0;
    font-size: 10pt;
    line-height: 1.35;
  }
  .antrag-print-lieblingsteam-box {
    flex: 0 0 auto;
    width: 65mm;
    margin-left: auto;
    padding: 3pt 5pt;
    border: 1px solid #000;
    font-size: 4px;
  }
  .antrag-print-lieblingsteam-label {
    font-weight: bold;
    margin: 0 0 2pt;
    font-size: 8px;
  }
  .antrag-print-lieblingsteam-value {
    margin: 0 0 2pt;
    min-height: 1em;
    border-bottom: 1px solid #000;
    font-size: 4px;
  }
  .antrag-print-lieblingsteam-value .antrag-print-value-inline {
    border: none;
    padding: 0;
  }
  .antrag-print-lieblingstext--header {
    margin: 0;
    font-size: 4px;
    line-height: 1.1;
    text-align: justify;
  }
  .antrag-print-spacer {
    height: 2.5em;
    margin: 0;
    padding: 0;
  }
  .antrag-print-intro {
    font-weight: bold;
    margin: 0 0 2pt;
    font-size: 10.5pt;
  }
  .antrag-print-erklaerung {
    margin: 0 0 5pt;
    font-size: 9.5pt;
    text-align: justify;
    line-height: 1.22;
  }
  .antrag-print-fields {
    margin: 0 0 6pt;
  }
  .antrag-print-row-two {
    display: flex;
    gap: 10pt;
    margin-bottom: 5pt;
  }
  .antrag-print-row-two:last-child {
    margin-bottom: 0;
  }
  .antrag-print-field {
    flex: 1;
    min-width: 0;
  }
  .antrag-print-label-block {
    margin: 0 0 2pt;
    font-size: 10pt;
    font-weight: normal;
  }
  .antrag-print-value-line {
    margin: 0;
    min-height: 1.4em;
    border-bottom: 1px solid #000;
    font-size: 10.5pt;
  }
  .antrag-print-value-line span {
    display: inline;
  }
  .antrag-print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 4pt;
    font-size: 10pt;
  }
  .antrag-print-table td {
    padding: 1pt 6pt 2pt 0;
    vertical-align: bottom;
    border: none;
  }
  .antrag-print-label {
    font-weight: normal;
    width: 1%;
    white-space: nowrap;
    padding-right: 6pt;
  }
  .antrag-print-value {
    border-bottom: 1px solid #000;
    min-height: 1.25em;
  }
  .antrag-print-iban {
    letter-spacing: 0.04em;
  }
  .antrag-print-row {
    margin: 0 0 3pt;
    font-size: 10pt;
  }
  .antrag-print-label-inline {
    margin-right: 4pt;
  }
  .antrag-print-value-inline {
    border-bottom: 1px solid #000;
    padding: 0 4pt;
  }
  .antrag-print-hinweis {
    margin: 0 0 3pt;
    font-size: 7pt;
  }
  .antrag-print-lieblingstext {
    margin: 0 0 6pt;
    font-size: 9.5pt;
  }
  .antrag-print-table--unterschrift td {
    padding-top: 12pt;
  }
  .antrag-print-unterschrift {
    border-bottom: 1px solid #000;
    min-width: 50mm;
    min-height: 8mm;
  }
  .antrag-print-page--zweck {
    font-size: 7pt;
    padding-top: 4pt;
    padding-bottom: 4mm;
    line-height: 1.18;
  }
  .antrag-print-zweck-title {
    font-weight: bold;
    margin: 0 0 2pt;
    font-size: 8pt;
  }
  .antrag-print-zweck {
    margin: 0 0 3pt;
    font-size: 7pt;
    text-align: justify;
    line-height: 1.18;
  }
  .antrag-print-zweck-schluss {
    margin: 0 0 3pt;
    font-size: 7.5pt;
    font-weight: bold;
  }
  .antrag-print-footer {
    margin: 6pt 0 0 0;
    font-size: 8.5pt;
    line-height: 1.3;
    text-align: center;
    font-weight: bold;
    page-break-inside: avoid;
  }
}

/* ===== Responsive: Tablet & kleine Bildschirme ===== */
@media (max-width: 1024px) {
  .section {
    padding: 3rem 1.25rem;
  }
  .cloud-page {
    padding: 2.5rem 1.25rem 3rem;
  }
  .legal-page {
    padding: 4rem 1.25rem 2.5rem;
  }
  .pdf-modal-body {
    padding: 1.5rem;
  }
  .goal-item {
    padding: 1.25rem;
    gap: 1rem;
  }
  .goal-number {
    font-size: 1.5rem;
  }
}

/* ===== Responsive: Smartphone quer & kleines Tablet ===== */
@media (max-width: 768px) {
  main#main-content {
    padding-top: calc(var(--header-min-height, 5.5rem) + 2rem);
  }
  body {
    font-size: 1rem;
  }
  .hero {
    min-height: 32vh;
    padding: 2rem 1rem 2rem;
  }
  .hero-tagline {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
  .section {
    padding: 2.5rem 1rem;
  }
  .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
  .container {
    padding: 0 1rem;
  }
  .auth-page {
    padding: 3rem 1rem 2rem;
    min-height: 50vh;
  }
  .auth-card {
    padding: 1.5rem;
  }
  .auth-title {
    font-size: 1.4rem;
  }
  .cloud-page {
    padding: 2rem 1rem 2.5rem;
  }
  .cloud-container {
    padding: 0;
  }
  .cloud-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  .cloud-user {
    margin: 0;
    font-size: 0.9rem;
    word-break: break-word;
  }
  .cloud-header .btn {
    width: 100%;
    text-align: center;
  }
  .cloud-upload-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .cloud-upload-form .btn {
    width: 100%;
  }
  .cloud-upload-filename {
    font-size: 0.85rem;
    word-break: break-all;
  }
  .cloud-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 0;
  }
  .cloud-list-name {
    flex: 1 1 100%;
  }
  .cloud-list-download,
  .cloud-list-delete {
    align-self: flex-start;
  }
  .cloud-password {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .cloud-pending-box {
    padding: 1.25rem;
  }
  .cloud-admin {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .cloud-admin-list-wrap {
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    font-size: 0.85rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
  }
  .admin-table th:nth-child(1),
  .admin-table td:nth-child(1) {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .legal-page {
    padding: 3.5rem 1rem 2rem;
  }
  .legal-title {
    font-size: 1.5rem;
  }
  .legal-block {
    margin-bottom: 1.5rem;
  }
  .legal-block h2 {
    font-size: 1rem;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .cta-buttons .btn {
    width: 100%;
  }
  .contact-block {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  .footer {
    padding: 1.5rem 1rem;
  }
  .news-slide-body {
    padding: 1rem;
  }
  .news-carousel-btn--prev {
    left: 0.5rem;
  }
  .news-carousel-btn--next {
    right: 0.5rem;
  }
  .news-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .content-card {
    padding: 1.25rem;
  }
  .content-grid {
    gap: 1rem;
  }
  .vorstand-grid {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .vorstand-card {
    padding: 0.85rem;
  }
  .vorstand-img {
    max-width: 120px;
  }
  .vorstand-text {
    font-size: 0.8rem;
  }
  .vorstand-modal-box {
    max-width: 95%;
  }
  .vorstand-modal-body {
    padding: 1.25rem 1rem 1.5rem;
  }
  .vorstand-modal-img {
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
  }
  .pdf-modal-box {
    max-height: 85vh;
  }
  .pdf-modal-body {
    padding: 1rem;
  }
  .antrag-form-wrap {
    padding: 1rem;
  }
  .antrag-row--two {
    flex-direction: column;
    gap: 0;
  }
}

/* ===== Responsive: Mobile – Safe Area, Modals, Tabellen ===== */
@media (max-width: 768px) {
  main#main-content {
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
  }
  .container {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
  }
  .news-rotation {
    padding-left: max(1.5rem, var(--safe-left));
    padding-right: max(1.5rem, var(--safe-right));
  }
  .pdf-modal,
  .vorstand-modal,
  .news-modal-backdrop,
  .logo-modal {
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
  }
  .pdf-modal-box,
  .vorstand-modal-box,
  .news-modal {
    max-width: calc(100% - 2rem);
    margin-left: var(--safe-left);
    margin-right: var(--safe-right);
    max-height: calc(100vh - 2rem - var(--safe-top) - var(--safe-bottom));
  }
  .cookie-banner {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
    padding-bottom: max(1rem, var(--safe-bottom));
  }
  .footer-inner {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
    padding-bottom: max(1.5rem, var(--safe-bottom));
  }
  .cloud-admin-list-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--safe-left));
    margin-right: calc(-1 * var(--safe-right));
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
  }
  .admin-table {
    min-width: 480px;
  }
}

/* ===== Responsive: Smartphone hochkant ===== */
@media (max-width: 480px) {
  :root {
    --header-min-height: 6rem;
  }
  .hero {
    min-height: 28vh;
    padding: 2rem 0.75rem 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section {
    padding: 2rem 0.75rem;
  }
  .section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }
  .auth-page {
    padding: 2rem 0.75rem 1.5rem;
  }
  .auth-card {
    padding: 1.25rem;
  }
  .auth-title {
    font-size: 1.25rem;
  }
  .auth-intro {
    font-size: 0.9rem;
  }
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  .cloud-page {
    padding: 1.5rem 0.75rem 2rem;
  }
  .cloud-title {
    font-size: 1.25rem;
  }
  .cloud-section-title {
    font-size: 1.05rem;
  }
  .cloud-file-list {
    padding: 0.75rem;
  }
  .cloud-pending-box {
    padding: 1rem;
  }
  .admin-table {
    font-size: 0.8rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.4rem 0.35rem;
  }
  .btn-small {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
  .legal-page {
    padding: 3rem 0.75rem 1.5rem;
  }
  .legal-title {
    font-size: 1.35rem;
  }
  .footer {
    padding: 1.25rem 0.75rem;
  }
  .footer-text {
    font-size: 0.85rem;
  }
  .nav-list a {
    padding: 0.65rem 1rem;
  }
  .content-card h3 {
    font-size: 1.1rem;
  }
  .goal-item {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  .goal-number {
    font-size: 1.25rem;
  }
  .goal-item h3 {
    font-size: 1rem;
  }
  .vorstand-heading {
    font-size: 1rem;
  }
  .vorstand-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .vorstand-role {
    font-size: 0.9rem;
  }
}

/* ===== Sehr kleine Displays (z. B. schmales Smartphone) ===== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-tagline {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .cta-buttons .btn,
  .contact-block .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .contact-block {
    margin: 0 0.5rem;
    padding: 1rem;
  }
  .news-carousel-btn--prev {
    left: 0.25rem;
  }
  .news-carousel-btn--next {
    right: 0.25rem;
  }
  .news-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .news-slide-title,
  .news-slide-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .news-slide-body {
    padding: 0.85rem 1rem;
  }
  .news-slide-title {
    font-size: 1rem;
  }
  .news-slide-excerpt {
    font-size: 0.9rem;
  }
}

/* ===== Touch-freundlich: größere Klickflächen auf Touch-Geräten ===== */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 0.85rem 1.5rem;
  }
  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .cloud-list-download,
  .cloud-list-delete {
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .admin-table .btn-small {
    min-height: 36px;
    padding: 0.4rem 0.65rem;
  }
  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form input[type="text"] {
    min-height: 44px;
    font-size: 16px; /* verhindert Zoom auf iOS beim Fokus */
  }
  .antrag-input,
  .antrag-select {
    min-height: 44px;
  }
  .antrag-input[type="text"],
  .antrag-input[type="email"],
  .antrag-input[type="number"] {
    font-size: 16px; /* verhindert Zoom auf iOS */
  }
}

/* ===== Reduced motion: nur scroll, keine globalen Animation-Overrides ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
