.haupt-container h1 {
	font-family: "Leckerli One", serif;
	position: absolute;
	top: 500px;  /* Abstand vom oberen Rand */
	left: 65%;
   /* transform: translateX(-50%); */
	color: white;
	padding: 10px;
	border-radius: 6px;
	font-size: 100px;
	color: black;
}

.hauptimg {
	width: 100%; 
	height: 700px;
}

.image-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 20px;
  margin-bottom: 20px;
}

.image-wrapper {
  width: 400px;
  height: auto;
  transition: transform 0.5s ease;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
  display: block;
}

.dance-promo {
    width: 100%;
    background: linear-gradient(90deg, #ffb6b9, #fae3d9);
    color: #2b2b2b;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
  }

  .dance-promo h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: floatText 4s ease-in-out infinite alternate;
  }

  .dance-promo p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
  }

  .dance-promo a.cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    background-color: #ff4f81;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .dance-promo a.cta-button:hover {
    transform: scale(1.05);
    background-color: #e64470;
  }

  @keyframes floatText {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
  }

  /* Optional: kleine Tanzfiguren im Hintergrund */
  .dance-promo::after {
    content: "💃🕺";
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
  }
  
  
  /* -----------------------------------------------------------------------------------------*/
  
   @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;600;800&display=swap');

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: sans-serif, 'Outfit', arial, 'Andika';
      background: linear-gradient(135deg, #f5f6fa, #ffffff);
      color: #111;
      overflow-x: hidden;
    }

    header {
      text-align: center;
      padding: 80px 20px 60px;
      background: radial-gradient(circle at center, #1f1f1f, #000);
      color: white;
    }

    header h1 {
      font-size: 3.5rem;
      animation: fadeDown 1s ease-out forwards;
    }

    header p {
      margin-top: 20px;
      font-size: 1.2rem;
      color: #ccc;
      animation: fadeUp 1.2s ease-out forwards;
    }

    @keyframes fadeDown {
      0% { opacity: 0; transform: translateY(-30px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeUp {
      0% { opacity: 0; transform: translateY(30px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .kurse-container {
      display: flex;
      flex-direction: column;
      gap: 40px;
      padding: 60px 20px;
      max-width: 1100px;
      margin: auto;
    }

    .kurs-card {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 6px;
      padding: 40px;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.07);
      backdrop-filter: blur(8px);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      animation: fadeIn 0.8s ease both;
    }

    .kurs-card:nth-child(3n+1) {
      background: linear-gradient(135deg, #fdfbfb, #ebedee);
    }
    .kurs-card:nth-child(3n+2) {
      background: linear-gradient(135deg, #f0f4c3, #ffffff);
    }
    .kurs-card:nth-child(3n+3) {
      background: linear-gradient(135deg, #e1f5fe, #ffffff);
    }

    .kurs-card:hover {
      transform: scale(1.02);
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    }

    .kurs-title {
      font-size: 2rem;
      font-weight: 800;
      color: #1a1a1a;
      margin-bottom: 10px;
    }

    .kurs-description {
      font-size: 1rem;
      color: #444;
      margin-bottom: 30px;
      line-height: 1.6;
    }

    .kurs-meta-horizontal {
      display: flex;
      justify-content: space-between;
      gap: 30px;
      margin-bottom: 20px;
      text-align: center;
      flex-wrap: wrap;
    }

    .meta-block {
      border-radius: 6px;
      padding: 15px 25px;
      flex: 1 1 30%;
      box-shadow: 0 8px 20px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      font-size: 0.95rem;
    }

    .meta-block:hover {
      transform: scale(1.03);
      box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }
	
	.status-dot {
      width: 14px;
      height: 14px;
      display: inline-block;
      border-radius: 50%;
      margin-right: 10px;
    }

    .grün { background: #4CAF50; }
    .gelb { background: #FFC107; }
    .rot { background: #F44336; }

	
    .actions {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 25px;
      flex-wrap: wrap;
    }

    .btn {
      padding: 12px 28px;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
	  margin: auto;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    .btn-orange {
      background: #f5713b;
      color: white;
    }
	
	.btn-orange:hover {
	  transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	  background-color: #f36a32;
	}
	
    .btn-warn {
      background: #e91e63;
      color: white;
    }

    .btn-delete {
      background: #ff3d00;
      color: white;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideFromLeft {
      0% { opacity: 0; transform: translateX(-40px); }
      100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideFromRight {
      0% { opacity: 0; transform: translateX(40px); }
      100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideFromBottom {
      0% { opacity: 0; transform: translateY(40px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .slide-left { animation: slideFromLeft 1s ease both; }
    .slide-right { animation: slideFromRight 1s ease both; }
    .slide-up { animation: slideFromBottom 1s ease both; }
	
	.zielgruppe-label {
  position: absolute;
  width: 80px;
  top: 20px;
  text-align: center;
  right: 30px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background-color: #777;
  z-index: 2;
}


.ort-label {
  position: absolute;
  top: 20px;
  right: 120px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background-color: #777;
  z-index: 2;
}

.kurs-card {
  position: relative;
}

.zielgruppe-erwachsene {
  background-color: #007BFF;
}

.zielgruppe-kinder {
  background-color: #e91e63;
}


/*  ------------------------Filter ----------------------------------------------*/



/* Der Container für das Filtermodul */
#filterContainer {
    display: grid;                            /* Grid Layout */
    grid-template-columns: repeat(5, 1fr);    /* 4 gleich breite Spalten */
    gap: 20px;                                /* Abstand zwischen den Feldern */
    padding: 25px;                            /* Innenabstand */
    background-color: #fdfdfd;                /* Helles Hintergrundfeld */
    border: 1px solid #e0e0e0;                /* Rand */
    border-radius: 6px;                      /* Abgerundete Ecken */
    margin-bottom: 30px;                      /* Abstand zum nächsten Element */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); /* Dezenter Schatten */
    align-items: center;                      /* Zentriert die Felder vertikal */
}

/* Jede Filtergruppe (Label + Input) */
.filter-group {
    display: flex;                            /* Flexbox für vertikale Anordnung */
    flex-direction: column;                   /* Label oben, Input unten */
    gap: 6px;                                 /* Abstand zwischen Label und Input */
    justify-self: center;                     /* Zentriert jedes Filterfeld horizontal */
    width: 100%;                              /* Maximale Breite der Filtergruppe */
    max-width: 280px;                         /* Maximale Breite für jedes Inputfeld */
}

/* Stil für das Label */
.filter-group label {
    font-size: 14px;                          /* Kleinere Schriftgröße */
    font-weight: 500;                         /* Halbfettdruck */
    color: #444;                              /* Dunkelgraue Textfarbe */
}

/* Stil für alle Input-Felder */
.filter-group input {
    padding: 10px 12px;                       /* Innenabstand */
    font-size: 15px;                          /* Lesbare Schriftgröße */
    border: 1px solid #ccc;                   /* Hellgrauer Rand */
    border-radius: 6px;                       /* Abgerundete Ecken */
    background-color: #fff;                   /* Weißer Hintergrund */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Fokus-Stil für Input */
.filter-group input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Datum-Feld (soll genauso aussehen wie andere Inputs) */
.filter-group input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Entfernen der Aufwärts-/Abwärtspfeile in Zahleneingabefeldern */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Stil für das Select-Feld */
.filter-group select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Fokus-Stil für Select */
.filter-group select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Container für die Buttons unten */
.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

/* Stil für beide Buttons */
.filter-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/* Filtern-Button */
.filter-actions button:first-child {
    background-color: #007BFF;
    color: #fff;
}
.filter-actions button:first-child:hover {
    background-color: #0056b3;
}

/* Zurücksetzen-Button */
.filter-actions button:last-child {
    background-color: #6c757d;
    color: #fff;
}
.filter-actions button:last-child:hover {
    background-color: #5a6268;
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 600px) {
  #filterContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group input,
  .filter-group select {
    width: 100%;               /* Nimmt gesamte Breite */
    max-width: 100%;           /* Keine Begrenzung durch z. B. 280px */
    box-sizing: border-box;
    height: 44px;              /* Einheitliche Höhe */
    padding: 10px 12px;
    font-size: 15px;
  }

  .filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .filter-actions button {
    width: 100%;               /* Buttons über ganze Breite */
    padding: 12px;
    font-size: 1rem;
  }
}


/* --------------------Anmeldungen inteface ---------------------------*/


.animated-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.animated-checkbox::before {
    content: '✗';
    color: red;
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 3px;
    transition: all 0.2s ease;
}

.animated-checkbox:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 0 6px #4CAF50;
    transform: scale(1.2);
}

.animated-checkbox:checked::before {
    content: '✓';
    color: white;
    left: 4px;
}



.karte {
        border: 2px solid black;
        background: white;
        margin-bottom: 30px;
        padding: 10px;
        width: fit-content;
        min-width: 100%;
    }

    .header {
        display: flex;
        background: darkorange;
        color: white;
        font-weight: bold;
        padding: 10px;
    }

    .header div {
        flex: 1;
    }

    .zeile {
        display: flex;
        border-top: 1px solid black;
        padding: 10px 0;
    }

    .zeile div {
        flex: 1;
    }

    .anzahl {
        display: flex;
        border-top: 2px solid black;
        padding-top: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .loeschen {
        background-color: red;
		text-decoration: none;
        color: white;
        padding: 6px 12px;
        border: none;
        cursor: pointer;
		border-radius: 6px;
    }

    .anzahl {
        font-weight: bold;
    }
	
.aktionen {
  /*display: flex;
  align-items: center;
  gap: 30px;*/
  height: 100%;
  margin: auto;
}


/* ------------------------------ Ende ameldungen interface */


.status-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* verhindert, dass der Kreis auf eine neue Zeile springt */
  max-width: 100%;
}

.kurs-status {
  flex: 1;
}

.grüner-kreis,
.gelber-kreis,
.roter-kreis {
  width: 40px;
  height: 40px;
  display: inline-flex; /* statt inline-block */
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px; /* wie bei .X-kreis */
  font-size: 20px;
}

.grüner-kreis {
  background-color: #639C48;
}

.gelber-kreis {
  background-color: #FFC300;
}

.roter-kreis {
  background-color: #F53462;
}


.X-kreis {
  width: 40px;
  height: 40px;
  display: inline-flex; /* statt inline-block */
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px; /* wie bei .X-kreis */
  font-size: 20px;
  background-color: #e60000; /* kräftiges Rot *        /* Abstand nach oben */
}

.grüner-kreis::before {
    content: "✓"; /* Häkchen als Beispiel */
    color: green;
    font-size: 16px;
}

.gelber-kreis::before {
    content: "?"; /* Warnsymbol */
    color: orange;
    font-size: 16px;
}

.roter-kreis::before {
    content: "🚨"; /* Kreuzsymbol */
    color: red;
    font-size: 16px;
}

.X-kreis::before {
    content: "✖";
    color: red;
    font-weight: bold;
}

	
	/*------------------------------------Anmledung bestätigen kurs ------------------------------------------*/


/* Grundlegendes Pop-up-Layout */
.popup-box {
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: none;
    opacity: 1;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

/* Animation beim Ausblenden */
.popup-box.hidden {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

/* Schließen-Button */
.close-btn {
    float: right;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #555;
}

/* Kommentarfeld */
.comment-text {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

/* Button mit Ladeanimation und Checkmark */
.secure-login-btn {
    background-color: #FF5733;
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 6px;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}


/* Ladeanimation und Checkmark-Stile */
.loader, .checkmark {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
}

.loader {
    border: 3px solid white;
    border-top: 3px solid transparent;
    animation: spin 1s linear infinite;
}

.checkmark {
    font-size: 18px;
    color: white;
}

/* Spinning-Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Eingabefelder (readonly) */
input[type="text"],
input[type="email"] {
    width: 90%;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f8f8;
    box-sizing: border-box;
}

.form-control {
  display: block;
  width: 90%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 3em;
}

.h1_login {
	margin-left: 5%;
}
/* Labels */
label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

/* Allgemeine Verbesserungen fürs Scrollen */
html, body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ✅ Für sehr kleine Bildschirme oder niedrige Viewports (z.B. Smartphones) */
@media (max-height: 600px), (max-width: 480px) {
    .popup-box {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
        width: 99%;
        max-width: 100%;
        font-size: 14px;
    }

    .secure-login-btn {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
        padding: 10px;
    }

    .close-btn {
        font-size: 20px;
    }

    .comment-text {
        height: 100px;
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"] {
        font-size: 13px;
        padding: 10px;
    }

    label {
        font-size: 14px;
    }
}

/* ✅ Für Tablets oder kleine Laptops */
@media (max-width: 900px) {
    .popup-box {
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
        width: 90%;
    }

    .secure-login-btn {
        font-size: 15px;
		
    }

    .comment-text {
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"] {
        font-size: 14px;
    }

    label {
        font-size: 15px;
    }
}
	
	/* ende -----------------------------------------------------------------------------*/
	
	.loginformstep {
		border-radius: 6px;
		background-color: white;
		padding-top: 12px;
	}
	
	 .admin-button { 
            display: <?= $isAdmin ? 'block' : 'none' ?>; 
            padding: 10px; 
            background-color: green; 
            color: black; 
            border: none; 
            cursor: pointer; 
            margin-bottom: 10px;
            margin-top: 20px;
            width: 200px;
        }
        .modal { 
            display: none; 
            position: fixed; 
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%); 
            background: white; 
            padding: 20px; 
            border: 1px solid #ccc;
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        }
        .modal input, .modal textarea, .modal button { 
            display: block; 
            width: 100%; 
            margin: 10px 0; 
            padding: 10px;
        }
        .close-btn {
            background-color: red; 
            color: white; 
            border: none; 
            padding: 10px;
            cursor: pointer;
        }
        
        .brearbbtn {
            padding: 4px; 
            background-color: black; 
            color: white; 
            border: none; 
            cursor: pointer; 
            width: 90px;
        }
        
        .loschbtn {
            padding: 6px; 
            background-color: red; 
            color: white; 
            border: none; 
            cursor: pointer; 
            width: 90px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
        }
		
		
		
		
		
/* Select dropo down menu */

select {
  font-size: 0.9rem;
  padding: 2px 15px;
}



.card img {
	  width: 100%;
	  /*height: 340px;*/
	  object-fit: contain;
	  background-color: white;
	  display: block;
	}

    .card a {
      display: block;
      text-decoration: none;
      color: inherit;
    }
		

    .balkenbild {
      width: 100%;
	  
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      margin: 20px 0;
      display: block;
    }
	
	.balkenbild {
      width: 100%;
      height: auto;
      grid-column: span 2;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
	
	.grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      max-width: 800px;
      margin: 0 auto;
    }

    .card {
      background-color: #fff;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.2s ease;
    }

    .card:hover {
      transform: scale(1.02);
    }
	
	.burger {
		font-size: 30px;
		padding: 10px;       /* Fügt Abstand um das Icon hinzu */
	}
	
	/*---------------Anmeldungen Tabelle --------------------*/
	
	table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
	 width: 25%;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

th {
  background-color: #FF5733;
  font-weight: 600;
  color: #333;
}

tr:hover {
  background-color: #f1f1f1;
}

a.loeschen {
  color: #d9534f;
  text-decoration: none;
  font-weight: bold;
}

a.loeschen:hover {
  text-decoration: underline;
}

input.bezahlt-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Animation für Checkbox optional */
.animated-checkbox {
  transition: transform 0.2s ease;
}

.animated-checkbox:checked {
  transform: scale(1.1);
}

#user-info-tooltip {
  position: absolute;
  padding: 10px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
  font-size: 14px;
  color: #000;
}

th:nth-child(1),
    td:nth-child(1) {
        width: 40%;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 30%;
    }

    th:nth-child(3),
    td:nth-child(3),
    th:nth-child(4),
    td:nth-child(4) {
        width: 15%;
    }
	
	
	
	/* Responsives Layout für das Formular */
.form-wrapper {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;
}

/* Animationen (Trüller = Shake oder leichtes FadeIn) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d1f5d3;
    color: #27632a;
}

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

.alert-warning {
    width: 450px;
	display: flex;
	justify-content: center;
}


.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 75%;
  margin: 20px auto;
  text-align: center;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 75%;
  margin: 20px auto;
  text-align: center;
}

.mid-message {
  background-color: #yellow;
  color: #721c24;
  border: 1px solid #yellow;
  padding: 15px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 75%;
  margin: 20px auto;
  text-align: center;
}

.center {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
}

.inhalt {
	width: 90%;
	margin: 0 auto; /* Zentriert horizontal */
}

.hidden-kurs {
    display: none;
}

.kursanmeldung-wrapper {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  padding: 40px 50px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.kursanmeldung-card {
  width: 100%;
}

/* Überschrift linksbündig über den Feldern */
.kursanmeldung-header {
  margin-bottom: 15px;
  text-align: left;
}

.kursanmeldung-titel {
  font-size: 30px;
  font-weight: 700;
  color: #f36a32; /* dein Orange */
}

/* Details Text zentriert unter der Überschrift */
.kursanmeldung-details p {
  font-size: 16px;
  color: #555;
  margin: 6px 0 30px 0;
  text-align: center;
}

.kursanmeldung-form {
  margin-top: 0;
}

/* Formgruppen auf volle Breite, ordentlich untereinander */
.kursanmeldung-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  width: 100%;
}

/* Label linksbündig, direkt über Feldern */
.kursanmeldung-form label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Email Feld zentriert */
.kursanmeldung-email {
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1.8px solid #ccc;
  font-size: 16px;
  text-align: center;
  background-color: #fafafa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: not-allowed;
  color: #666;
}

.kursanmeldung-email:focus {
  outline: none;
  border-color: #f36a32;
  box-shadow: 0 0 6px rgba(243, 106, 50, 0.4);
}

/* Kommentarfeld unter Email, gleiche Breite, zentriert */
.kursanmeldung-kommentar {
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1.8px solid #ccc;
  font-size: 16px;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kursanmeldung-kommentar:focus {
  outline: none;
  border-color: #f36a32;
  box-shadow: 0 0 6px rgba(243, 106, 50, 0.4);
}

/* Linie Abstand */
.kursanmeldung-form hr {
  margin: 35px 0;
  border-color: #e0e0e0;
}

/* Container für Zahlungsmethode zentrieren */
.kursanmeldung-zahlung {
  max-width: 400px;
  margin: 0 auto 35px auto; /* zentriert + Abstand unten */
  padding: 15px 20px;
  border: 1.5px solid #f36a32;
  border-radius: 12px;
  background-color: #fff7f1;
  text-align: left; /* Text linksbündig im Container */
}

.kursanmeldung-zahlung label {
  display: flex;
  align-items: center; /* <-- Vertikale Zentrierung von Button + Text */
  justify-content: flex-start;
  font-weight: 600;
  font-size: 15px;
  color: #f36a32;
  margin-bottom: 15px;
  user-select: none;
  padding-left: 0;
  gap: 10px; /* Schöner Abstand zwischen Button und Text */
  line-height: 1.2;
}

.kursanmeldung-zahlung input[type="radio"] {
  accent-color: #f36a32;
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0; /* kein extra Abstand */
  vertical-align: middle;
  flex-shrink: 0; /* verhindert Zusammenziehen */
}


/* Button ebenfalls zentriert */
.kursanmeldung-button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto; /* zentriert */
  padding: 15px 0;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background-color: #f36a32;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 6px 15px rgba(243, 106, 50, 0.4);
  text-align: center;
}

.kursanmeldung-button:hover,
.kursanmeldung-button:focus {
  background-color: #d95d25;
  box-shadow: 0 8px 18px rgba(217, 93, 37, 0.6);
  outline: none;
}



.nav-guthaben-box {
  display: inline-flex;
  align-items: center;
  background-color: #f36a32;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-left: 10px;
  gap: 8px;
}

.nav-guthaben-plus {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: white;
  color: #f36a32;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav-guthaben-plus:hover {
  background-color: #ffe3d5;
}

/* -----------------------------------------------------------------------------------------------------------*/
/* Container für das Benutzer-Icon */
.nav-user-dropdown {
  position: relative;
  display: inline-block;
}

/* Benutzer-Icon */
.benutzer-icon {
  cursor: pointer;
}

/* Dropdown-Box */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  min-width: 220px;
  border: 1px solid #ccc;
  z-index: 1000;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* Hover zeigt Dropdown */
.nav-user-dropdown:hover .dropdown-content {
  display: block;
}

/* Guthaben-Box Styling */
.nav-guthaben-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.nav-guthaben-text {
  font-weight: bold;
}

.nav-guthaben-plus {
  text-decoration: none;
  color: #28a745;
  font-size: 18px;
  margin-left: 8px;
}

/* Dropdown Buttons */
.dropdown-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* Mobile Fix */
@media (max-width: 768px) {
  .nav-guthaben-box,
  .dropdown-btn {
    display: block;
  }

  .dropdown-content {
    right: 0;
    left: auto;
    top: 100%;
    width: 220px;
  }

  .nav-guthaben-text {
    font-size: 16px;
  }
}

.benutzerinfo-btn {
  display: block;
  width: 40%;
  margin-top: 8px;
}

.center-button {
  display: flex;
  justify-content: center;
}


		.nav-right-container {
  display: flex;
  align-items: center;
  gap: 15px; /* Abstand zwischen den Elementen */
  justify-content: flex-end; /* Rechtsbündig */
}


        .navbar-custom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
        }
        .nav-links {
            flex-grow: 1;
            text-align: center;
			
			
        }
        .nav-links a {
    position: relative;
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 12px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: black; /* Ändert die Schriftfarbe */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: all 0.3s ease-in-out; /* Sanfte Animation */
}


.nav-links a.active {
    color: white;
    background-color: black;
    border-radius: 5px;
}
	
		.popup {
	z-index: 10;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    width: 550px;
    height: auto;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: bold;
}

label {
    display: block;
    text-align: left;
    width: 90%; /* Gleiche Breite wie das Input-Feld */
    margin: 0 auto 5px auto; /* Zentrieren und Abstand nach unten */
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

input {
    width: 90%;
    padding: 10px;
    margin: 0 auto 15px auto; /* Zentrieren und Abstand nach unten */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    display: block; /* Sicherstellen, dass es sich unter dem Label befindet */
}

button {
    width: 90%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 0px;
	font-weight: bold;
}


.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 30px;
}

.switch {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 40px;
    display: inline;
}

.error {
    color: red;
    margin-top: 10px;
	margin: auto;
}


@media (max-width: 600px) {
  .popup {
    width: 90%;               /* Statt fixer Breite 550px */
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  label,
  input,
  button {
    width: 100%;              /* Volle Breite */
    font-size: 16px;
  }

  input {
    padding: 10px;
    margin-bottom: 15px;
  }

  button {
    padding: 12px;
    font-size: 16px;
  }

  .close {
    top: 5px;
    right: 10px;
    font-size: 26px;
  }

  .switch {
    display: block;
    margin-top: 20px;
    text-align: center;
  }
}


.margin {
	margin: 25px;
}



/* Navigation responsive -------------------------------------------------------*/


/* Allgemeine Nav-Styles */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
}

/* Logo verstecken auf Mobilgeräten */
@media (max-width: 900px) {
    .nav-container {
        flex-direction: row;
    }

    .nav-container > div:nth-child(2) {
        display: none; /* Logo ausblenden */
    }

    .burger {
        display: block;
        order: 1;
		cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding-left: 10px;
        order: 3;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-container > div:last-child {
        order: 2;
        margin-left: auto;
    }
}

/* Desktop-Ansicht */
@media (min-width: 769px) {
    .burger {
        display: none;
    }

    .nav-container {
        flex-direction: row;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 15px;
		align-items: center;
    }

    .nav-container > div:nth-child(2) {
        display: block; /* Logo anzeigen */
    }
}
		
		
			
		.benutzer {
			margin-left: 10px;
		}
	/* ------------------------------------------------------------------------------------------------------------------------------*/

.guthaben-container {
  display: flex;
  justify-content: center;
}

.guthaben-box {
  background-color: #fff7f1;
  border: 1.5px solid #f36a32;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 2000px;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 15px rgba(243, 106, 50, 0.1);
}

.guthaben-box h3 {
  color: #f36a32;
  font-weight: bold;
  margin-bottom: 15px;
}

.guthaben-stand {
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
}

.guthaben-form label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  text-align: left;
}

.guthaben-form input[type="number"] {
  border-radius: 8px;
  border: 1.8px solid #ccc;
  padding: 10px 15px;
  font-size: 16px;
  margin-bottom: 20px;
  width: 100%;
}

.btn-orange {
  background-color: #f36a32;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 12px 25px;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-orange:hover {
  background-color: #d95d25;
}

 .clipboard-container {
      margin-top: 20px;
      position: relative;
      display: inline-block;
    }

    #copyText {
      width: 300px;
      padding: 10px;
      font-size: 16px;
    }

    button {
      padding: 10px 15px;
      font-size: 16px;
      cursor: pointer;
      margin-left: 5px;
    }

    .tooltip {
      visibility: hidden;
      background-color: #333;
      color: #fff;
      text-align: center;
      border-radius: 6px;
      padding: 5px;
      position: absolute;
      z-index: 1;
      top: -35px;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 14px;
    }

    .clipboard-container.show-tooltip .tooltip {
      visibility: visible;
      opacity: 1;
    }
	
	 .guthaben-box img {
      max-width: 100%;
      height: auto;
      margin-bottom: 20px;
    }
	

    .kursanmeldung-button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
	
	@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.5s;
}


.warnnachricht {
	width: 90%;
	/*margin-left: 20%; */
	text-align: center;
}



.AGBAkzep {
	width: 5%;
}

.checkbox-label {
  display: inline-flex;
  align-items: center; /* sorgt für vertikale Zentrierung */
  gap: 0.5rem; /* Abstand zwischen Checkbox und Text */
  cursor: pointer; /* Zeigt beim Hover eine Hand, wenn klickbar */
}

.checkbox-label input[type="checkbox"] {
  margin: 0; /* entfernt Standardabstand */
  vertical-align: middle; /* sorgt für saubere vertikale Ausrichtung */
}

.GetInfoBenu {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.GetInfoBenu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.GetInfoBenu:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}




  .containeruserinfo {
            max-width: 900px;
            margin: 50px auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 30px;
            animation: slideIn 0.7s ease-out;
        }

        @keyframes slideIn {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #eee;
        }

        .info-label {
            color: #666;
            font-weight: bold;
        }

        .info-value {
            color: #222;
        }

        @media (max-width: 480px) {
            .info-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .info-value {
                margin-top: 5px;
            }
        }
		
		

		
		
		.email-modal {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: none;
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.email-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.email-modal label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #444;
}

.email-modal input[type="text"],
.email-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border 0.3s ease;
}

.email-modal input[type="text"]:focus,
.email-modal textarea:focus {
    border-color: #0077cc;
    outline: none;
}

.email-modal textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

.email-modal button {
    padding: 10px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.email-modal button[type="submit"] {
    background-color: #0077cc;
    color: white;
}

.email-modal button[type="submit"]:hover {
    background-color: #005fa3;
}

.email-modal button[type="button"] {
    background-color: #eee;
    color: #333;
}

.email-modal button[type="button"]:hover {
    background-color: #ddd;
}



    .grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      max-width: 800px;
      margin: 0 auto;
    }

    .card {
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.2s ease;
    }

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

    .card img {
      width: 100%;
      display: block;
      height: auto;
    }

    .card a {
      display: block;
      text-decoration: none;
      color: inherit;
    }
	
	
	
	#kurs-counter.too-many {
    color: red;
    font-weight: bold;
	}
