/*
 * File: styles.css
 * Project: Kimura Spenden
 * Purpose: Visual styles. Layout and tokens preserved.
 * Maintainability Notes:
 * - Do NOT change variable names or class names; JS relies on some classes for state.
 * - Avoid moving blocks that affect stacking contexts (overlays/menus).
 */

/* styles.css */
/* Grundlegende Resets und globale Einstellungen */
:root {
  --bg: #fff;
  --surface: #f9f9f9;
  --text: #111;
  --muted: #555;
  --brand: #c8102e;
  --accent: #e63946;
  --ring: #ddd;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --container: 1024px;
  --footer-gap: 1.25rem;
}

body.dark {
  --bg: #1e1e1e;
  --surface: #2a2a2a;
  --text: #eee;
  --muted: #bbb;
  --brand: #e63946;
  --accent: #c8102e;
  --ring: #444;
  --shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@-moz-document url-prefix() {
  @media (max-width: 900px) {
    html { scroll-behavior: auto; }
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

#mobileMenu a.external-link {
  font-style: italic;
  padding-left: 20px;
}

@media (min-width: 1024px) {
  body::before,
  body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - var(--container)) / 2);
    /* FIX: PHP cannot run inside static CSS files. Cache-busting happens in HTML include. */
    background-image: url('/pics/logos/shukokai.svg');
    background-size: calc(0.75 * (100vw - var(--container)) / 2) auto;
    background-repeat: no-repeat;
    background-position: center 50%;
    z-index: -1;
    clip-path: polygon(0 120px, 100% 120px, 100% calc(100% - 60px), 0 calc(100% - 60px));
  }
  body::before { left: 0; }
  body::after { right: 0; }
}

@media (max-width: 1024px) {
  body::before,
  body::after { background-image: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  background: var(--bg);
}

/* Header + Nav */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 3px solid var(--brand);
  z-index: 1200;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 44px; width: auto; }
.brand .title { font-weight: 700; font-size: 1rem; }

.nav-links { display: none; }

/* Dark/Light Toggle (both legacy .dark-toggle and .theme-toggle supported) */
.dark-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.dark-toggle:hover,
.theme-toggle:hover { background: var(--shadow); }
.dark-toggle svg,
.theme-toggle svg { width: 28px; height: 28px; }
.dark-toggle.light svg,
.theme-toggle.light svg { fill: #ffc107; }
.dark-toggle.dark svg,
.theme-toggle.dark svg { fill: #90caf9; }

.burger {
  display: inline-flex;
  width: auto;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ring);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  margin-right: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
@media (min-width: 900px) { .burger { font-family: 'Roboto', sans-serif; } }
@media (max-width: 899px) {
  .burger { text-indent: -9999px; width: 44px; padding: 0; }
  .burger::before { content: '☰'; text-indent: 0; font-size: 1.5rem; display: block; }
  .burger[aria-expanded="true"]::before { content: '✕'; }
}

.mobile-overlay {
  position: fixed;
  left: auto;
  width: auto;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 15px;
  gap: 0.75rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
  border-radius: var(--radius);
}
body.dark .mobile-overlay { background: rgba(30, 30, 30, 0.98); }
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-overlay a,
.mobile-overlay .dark-toggle,
.mobile-overlay .theme-toggle {
  font-size: 1rem;
  padding: 0.75rem 15px;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--ring);
}

main { padding: 2rem 0 5rem; background: var(--bg); }
main.menu-open { overflow: hidden; }

section {
  padding: 2rem 0;
  scroll-margin-top: 200px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

h1, h2, h3 { margin: 0 0 0.6rem; }
p { margin: 0 0 0.5rem; color: var(--muted); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  cursor: pointer;
}

#hero h2, #spenden h2, #info h2, #faq h2 { padding: 0 0 0 1rem; }
#donators h2 { padding: 0 0 0 2rem; }
@media (max-width: 900px) {
  #hero h2, #donators h2, #spenden h2, #info h2, #faq h2 { padding: 0; }
}

#hero {
  max-width: var(--container);
  margin: 2rem auto 2rem;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  min-height: 320px;
}
#hero .bg {
  position: absolute;
  inset: 0;
  background: var(--surface);
  z-index: 1;
  border-radius: var(--radius);
}
body.dark #hero .bg { background: var(--surface); }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  overflow: auto;
}
@media (max-width: 900px) {
  .hero-inner { display: flex; flex-direction: column; }
  .hero-inner h2 { order: 1; }
  .hero-inner p { order: 3; text-align: justify; }
  .kader-image-container { order: 2; margin: 1rem auto; max-width: 100%; }
}
.hero-inner h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.hero-inner p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; text-align: justify; }

@media (min-width: 900px) {
  .hero-inner { display: flex; flex-direction: column; align-items: center; }
  .hero-inner h2 { text-align: center; }
  .kader-image-container { margin: 1rem auto; max-width: 600px; width: 100%; }
  .kader-image { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: var(--radius); }
}

/* Donators */
#donators { margin-bottom: 2rem; position: relative; }

#donatorsGallery {
  position: relative;
  max-width: 98%;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
  min-width: 340px;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
  display: grid;
  gap: 0.5rem;
}
/* Desktop: 5 Spalten */
@media (min-width: 768px) { #donatorsGallery { grid-template-columns: repeat(5, 1fr); } }
/* Mobile: Dynamische Spalten */
@media (max-width: 767px) { #donatorsGallery { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); } }

.donator-item {
  width: 100%;
  min-height: 320px; /* Verändert von height zu min-height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.donator-item .image-container { position: relative; width: 100%; height: 200px; }
.donator-item img { width: 100%; height: 200px; object-fit: contain; }
.donator-item .value-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.8);
  background: transparent;
}
.caption { margin-top: 0.5rem; font-size: 1rem; text-align: center; color: var(--text); overflow-wrap: break-word; width: 100%; }
.message { margin-top: 0.25rem; font-size: 0.85rem; text-align: center; color: var(--muted); overflow-wrap: break-word; width: 100%; white-space: pre-wrap; }

.expand-button, .minimize-button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.expand-button:hover { background: var(--accent); }

.minimize-button {
  position: sticky;
  bottom: calc(0.75rem + 60px);
  right: 1rem;
  margin-left: auto;
  margin-right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
}
.minimize-button:hover { background: var(--accent); }
.minimize-button svg { width: 24px; height: 24px; }

/* Spenden */
.spenden-wrapper { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .spenden-wrapper { grid-template-columns: 1fr 320px; align-items: start; }
}

#spendenForm { display: flex; flex-direction: column; gap: 0.5rem; }
#spendenForm label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
#spendenForm input,
#spendenForm select,
#spendenForm textarea {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--ring);
  font-size: 1rem;
  outline-offset: 2px;
  background: var(--surface);
  color: var(--text);
}
#spendenForm textarea { min-height: 60px; resize: vertical; }
#spendenForm button {
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
#spendenForm button:hover { background: var(--accent); }

.spenden-fortschritt { text-align: center; }
.form-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; padding: 0 0 0 1rem; color: var(--text); }

.progress-container { margin-bottom: 1rem; }
.progress-bar {
  height: 20px;
  background: var(--ring);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-bar .progress-segment { height: 100%; background: var(--brand); transition: width 0.5s ease; }
.announced-bar .progress-segment { background: var(--brand); }
.received-bar .progress-segment { background: var(--accent); }
.progress-label { font-size: 0.9rem; color: var(--text); margin-bottom: 0.5rem; text-align: left; padding-left: 1rem; }
.progress-goal { font-size: 1rem; color: var(--muted); margin-bottom: 0.5rem; text-align: left; padding-left: 1rem; }
.progress-text { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; text-align: left; padding-left: 1rem; }
.progress-text .progress-percentage { font-weight: 600; }

/* Donation Overlay */
.donation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.donation-overlay.active { opacity: 1; visibility: visible; }

.donation-overlay-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  padding: 1rem;
  text-align: left;
  color: var(--text);
}
.donation-overlay-content h3 { font-size: 1rem; margin-bottom: 1rem; }
.donation-overlay-content label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.donation-overlay-content input[type="email"],
.donation-overlay-content input[type="file"] {
  width: 90%;
  padding: 0.6rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
.donation-overlay-content .image-preview {
  max-width: 100%;
  max-height: 200px;
  margin-bottom: 1rem;
  display: none;
  border-radius: var(--radius);
}
.donation-overlay-content .image-preview.active { display: block; }
.donation-overlay-content .buttons { display: flex; gap: 1rem; justify-content: flex-end; }
.donation-overlay-content button {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}
.donation-overlay-content .confirm-btn { background: var(--brand); color: #fff; }
.donation-overlay-content .confirm-btn:hover { background: var(--accent); }
.donation-overlay-content .cancel-btn { background: var(--ring); color: var(--text); }
.donation-overlay-content .cancel-btn:hover { background: var(--muted); }
.donation-overlay-content .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}
.donation-overlay-content #overlayMessage { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--ring);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  z-index: 1500;
  user-select: none;
}
footer .footer-content { display: flex; align-items: center; gap: 1rem; }
footer .social-links { display: flex; gap: 1rem; }
footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}
footer .social-links a:hover,
footer .social-links a:focus { filter: none; outline: none; }
footer .social-links svg { width: 100%; height: 100%; display: block; fill: var(--text); }
footer a.contact-link { color: var(--text); text-decoration: underline; }
footer a.contact-link:hover { color: var(--brand); }
/* Extra Abstand zwischen YouTube-Icon und Switch */
footer .footer-toggle { margin-left: var(--footer-gap); }

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 3000;
}
body.dark #preloader { background: rgba(30, 30, 30, 0.85); }
#preloader img { width: 175px; height: auto; animation: pulse 0.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.85; } }

/* Cookie Banner */
#cookieBanner {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 2000;
  display: none;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
}
#cookieBanner.show { display: flex; }
#cookieBanner p { margin: 0; font-size: 0.95rem; color: var(--muted); }
#cookieBanner button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}
#cookieBanner button:hover { background: var(--accent); }

/* FAQ */
.faq-intro { margin-bottom: 1.5rem; color: var(--muted); }
.faq-item { margin-bottom: 1rem; }
.faq-item h3 { cursor: pointer; font-size: 1.2rem; margin: 0; padding: 0.5rem 0; color: var(--text); }
.faq-item h3:hover { color: var(--brand); }
.faq-answer { display: none; color: var(--muted); font-size: 1rem; padding: 0.5rem 0; }
.faq-answer.active { display: block; }

/* Admin */
.admin-tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.tab-button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tab-button:hover { background: var(--brand); color: #fff; }
.tab-button.active { background: var(--brand); color: #fff; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.admin-table th, .admin-table td {
  padding: 0.5rem;
  border: 1px solid var(--ring);
  text-align: left;
  vertical-align: middle;
}
.admin-table th { background: var(--surface); font-weight: 700; }
.admin-table img { max-width: 100px; border-radius: var(--radius); }
.admin-table input, .admin-table textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}
.admin-table textarea { resize: vertical; min-height: 60px; }
.admin-table input[type="checkbox"] { width: auto; }

.action-btn {
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.save-btn { background: var(--brand); color: #fff; }
.save-btn:hover { background: var(--accent); }
.delete-btn { background: #dc2626; color: #fff; }
.delete-btn:hover { background: #b91c1c; }

.form-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.form-message.success { background: var(--brand); color: #fff; }
.form-message.error { background: var(--accent); color: #fff; }

.add-form { margin-bottom: 1rem; }
.add-form h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.add-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.add-form input, .add-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.add-form textarea { resize: vertical; min-height: 60px; }
.add-form input[type="checkbox"] { width: auto; }

.add-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.add-message.success { background: var(--brand); color: #fff; }
.add-message.error { background: var(--accent); color: #fff; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  overflow: auto;
}
.modal-content {
  background: var(--surface);
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow);
  position: relative;
  color: var(--text);
}
.modal-close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  background: transparent; border: none;
  transition: color 0.3s ease;
}
.modal-close:hover { color: var(--brand); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.add-btn {
  background: var(--brand);
  color: #fff;
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: background-color 0.3s ease;
}
.add-btn:hover { background: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { margin-bottom: 0.5rem; font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea {
  padding: 0.6rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[type="checkbox"] { width: auto; }
.form-group input[type="number"] { -webkit-appearance: none; -moz-appearance: textfield; }
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* Message Overlay */
.message-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex; justify-content: center; align-items: center;
  z-index: 2500;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.message-overlay.active { opacity: 1; visibility: visible; }
.message-overlay.success .message-content { background: var(--brand); color: #fff; }
.message-overlay.error .message-content { background: var(--accent); color: #fff; }
.message-content {
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px; width: 90%;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  animation: slideIn 0.3s ease-in;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Kader Layout */
.kader-content { display: flex; flex-direction: column; gap: 2rem; }
.kader-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 3rem;
  position: relative;
}
.kader-item.reverse { direction: rtl; }
.kader-item.reverse > * { direction: ltr; }

.kader-image { display: flex; align-items: center; justify-content: center; }
.kader-image img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: pointer;
}

.kader-info { display: flex; flex-direction: column; gap: 1rem; }
.basic-info {
  display: flex; flex-direction: column; gap: 0.3rem;
  align-items: flex-start; text-align: left;
}
.basic-info h3 { font-size: 1.4rem; font-weight: 600; color: var(--text); }
.basic-info p { font-size: 1rem; color: var(--muted); }
.basic-info p strong { color: var(--text); font-weight: 500; }
.function { font-size: 1.4rem; font-weight: 600; color: var(--text); }

.details-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left;
}
.achievements, .why-karate { display: flex; flex-direction: column; gap: 0.3rem; }
.achievements p, .why-karate p { font-size: 1rem; color: var(--muted); margin: 0; }
.achievements p strong, .why-karate p strong { color: var(--text); font-weight: 500; }

/* Gürtelbalken */
.belt {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  height: 20px;
  border: 1px solid #FFFFFF;
  border-radius: var(--radius);
}
.belt-5kyu { background-color: #0000FF; }
.belt-4kyu { background-color: #9400D3; }
.belt-kyu  { background-color: #8B4513; }
.belt-dan  { background-color: #000000; }
.belt-stripe { position: absolute; width: 10px; height: 100%; top: 0; }
.belt-stripe-white { background-color: #FFFFFF; }
.belt-stripe-red   { background-color: #FF0000; }

/* Responsive */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .kader-item { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .kader-item.reverse { direction: ltr; }
  .kader-info { gap: 0.5rem; }
  .basic-info { align-items: center; text-align: center; }
  .details-info { grid-template-columns: 1fr; text-align: center; }
  .achievements p, .why-karate p { text-align: center; }
  .achievements p strong, .why-karate p strong { text-align: center; }
  .belt { bottom: 10px; left: 10px; right: 10px; }
}

@media (max-width: 900px) {
  #starter-image .brand-overlay,
  #starter-image .menu-overlay { display: none; }
}

/* NEU: Brand-Overlay */
#starter-image { position: relative; margin-top: 2rem; }
.brand-overlay {
  position: absolute;
  top: 2rem; left: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  z-index: 10;
}
.brand-overlay img { height: 44px; width: auto; }
.brand-overlay .title {
  font-weight: 700; font-size: 1rem; color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8),
               -1px -1px 2px rgba(0, 0, 0, 0.8),
               1px -1px 2px rgba(0, 0, 0, 0.8),
               -1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Menü-Overlay */
.menu-overlay {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 1rem;
  z-index: 10;
}
.menu-overlay a {
  font-size: 0.9rem; color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8),
               -1px -1px 2px rgba(0, 0, 0, 0.8),
               1px -1px 2px rgba(0, 0, 0, 0.8),
               -1px 1px 2px rgba(0, 0, 0, 0.8);
  text-decoration: none;
}
.menu-overlay a:hover { color: var(--brand); }

/* Kader-Bild in Hero */
.kader-image-container { display: block; margin: 1rem auto; max-width: 600px; width: 100%; }
.kader-image { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: var(--radius); }
.kader-image-text { display: none; }

/* --- Gauge legend & needles --- */
.gauge-legend { display: grid; gap: 0.25rem; text-align: left; padding-left: 1rem; }
.legend-row { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
:root {
  --needle-received: var(--accent);
  --needle-announced: var(--text);
}
body.dark {
  /* keep contrast in dark theme */
  --needle-announced: var(--text);
}
.gauge .needle.received { stroke: var(--needle-received); }
.gauge .needle.announced { stroke: var(--needle-announced); opacity: 0.85; }
.gauge .needle-cap { fill: currentColor; }

/* --- Simple Gauge Styles --- */
.gauge-container { display: grid; gap: 0.75rem; align-items: center; }
.gauge { width: 100%; max-width: 460px; margin: 0 auto; position: relative; }
.gauge svg { width: 100%; height: auto; display: block; }
.gauge .tick { stroke: var(--ring); stroke-width: 2; opacity: .7; }
.gauge .label { fill: var(--muted); font-size: 0.85rem; text-anchor: middle; }
.gauge .gauge-center { font-family: 'Oswald', sans-serif; text-anchor: middle; dominant-baseline: middle; fill: var(--text); }
.gauge .needle { stroke: var(--accent); stroke-width: 4; }
    