/* 
 * Glinder Kweerdänzer - Stylesheet 
 * Square Dance Club Glinde
 */

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-primary: #2e7d32;
  --color-primary-dark: #1b5e20;
  --color-secondary: #6c757d;
  --color-danger: #dc3545;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-muted: #6c757d;
  --color-text: #333;
  --color-text-light: #666;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  --gradient-light-green: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 25px;
  --border-width: 2px;
  --border-accent-width: 4px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 15px rgba(0, 0, 0, 0.15);

  /* Grid */
  --grid-gap-sm: 15px;
  --grid-gap-md: 1.5rem;
  --grid-gap-lg: 30px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: white;
  padding: 25px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-logo {
  height: 125px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.header-text {
  text-align: left;
}

.header h1 {
  font-size: 3.2em;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
  margin: 0;
  line-height: 1.1;
}

.header .subtitle {
  opacity: 0.95;
  font-size: 1.4em;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  color: white;
  margin: 5px 0 0 0;
  line-height: 1.2;
}

/* Flex-Layout für Header mit Buttons */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 30px;
}

.flex-between h1 {
  margin-bottom: 0;
  flex: 1;
}

/* Responsive: Bei kleinen Bildschirmen untereinander */
@media (max-width: 768px) {
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .flex-between .btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Navigation */
.nav {
  background-color: white;
  border-bottom: 3px solid #2e7d32;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  align-items: center;
  gap: 8px;
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: #333;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* Hamburger Animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin: 0;
}

/* Navigation Links */
.nav-link {
  display: block;
  padding: 15px 25px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  background-color: #e8f5e8;
  border-bottom-color: #2e7d32;
  color: #1b5e20;
  outline: none;
}

.nav-link.active {
  background-color: #2e7d32;
  color: white !important;
  border-bottom-color: #1b5e20;
}

.nav-link.active:hover {
  background-color: #1b5e20;
  color: white !important;
  border-bottom-color: #0d4710;
}

/* Parent Menu Items with Submenu */
.nav-parent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submenu-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
}

.nav-parent[aria-expanded="true"] .submenu-arrow {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-top: 2px solid #2e7d32;
}

/* Submenu Show States */
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.nav-parent[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: none;
}

.submenu a:hover,
.submenu a:focus {
  background-color: #e8f5e8;
  color: #1b5e20;
  padding-left: 25px;
}

.submenu a.active {
  background-color: #2e7d32;
  color: white;
}

/* Main Content */
.main-content {
  background: white;
  margin: 30px auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 500px;
  flex: 1 0 auto;
}

/* Typography */
h1,
h2,
h3 {
  color: #2e7d32;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  font-weight: 300;
  border-bottom: 3px solid #2e7d32;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h2 {
  font-size: 2em;
  font-weight: 400;
  margin-top: 30px;
}

h3 {
  font-size: 1.4em;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-secondary:hover {
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-danger:hover {
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Button Size Modifiers */
.btn--small {
  padding: 6px 12px;
  font-size: 0.85em;
  border-radius: 4px;
  margin: 2px;
}

.btn--tiny {
  font-size: 0.8em;
  padding: 8px 12px;
  border-radius: 20px;
  margin: 0;
  white-space: nowrap;
}

/* Unified button hover effects */
.btn:hover,
.btn--small:hover,
.btn--tiny:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-secondary.btn--small:hover {
  box-shadow: 0 3px 8px rgba(108, 117, 125, 0.25);
}

/* Legacy button classes */
.btn-small {
  padding: 6px 12px;
  font-size: 0.85em;
  border-radius: 4px;
  margin: 2px;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(46, 125, 50, 0.25);
}

.btn-details {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: white !important;
  font-size: 0.8em;
  padding: 8px 12px;
  border-radius: 20px;
  margin: 0;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-details:hover {
  background: linear-gradient(135deg, #1b5e20 0%, #0d4710 100%);
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.btn-details:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
  color: white !important;
}

/* Tables - Unified System */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table th {
  background: transparent;
  color: #222;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1em;
  border-bottom: 2px solid #2e7d32;
}

.table--gradient-header th {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: white;
  border-bottom: none;
}

.table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}

.table tr:hover {
  background-color: #f8f9fa;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Legacy .events-table support */
.events-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.events-table th {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1em;
}

.events-table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}

.events-table tr:hover {
  background-color: #f8f9fa;
}

.events-table tr:last-child td {
  border-bottom: none;
}

/* Spaltenbreiten für Termine-Tabelle */
.events-table .date-col {
  width: 20%;
  min-width: 140px;
}

.events-table .type-col {
  width: 15%;
  min-width: 120px;
}

.events-table .title-col {
  width: 55%;
}

.events-table .actions-col {
  width: 10%;
  min-width: 100px;
  text-align: center;
}

.date-cell {
  white-space: nowrap;
  font-weight: bold;
  min-width: 140px;
  color: #2e7d32;
  font-size: 1.1em;
  vertical-align: top;
}

.date-cell strong {
  display: block;
  font-size: 1.1em;
  color: #1b5e20;
}

.date-weekday {
  color: #6c757d;
  font-weight: normal;
  font-size: 0.9em;
  display: block;
  margin-top: 3px;
}

.title-cell {
  color: #333;
  vertical-align: top;
}

.event-title-main {
  font-weight: bold;
  font-size: 1.1em;
  color: #1b5e20;
  margin-bottom: 8px;
}

.event-description-inline {
  color: #555;
  line-height: 1.4;
  font-size: 0.95em;
  font-weight: normal !important;
}

/* Type-Cell Styling */
.type-cell {
  text-align: center;
  vertical-align: top;
}

/* Actions Cell Styling */
.actions-cell {
  text-align: center;
  vertical-align: top;
}

/* Links in Titel-Zellen */
.title-cell a {
  color: #1b5e20;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.title-cell a:hover,
.title-cell a:focus {
  color: #2e7d32;
  text-decoration: underline;
}

.title-cell a:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

.description-cell {
  color: #555;
  line-height: 1.5;
}

/* Styles für abgesagte Termine */
.cancelled-event {
  opacity: 0.7;
  background-color: #ffebee !important;
}

.cancelled-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ffcdd2, #ffebee);
  border-left: 4px solid #f44336;
  border-radius: 4px;
  color: #d32f2f;
  font-size: 0.9em;
  font-weight: normal !important;
}

/* Styles für unveröffentlichte Events (subtiler) */
.unpublished-event {
  background-color: #f8f9fb !important;
  border-left: 3px solid #9e9e9e;
}

.unpublished-notice {
  margin-top: 8px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #f5f5f5, #eeeeee);
  border-left: 3px solid #9e9e9e;
  border-radius: 3px;
  color: #666;
  font-size: 0.8em;
  font-weight: normal !important;
}

/* Badge-Styles für Entwürfe */
.badge-draft {
  opacity: 0.8;
  border: 1px dashed rgba(255, 255, 255, 0.5);
}

.draft-indicator {
  font-weight: bold;
  margin-left: 3px;
  opacity: 0.7;
}

/* Titel-Styles für Entwürfe */
.title-draft {
  opacity: 0.85;
  position: relative;
}

.draft-badge {
  display: inline-block;
  background: #9e9e9e;
  color: white;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 8px;
  font-weight: normal;
  vertical-align: middle;
}

/* Beschreibung-Styles für Entwürfe */
.description-draft {
  opacity: 0.8;
  font-style: italic;
}

/* Button-Styles für Entwürfe */
.btn-draft {
  opacity: 0.85;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.btn-draft:hover {
  opacity: 1;
}

/* Seiten Titel */
.page-title .icon {
  margin-right: 0.4rem;
  font-size: 1.1em;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

/* Form-Abstände über Modifier-Klassen am Form-Tag */
.form-tight .form-group {
  margin-bottom: 12px;
}

.form-dense .form-group {
  margin-bottom: 8px;
}

.form-spacious .form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2a5298;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* Forms - Allgemeine Basis-Klasse */
.form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 24px;
}

.form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form label {
  font-weight: 500;
  color: #2e7d32;
}

/* Automatisches Required-Sternchen */
.form label[data-required="true"]::after {
  content: " *";
  font-weight: bold;
  margin-left: 2px;
}

/* Alternative: Moderne Browser mit :has() Selektor */
.form label:has(+ input:required)::after,
.form label:has(+ select:required)::after,
.form label:has(+ textarea:required)::after {
  content: " *";
  font-weight: bold;
  margin-left: 2px;
}

.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form select,
.form textarea {
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1em;
  background: #f8f9fa;
  transition: border-color 0.2s;
}

/* Spezielle Select-Styles */
.form select {
  cursor: pointer;
  appearance: none; /* Entfernt Standard-Dropdown-Arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 32px; /* Platz für Custom-Arrow */
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #2e7d32;
  outline: none;
}

/* .form .btn {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 0;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form .btn:hover {
  background: #1b5e20;
} */

/* Form Width Modifiers */
.form--narrow {
  max-width: 400px;
  margin: 40px auto;
}

.form--wide {
  max-width: 600px;
  margin: 20px auto;
}

.form--full {
  width: 100%;
  margin: 20px 0;
}

.form--compact {
  max-width: 350px;
  margin: 20px auto;
  padding: 20px;
  gap: 12px;
}

/* Legacy form variants */
.form-login {
  max-width: 400px;
  margin: 40px auto;
}

.form-wide {
  max-width: 600px;
  margin: 20px auto;
}

.form-full {
  width: 100%;
  margin: 20px 0;
}

.form-compact {
  max-width: 350px;
  margin: 20px auto;
  padding: 20px;
  gap: 12px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  width: 100%;
}

.form-actions .btn,
.form-actions button.btn {
  padding: 12px 25px;
  font-size: 1rem;
  line-height: 1.5;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Sicherstellen, dass alle Buttons gleich aussehen */
.form-actions button.btn {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
}

/* Responsive: Mobile Buttons untereinander */
@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .form-actions .btn,
  .form-actions button.btn {
    width: 100%;
  }
}

/* Alert Messages */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid;
}

.alert-success {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

/* Error Message */
.error-message {
  color: #c62828;
  background: #ffeaea;
  border: 1px solid #c62828;
  border-radius: 4px;
  padding: 10px;
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}

/* Cards - Unified System */
.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card--info {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
  border-left: 4px solid #2e7d32;
}

.card--accent-left {
  border-left: 4px solid #2e7d32;
}

.card--highlight {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
  padding: 25px;
  margin: 30px 0;
  text-align: center;
}

.card--bordered {
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.card--bordered:hover,
.card--bordered:focus-within {
  border-color: #2e7d32;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
  transform: translateY(-2px);
}

.card--benefit {
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card--benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Legacy class names (kept for backwards compatibility) */
.info-box {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c8 100%);
  border-left: 4px solid #2e7d32;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.info-box h3 {
  margin-top: 0;
  color: #1b5e20;
}

.card h3,
.info-box h3 {
  margin-top: 0;
  color: #1b5e20;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

.footer p {
  margin: 0;
}

.footer .footer-info {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 0.9em;
}

/* Impressum-Link im Footer */
.footer a[href="/home/impressum"] {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}

.footer a[href="/home/impressum"]:hover {
  text-decoration: underline;
}

/* Event Navigation */
.event-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.event-nav .btn {
  margin: 0;
  white-space: nowrap;
}

/* Event-spezifische Badges */
.badge-clubabend {
  background-color: #17a2b8;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;
}

.badge-veranstaltung {
  background-color: #6f42c1;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;
}

.badge-status-aktiv {
  background-color: #28a745;
  color: white;
}

.badge-status-abgesagt {
  background-color: #dc3545;
  color: white;
}

.badge-status-archiviert {
  background-color: #6c757d;
  color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .main-content {
    margin: 20px auto;
    padding: 20px;
  }

  .header-content {
    flex-direction: row;
    gap: 15px;
  }

  .header-logo {
    height: 80px;
  }

  .header h1 {
    font-size: 2.2em;
  }

  .header .subtitle {
    font-size: 1.1em;
  }

  .nav-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    border-bottom: none;
    padding: 15px 20px;
  }

  .events-table {
    font-size: 0.9em;
  }

  .events-table th,
  .events-table td {
    padding: 10px;
  }

  .date-cell {
    min-width: auto;
    font-size: 1em;
  }

  .event-title-main {
    font-size: 1em;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid #2e7d32;
    margin-left: 20px;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease;
  }

  .nav-parent[aria-expanded="true"] + .submenu {
    max-height: 300px;
  }

  .submenu a {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .submenu a:hover {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 60px;
  }

  .header h1 {
    font-size: 1.8em;
  }

  .header .subtitle {
    font-size: 0.95em;
  }

  .main-content {
    padding: 15px;
  }

  .events-table {
    font-size: 0.8em;
  }

  .events-table th,
  .events-table td {
    padding: 8px;
  }

  .date-cell strong {
    font-size: 0.95em;
  }

  .event-title-main {
    font-size: 0.95em;
  }

  .event-description-inline {
    font-size: 0.85em;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    text-align: center;
  }
}

/* ========================================
   CARDS & BOXES - Verwendet
   ======================================== */

/* Grid System - Unified with CSS Custom Properties */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 280px), 1fr));
  gap: var(--grid-gap, var(--grid-gap-md));
  margin: var(--grid-margin, 2rem 0);
}

/* Legacy grid classes */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* Cards & Boxes - Legacy Support */
.info-card {
  background: white;
  padding: 0px 25px 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #2e7d32;
}

/* Admin-Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap-sm);
  margin-top: var(--space-sm);
}

.dashboard-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.dashboard-card:hover,
.dashboard-card:focus-within {
  border-color: #2e7d32;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
  transform: translateY(-2px);
}

.dashboard-card h3,
.card--bordered h3 {
  margin-top: 0;
  color: #1b5e20;
}

.dashboard-card p {
  color: #666;
  margin: 15px 0;
  line-height: 1.5;
}

/* Keyboard Focus für Dashboard-Cards */
.dashboard-card a:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   ADMIN TABELLEN
   ======================================== */

/* Remove duplicate .table definition - already unified above */

.table th.col-actions {
  text-align: center;
  width: 150px;
}

/* Spezielle Styles für Tabellen-Actions */
.table .col-actions {
  white-space: nowrap;
  text-align: center;
}

.table .col-actions .btn {
  margin: 1px 2px;
  font-size: 0.8em;
  padding: 4px 8px;
  border-radius: 3px;
}

/* Responsive Button Text - versteckt auf kleinen Bildschirmen */
@media (max-width: 768px) {
  .btn .btn-text {
    display: none;
  }
}

@media (min-width: 769px) {
  .btn .btn-text {
    display: inline;
  }
}

/* Responsive Admin-Tabellen */
@media (max-width: 768px) {
  .table {
    border: 0;
  }

  .table thead {
    display: none;
  }

  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .table td {
    border: none;
    padding: 8px 0;
    position: relative;
  }

  /* Data Labels vor jedem Wert anzeigen */
  .table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #2e7d32;
    display: inline-block;
    min-width: 120px;
  }

  .table .col-actions {
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
  }

  .table .col-actions::before {
    display: none;
  }

  /* Responsive Events-Tabelle - gleiches Verhalten */
  .events-table {
    border: 0;
  }

  .events-table thead {
    display: none;
  }

  .events-table tbody,
  .events-table tr,
  .events-table td {
    display: block;
    width: 100%;
  }

  .events-table tr {
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .events-table td {
    border: none;
    padding: 8px 0;
    position: relative;
  }

  /* Data Labels für Events-Tabelle */
  .events-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #2e7d32;
    display: inline-block;
    min-width: 100px;
  }

  /* Actions Cell in Events-Tabelle */
  .events-table .actions-cell {
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
  }

  .events-table .actions-cell::before {
    display: none;
  }

  /* Mobile-spezifische Anpassungen für Events */
  .events-table .date-cell {
    margin-bottom: 8px;
  }

  .events-table .type-cell {
    margin-bottom: 8px;
  }

  .events-table .title-cell {
    margin-bottom: 8px;
  }

  /* Badge-Anpassung für Mobile */
  .events-table .badge {
    display: inline-block;
    margin-top: 2px;
  }

  /* Details-Button für Mobile */
  .events-table .btn-details {
    margin-top: 5px;
  }
}

/* Zusätzliche Barrierefreiheits-Styles */
.text-muted {
  color: #6c757d;
  font-style: italic;
}

.status-indicator.active {
  color: #28a745;
  font-weight: 500;
}

.status-indicator.inactive {
  color: #dc3545;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.875em;
  font-weight: 500;
  border-radius: 0.375rem;
  text-transform: capitalize;
}

.badge-admin {
  background-color: #dc3545;
  color: white;
}

.badge-editor {
  background-color: #fd7e14;
  color: white;
}

.badge-mitglied {
  background-color: #6c757d;
  color: white;
}

/* Focus-Styles für bessere Keyboard-Navigation */
.table a:focus,
.btn:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

/* Barrierefreie Formulare */
.form-help {
  font-size: 0.875em;
  color: #6c757d;
  margin-top: 4px;
  line-height: 1.4;
}

.form-error {
  font-size: 0.875em;
  color: #dc3545;
  margin-top: 4px;
  font-weight: 500;
}

.form-legend {
  font-size: 1em;
  font-weight: 500;
  color: #2e7d32;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

/* Fieldset Styles */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset.form-row {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin: 0;
}

/* Required Field Indicators */
.form label[data-required="true"]::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
  margin-left: 2px;
}

/* Focus States für bessere Keyboard Navigation */
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
  border-color: #2e7d32;
}

/* Error States */
.form input[aria-invalid="true"],
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Keyboard Shortcut Display */
kbd {
  background-color: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #3c4043;
  display: inline-block;
  font-family: "Google Sans Mono", Consolas, "Courier New", monospace;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1.25rem;
  padding: 2px 6px;
  text-transform: uppercase;
}

/* ========================================
   FORM LAYOUTS
   ======================================== */

/* Form Row Layout für nebeneinander liegende Felder */
.form-row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-col label {
  font-weight: 500;
  color: #2e7d32;
}

.form-col input,
.form-col select,
.form-col textarea {
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1em;
  background: #f8f9fa;
  transition: border-color 0.2s;
}

.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
  border-color: #2e7d32;
  outline: none;
}

/* Responsive: Mobile Felder untereinander */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========================================
   QUILL EDITOR
   ======================================== */

/* Quill Editor Anpassungen für Admin-Theme */
.ql-editor {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  min-height: 200px;
  padding: 12px;
}

.ql-toolbar {
  background-color: #f8f9fa;
  border-color: #bbb;
}

.ql-toolbar .ql-picker-label,
.ql-toolbar button {
  color: #333;
}

.ql-toolbar button:hover,
.ql-toolbar .ql-picker-label:hover {
  color: #2e7d32;
}

.ql-toolbar button.ql-active,
.ql-toolbar .ql-picker-label.ql-active {
  color: #2e7d32;
}

.ql-container {
  border-color: #bbb;
  font-size: 1em;
}

.ql-editor.ql-blank::before {
  color: #6c757d;
  font-style: italic;
}

/* Fix für Quill Editor Focus */
.ql-editor:focus {
  outline: none;
  border-color: #2e7d32;
}

/* Quill Toolbar Button Fixes */
.ql-toolbar button {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.ql-toolbar button svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   EVENT FORM SPEZIFISCHE STYLES
   ======================================== */

/* Event Form - Zeit-Felder Handling */
.form-row[style*="display: none"] {
  display: none !important;
}

/* Zeit-Feld versteckt aber Platz belegend */
#start_time_field[style*="visibility: hidden"] {
  visibility: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

#start_time_field[style*="visibility: visible"] {
  visibility: visible !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Bessere Ausrichtung für Zeit-Felder */
#start_time_field {
  display: flex;
}

/* Sicherstellen dass form-col richtig aligned sind */
.form-row .form-col {
  align-items: flex-start;
}

/* Event Form - Feste Spaltenbreiten für konsistentes Layout */
.form-col-date {
  flex: 1; /* Datum bekommt gleichen Anteil */
  min-width: 200px; /* Mindestbreite für Datum-Felder */
}

.form-col-time {
  flex: 1; /* Zeit bekommt gleichen Anteil */
  min-width: 150px; /* Mindestbreite für Zeit-Input */
}

/* ALLE Datum-Inputs bekommen die gleiche Breite */
.form-row .form-col:first-child {
  flex: 1; /* Erste Spalte (immer Datum) bekommt gleichen Anteil */
  min-width: 200px;
}

.form-row .form-col:last-child {
  flex: 1; /* Zweite Spalte (Zeit oder leer) bekommt gleichen Anteil */
  min-width: 150px;
}

/* Event-spezifische Feldbreiten - Korrigierte Regeln */
.form-col select[name="event_type"] {
  width: 100%; /* Nimmt vollen Spaltenplatz ein */
}

.form-col select[name="status"] {
  max-width: 150px; /* Begrenzt auf Zeit-Input-Breite */
}

/* Date Input soll immer vollen Spaltenplatz einnehmen */
.form-col input[name="start_date"] {
  width: 100%;
}

/* Date/Time Input Styling */
.form input[type="date"],
.form input[type="time"] {
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1em;
  background: #f8f9fa;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}

.form input[type="date"]:focus,
.form input[type="time"]:focus {
  border-color: #2e7d32;
  outline: none;
}

/* Fix für Time Input Alignment */
.form-col input[type="time"] {
  max-width: 150px;
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */

/* Success Message */
.success-message {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 10px;
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}

/* Clubabenliste Hauptseite*/

.clubabende-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.clubabend-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.clubabend-date {
  min-width: 80px;
  font-size: 1em;
  color: #155724;
}
.clubabend-title {
  font-weight: 500;
  font-size: 1em;
  color: #222;
}
.clubabend-desc {
  font-size: 0.92em;
  color: #666;
  margin-top: 0.2em;
}

/* Content-Seiten allgemein */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.7;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2e7d32;
}

.page-title .icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* Intro-Box */
.intro-box {
  background: #f8f9fa;
  border-left: 4px solid #2a5d8f;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.lead-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Honeypot-Feld für Spam-Schutz: für echte Nutzer unsichtbar */
.hp-field {
  display: none !important;
  visibility: hidden;
}

.highlight-text {
  background: #fff3cd;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Section Divider */
.section-divider {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 2.5rem 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #2e7d32;
}

.section-title .icon {
  margin-right: 0.5rem;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap-md);
  margin: 2rem 0;
}

.benefit-card,
.card--benefit {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.benefit-card:hover,
.card--benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2e7d32;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2e7d32;
}

.benefit-card p {
  color: #555;
  font-size: 0.95rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #2a5d8f 0%, #4a7ba7 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
}

.cta-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.6rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-icon {
    font-size: 2.5rem;
  }
}

/* ================================
   Impressum Page Styles
   ================================ */

.impressum-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.impressum-title {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 1rem;
}

.impressum-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Card Grid Layout */
.impressum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.impressum-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e8f5e8;
}

.impressum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.card-header {
  background: var(--gradient-light-green);
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  flex-shrink: 0;
  stroke-width: 2.5;
}

.card-header h3 {
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.card-content {
  padding: 1.5rem;
}

.card-content p {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text);
}

/* Legal Section */
.impressum-legal {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-top: 3rem;
  border: 1px solid #e8f5e8;
}

.legal-title {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
  font-weight: 600;
}

.legal-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fdf8;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-primary);
}

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

.legal-section h4 {
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-section p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}

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

/* Responsive Design for Impressum */
@media (max-width: 768px) {
  .impressum-page {
    padding: 1.5rem 0.75rem;
  }

  .impressum-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .impressum-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-header {
    padding: 1.25rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .card-icon {
    width: 28px;
    height: 28px;
  }

  .card-content {
    padding: 1.25rem;
  }

  .impressum-legal {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .legal-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .legal-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .legal-section h4 {
    font-size: 1.1rem;
  }

  .legal-section p {
    font-size: 0.95rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .impressum-title {
    font-size: 1.75rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .card-icon {
    width: 24px;
    height: 24px;
  }
}

/* Error Pages */
.error-page {
  text-align: center;
  max-width: 700px;
  margin: 60px auto;
}

.error-page h1 {
  font-size: 2.5em;
  color: var(--color-text);
  margin-bottom: 30px;
}

.error-page .info-box {
  text-align: center;
}

.error-page .info-box h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.error-page .info-box p {
  margin: 15px 0;
  font-size: 1.05em;
  line-height: 1.6;
}

.error-page .btn {
  margin-top: 20px;
  display: inline-block;
}
