@view-transition {
    navigation: auto;
}

:root {
    --brand-red: #d90416;
    --text-dark: #222222;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Header & Logo */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--brand-red);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header img {
    max-width: 280px;
    height: auto;
}

/* Hauptcontainer */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Intro Section */
.hero {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero h1 {
    color: var(--brand-red);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.hero h2 {
    margin: 20px 0 10px 0;
    font-size: 1.3rem;
}

/* Action Grid (Download & Spenden) */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--brand-red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.btn {
    display: inline-block;
    background-color: var(--brand-red);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn:hover {
    background-color: #b00312;
}

.qr-code {
    max-width: 150px;
    margin: 15px auto;
    display: block;
}

.compact-iban {
    font-family: monospace;
    letter-spacing: -0.05em;
    font-size: 0.95em;
    font-variant-numeric: tabular-nums;
}

/* Anschaffungen / Vorstand Horizontal Scrollbar */
.section-title {
    color: var(--brand-red);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    scroll-snap-type: x mandatory;
}

.board-member {
    flex: 0 0 200px;
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.board-member:hover {
    transform: scale(1.03);
}

.board-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--brand-red);
}

.board-member h4 {
    font-size: 1.1rem;
}

.board-member p {
    font-size: 0.9rem;
    color: #666;
}

/* Bilder-Overlay (Modal aus index.html) */
.img-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.img-modal-content {
    background-color: var(--white);
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.img-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.img-modal-body {
    overflow-y: auto;
    padding: 20px;
}

.img-modal-body img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.img-modal-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--brand-red);
}

.img-modal-body p {
    line-height: 1.5;
    margin: 0;
}

/* Formulare & Antragsseite */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.scrollable-box {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: justify;
}

.error-message {
    color: var(--brand-red);
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.input-error {
    border-color: var(--brand-red) !important;
}

.honeypot {
    display: none !important;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

/* Allgemeines Formular-Modal (Antragsbestätigung) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.modal-content h3 {
    color: var(--brand-red);
    margin-bottom: 15px;
}

.section-divider {
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--brand-red);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

footer nav a:hover {
    text-decoration: underline;
}


/* Optisches Feedback beim Hovern */
.clickable-copy {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.clickable-copy:hover {
  opacity: 0.7;
}


/* Toast Styling */
.toast {
  visibility: hidden;
  min-width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 12px 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Toast anzeigen */
.toast.show {
  visibility: visible;
  opacity: 1;
}