html, body {
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 15px;
}
.menu-cab {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.konto-table {
    width: 100%;
    border-collapse: collapse;
}

.konto-table th,
.konto-table td {
    padding: 10px 8px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.desktop-table-wrap {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.mobile-cards-wrap {
    display: none;
}

.anmeldung-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
}

.card-value {
    font-size: 1rem;
    color: #222;
    word-break: break-word;
}

.card-actions {
    margin-top: 12px;
}

.card-actions .button {
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .desktop-table-wrap {
        display: none;
    }

    .mobile-cards-wrap {
        display: block;
    }
}
h1, h2 {
    text-align: left;
    color: #006699;
}

.Kurs {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.Kurse_alle {

    max-width: 2000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.content {
    padding: 20px;
}
.kurs-table, .kurs-table th, .kurs-table td {
    border: 1px solid #ccc;
    border-collapse: collapse;
    padding: 8px;
}
.kurs-table {
    width: 100%;
    margin-bottom: 40px;
    background-color: #fff;
}
.kurs-table th {
    background-color: #e6f2ff;
    text-align: left;
}
.kurs-items-table, .kurs-items-table th, .kurs-items-table td {
    border: 1px solid #ddd;
    border-collapse: collapse;
    padding: 6px;
}
.kurs-items-table {
    width: 95%;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #fff;
}
.kurs-items-table th {
    background-color: #f9f9f9;
}
.kurs-actions {
    margin-top: 8px;
}
a.btn {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
}
.btn-primary {
    background-color: #006699;
}
.btn-edit {
    background-color: #28a745; 
}
.btn-add {
    background-color: #007bff;
}


/* 2) Bootstrap Buttons als <a> oder <button> immer sichtbar */
a.btn, button.btn, .btn {
 /* color: inherit !important; */
  opacity: 1 !important;
  visibility: visible !important;
}
/* Bootstrap Buttons: Textfarbe korrekt setzen (nicht inherit) */
.btn,
a.btn,
button.btn {
    color: rgb(151, 213, 127) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.btn.btn-primary {
  color: #fff !important;
}

img.course-img {
    width: 100%;
    max-width: 800px;
    height: auto;
}
hr {
    margin: 30px 0;
}
.edit-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ccc;
}
.edit-container h1 {
    color: #006699;
}
form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="tel"],
form textarea,
form select {
    width: 100%;
    padding: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
    box-sizing: border-box;
}

form input:required,
form select:required
 {
    background-color: rgb(220, 213, 172);

}

.submit-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #006699;
    color: #fff;
    border: none;
    cursor: pointer;
}
.submit-button:hover {
    background-color: #004d66;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #006699;
    text-decoration: none;
}
.image-preview {
    margin-top: 5px;
}
.image-preview img {
    max-width: 600px;
    height: auto;
}
table.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
table.items-table th,
table.items-table td {
    border: 1px solid #aaa;
    padding: 8px;
}
.delete-checkbox {
    margin-left: 10px;
}
table.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
table.items-table th,
table.items-table td {
    border: 1px solid #aaa;
    padding: 8px;
}
.delete-checkbox {
    margin-left: 10px;
}
.add-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ccc;
}
.add-container h1 {
    color: #006699;
}
.info {
    font-size: 0.9em;
    color: #555;
    margin: 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background-color: #006699;
    color: white;
}
/* Buttons in Cards IMMER sichtbar */
.card .btn {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Falls das Theme opacity nutzt */
.card .btn,
.card .btn * {
    opacity: 1 !important;
}

/* Sicherheit: Textfarbe für Outline-Buttons */
.card .btn-outline-primary,
.card .btn-outline-secondary {
    color: var(--bs-btn-color) !important;
}

/* --- FIX: Links/Buttons nicht "hover-only" verstecken --- */

/* 1) Alle Links sollen sichtbar sein */
a, a:visited {
  color: inherit;            /* übernimmt Textfarbe vom Kontext */
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none;     /* optional: wenn du keine Unterstreichung willst */
}


/* 3) Outline-Buttons brauchen explizite Farbe, sonst werden sie "inherit" und können verschwinden */
.btn-outline-primary { color: var(--bs-primary) !important; }
.btn-outline-secondary { color: var(--bs-secondary) !important; }
.btn-outline-danger { color: var(--bs-danger) !important; }
.btn-outline-success { color: var(--bs-success) !important; }
.btn-outline-warning { color: var(--bs-warning) !important; }
.btn-outline-info { color: var(--bs-info) !important; }
.btn-outline-dark { color: var(--bs-dark) !important; }

/* 4) Hover darf natürlich weiterhin die Bootstrap-Farben nutzen */
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-dark:hover {
  color: #fff !important; /* Bootstrap setzt das i.d.R. eh, aber wir sichern es ab */
}

/* 5) Falls dein Theme mit opacity/filter arbeitet */
a, .btn {
  filter: none !important;
  mix-blend-mode: normal !important;
}


.signature-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    text-align: center;
}

#signature-pad {
    width: 100%;
    max-width: 600px;
    height: 150px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    touch-action: none;
}


a.button {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    margin: 10px;
    color: white;
    background-color: #006699;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
}

a.button:hover {
    background-color: #004d66;
}
.page-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.search-form {
    display: flex;
    justify-content: left;
    margin-bottom: 20px;
}
.search-input {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}
.search-button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.search-button:hover {
    background-color: #0056b3;
}
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 18px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
    background-color: #007bff;
    color: #ffffff;
    text-align: left;
}
.styled-table th, .styled-table td {
    padding: 12px 15px;
}
.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}
.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #007bff;
}

canvas {
    touch-action: none;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}
        /* Balken (Progress Bar) */
        .progress-container {
            background-color: #eee;
            border-radius: 4px;
            height: 20px;
            width: 200px;
            margin-top: 5px;
        }
        .progress-bar {
            background-color: #4caf50;
            height: 100%;
            text-align: center;
            color: #fff;
            line-height: 20px;
            border-radius: 4px;
        }

        .person {
            border-top: 3px solid  #006699;
            border-left: 2px solid #006699;
            border-right: 2px solid #006699;
        }
        .kurslist {
            border-left: 2px solid #006699;
            border-right: 2px solid #006699;
        }
        .container {
            max-width: 2000px;
            margin: 0 auto;
            padding: 20px;
        }

        .container-small {
            width: 30%; /* Oder eine andere passende Breite */
            margin: 10px ; /* Zentriert das Element */
            padding: 10px;
            background-color: #f9f9f9; /* Optional für bessere Sichtbarkeit */
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        .text-red {
            color: red;
            font-weight: bold;
        }
        
        .text-center {
            text-align: center;
        }
        .text-green {
            color: rgb(0, 255, 34);
            font-weight: bold;
        }
        .button {
            display: inline-block;
            padding: 10px 15px;
            background-color: #006699;
            color: white;
            text-align: center;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
        }

        .button:hover {
            background-color: #004d66;
        }
        th a {
            color: white;
            text-decoration: none;
        }

        th a:hover {
            text-decoration: underline;
        }

        .custom-navbar {
            background-color: #006699 !important; /* Ersetze #123456 durch deinen Wunschwert */
            color: white !important;
        }

        .custom-navbar a:link {
            color: white !important;
        }

        .custom-navbar a:linhoverk {
            color: rgb(47, 225, 65) !important;
        }

        .menu-container {

            gap: 20px;
            max-width: 600px;
            margin: 20 auto;
            padding: 20px;
        }
        
        .menu-card {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }
        
        .menu-card h2 {
            margin-top: 0;
            color: #006699;
        }
        
        .menu-card p {
            margin-bottom: 15px;
            color: #555;
        }
        
        .menu-btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #006699;
            color: #fff;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s;
        }
        
        .menu-btn:hover {
            background-color: #004d66;
        }

@media screen and (max-width: 600px) {
    table {
        font-size: 14px;
    }

    a.button {
        width: 80%;
        margin: 10px 0;
    }



/* ===== Mobile/Touch Fix: Buttons/Links immer sichtbar (inkl. focus/active) ===== */

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  color: #fff !important;
}
/* Solid Buttons (Bootstrap) */
.btn-primary, .btn-primary:focus, .btn-primary:active,
.btn-success, .btn-success:focus, .btn-success:active,
.btn-danger, .btn-danger:focus, .btn-danger:active,
.btn-warning, .btn-warning:focus, .btn-warning:active,
.btn-info, .btn-info:focus, .btn-info:active,
.btn-dark, .btn-dark:focus, .btn-dark:active {
  color: #fff !important;
}

/* Outline Buttons (Bootstrap) */
.btn-outline-primary, .btn-outline-primary:focus, .btn-outline-primary:active { color: var(--bs-primary) !important; }
.btn-outline-secondary, .btn-outline-secondary:focus, .btn-outline-secondary:active { color: var(--bs-secondary) !important; }
.btn-outline-success, .btn-outline-success:focus, .btn-outline-success:active { color: var(--bs-success) !important; }
.btn-outline-danger, .btn-outline-danger:focus, .btn-outline-danger:active { color: var(--bs-danger) !important; }
.btn-outline-warning, .btn-outline-warning:focus, .btn-outline-warning:active { color: var(--bs-warning) !important; }
.btn-outline-info, .btn-outline-info:focus, .btn-outline-info:active { color: var(--bs-info) !important; }
.btn-outline-dark, .btn-outline-dark:focus, .btn-outline-dark:active { color: var(--bs-dark) !important; }

/* Beim tatsächlichen Hover dürfen Outline Buttons weiß werden (Desktop) */
@media (hover: hover) {
  .btn-outline-primary:hover,
  .btn-outline-secondary:hover,
  .btn-outline-success:hover,
  .btn-outline-danger:hover,
  .btn-outline-warning:hover,
  .btn-outline-info:hover,
  .btn-outline-dark:hover {
    color: #fff !important;
  }
}

/* Touch-Geräte: kein Hover -> wir sorgen dafür, dass focus/active lesbar bleibt */
@media (hover: none) {
  .btn-outline-primary:focus, .btn-outline-primary:active,
  .btn-outline-secondary:focus, .btn-outline-secondary:active,
  .btn-outline-success:focus, .btn-outline-success:active,
  .btn-outline-danger:focus, .btn-outline-danger:active,
  .btn-outline-warning:focus, .btn-outline-warning:active,
  .btn-outline-info:focus, .btn-outline-info:active,
  .btn-outline-dark:focus, .btn-outline-dark:active {
    color: #fff !important;
  }
}
    
}
