  :root {
  --purple: #7A2582;
  --blue: #00338D;
  --gold: #EBB700;
  --dark: #55565A;
  --grey: #f2f2f2;
  --green: #e6f4ea;
  --red: #fdecea;
}

* { box-sizing: border-box; }

html {
    font-size: 12px;
	font-family: Arial, sans-serif;
}
	  
body {
  margin: 0;
  background: #F4F4F4;
}

/* ---------------------------------------------------------
   1) Globale Link-Regeln (allgemein)
--------------------------------------------------------- */
a {
    text-decoration: none;
    transition: 0.2s ease;
}

/* ---------------------------------------------------------
   2) Navigation
--------------------------------------------------------- */
.topbar {
  background: var(--blue);
  color: #fff;
  align-items: center;
}

.nav-container {
  background: var(--blue);
  color: #fff;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

nav a {
  color: #fff;
  margin-left: 16px;
  font-weight: bold;
}

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

/* ---------------------------------------------------------
   3) Main Content
--------------------------------------------------------- */
main {
  background: #fff;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Standard-Linkfarbe im Main-Bereich */
main a {
    color: #0066cc;
}

/* ---------------------------------------------------------
   4) Tabellen
--------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--blue);
  color: #fff;
  padding: 10px;
}

td {
  padding: 8px;
  border-bottom: none;
}
	  
tr:nth-child(odd) {
    background: var(--grey);
}

.top-table  {
    width: auto;
    background: var(--blue);
}
	  
.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #fff;
	font-size: 10px;
}

.event-table th {
    background: var(--blue);
    color: white;
    padding: 0.4rem;
    text-align: left;
}

.event-table td {
    padding: 0.4rem;
    border-bottom: 1px solid #ddd;
}
	  
.event-table tr:nth-child(odd) {
    background: var(--grey);
}

/* ---------------------------------------------------------
   5) Sortier-Pfeile (WICHTIG: ganz am Ende!)
--------------------------------------------------------- */
.event-table a.sort {
    color: #ffffff !important;   /* überschreibt main a */
    margin-left: 4px;
}

.event-table a.sort:hover {
    color: #ffcc00 !important;
    cursor: pointer;
}

/* ---------------------------------------------------------
   6) Buttons, Alerts, Responsive
--------------------------------------------------------- */
input,
select,
textarea {
    font-size: 1rem; /* entspricht der globalen Basisgröße */
}
	  
button, .btn {
  background: var(--gold);
  border: none;
  padding:6px 12px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-cancel {
    display: inline-block;
    padding: 6px 12px;
    background: #ccc;
    color: #000;
    border-radius: 5px;
}

.btn-cancel:hover {
    background: #bbb;
}

.btn-danger {
    display: inline-block;
    padding: 6px 12px;
    background: #c62828; /* kräftiges Rot */
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.btn-danger:hover {
    background: #a61f1f;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
}


.success {
    background: var(--green);
    border: 1px solid #2e7d32;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.error {
    background: var(--red);
    border: 1px solid #c62828;
    padding: 10px;
    border-radius: 6px;
}

.note {
    background: var(--grey);
    border: 1px solid var(--blue);
    padding: 10px;
    border-radius: 6px;
}
	  
.bg-green {
    background-color: var(--green);
}

.bg-red {
    background-color: var(--red); 
}
	  
	  
/* ---------------------------------------------------------
   Buttons oben (Kalenderansicht / Listenansichten)
--------------------------------------------------------- */
.top-buttons {
    margin-bottom: 20px;
}

.top-buttons a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gold);
    color: #000;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    border: none;
}

.top-buttons a:hover {
    background: #d4a300;
    text-decoration: none;
}

/* --- Filterbar (Lions Design) --- */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--blue);
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 25px;
    color: white;
}

.filter-item {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-item input[type="checkbox"] {
    transform: scale(1.3);
    accent-color: #ffd700; /* Lions Gold */
}

.filter-button {
    background: var(--gold);
    color: #003366;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.filter-button:hover {
    background: #ffcc00;
}






/* ---------------------------------------------------------
   Kachel-Container
--------------------------------------------------------- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* ---------------------------------------------------------
   Einzelne Kachel
--------------------------------------------------------- */
.tile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.1s ease-in-out;
}

.tile:hover {
    transform: scale(1.02);
}

.tile h4 {
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 14px;
}

.tile .date {
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--dark);
}

.tile p {
    margin: 4px 0;
    font-size: 12px;
}

/* --- Kachel-Farben --- */
.tile-club {
    background: #ffffff;
    border: 1px solid #ddd;
}

.tile-birthday {
    background: #f2f2f2;
    border: 1px solid #ccc;
}


/* ---------------------------------------------------------
   Monats- und Clubjahr-Überschriften
--------------------------------------------------------- */
.clubyear-title {
    margin-top: 40px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--blue);
    color: var(--blue);
    font-size: 18px;
}

.month-title {
    margin-top: 25px;
    color: var(--blue);
    font-size: 16px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 600px) {
    .tile {
        padding: 10px;
    }
}
	  
	  

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 10px;
  }
  nav a {
    display: inline-block;
    margin: 6px 10px 0 0;
  }
}	  