/* ============================================================
 * Online Pro Tour – Admin / Public Styles
 * ============================================================
 */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.content {
    padding-top: 20px;
}

/* ============================================================
 * Überschriften
 * ============================================================
 */
h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* ============================================================
 * Tabellen (Spielplan)
 * ============================================================
 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    text-align: left;
    font-size: 13px;
    color: #666;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

tr:hover {
    background: #fafafa;
}

/* ============================================================
 * Toolbar / Filter (OoM-Style)
 * ============================================================
 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 18px 0;
}

.label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

/* ============================================================
 * Dropdown
 * ============================================================
 */
.select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 38px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #222;
    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #666 50%),
        linear-gradient(135deg, #666 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.select:hover {
    border-color: #cfcfcf;
}

.select:focus {
    outline: none;
    border-color: #9fbff7;
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}

/* ============================================================
 * Links
 * ============================================================
 */
a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
 * Schedule: Kategorien / Sections
 * ============================================================
 */
.section {
    margin-top: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Details/Summary reset + klickbar */
.section--collapsible {
    padding: 0;
}

.section-summary {
    list-style: none;
    cursor: pointer;
}

.section-summary::-webkit-details-marker {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.section-note {
    font-weight: 400;
    font-size: 12px;
    color: #777;
    margin-left: 6px;
}

.section-sub {
    font-size: 12px;
    color: #666;
}

/* rechte Seite: Badge + Chevron */
.section-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ✨ Schöner Chevron */
.chev {
    width: 18px;
    height: 18px;
    position: relative;
}

.chev::before,
.chev::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #777;
    top: 8px;
    transition: transform 0.2s ease;
}

.chev::before {
    left: 4px;
    transform: rotate(45deg);
}

.chev::after {
    right: 4px;
    transform: rotate(-45deg);
}

/* geöffnet → Chevron nach oben */
.section--collapsible[open] .chev::before {
    transform: rotate(-45deg);
}

.section--collapsible[open] .chev::after {
    transform: rotate(45deg);
}

.section-content {
    padding: 0 0 8px 0;
}

/* Wenn komplett vergangen: Header noch etwas blasser */
.section--allpast .section-header {
    background: #fbfbfb;
}

/* ============================================================
 * Tour-Badges (PRO / DEV)
 * ============================================================
 */
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.badge--pro {
    background: rgba(0, 160, 80, 0.12);
    border: 1px solid rgba(0, 160, 80, 0.35);
    color: #065f46;
}

.badge--dev {
    background: rgba(120, 80, 200, 0.12);
    border: 1px solid rgba(120, 80, 200, 0.35);
    color: #4c1d95;
}

/* ============================================================
 * Schedule: Button-Design (Kalender)
 * ============================================================
 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
    color: #222;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    border-color: #cfcfcf;
    background: #fafafa;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn--google {
    border-color: #dbe7ff;
    background: #f5f9ff;
}

.btn--outlook {
    border-color: #e8dcff;
    background: #faf7ff;
}

.btn__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    background: rgba(0,0,0,0.05);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
 * Termine: vergangen / nächster Termin je Tour
 * ============================================================
 */

/* vergangene Termine: blass + kompakt */
tr.is-past td {
    opacity: 0.45 !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
}

/* Buttons bei vergangenen Terminen ausblenden */
tr.is-past .actions {
    display: none !important;
}

/* nächster PRO-Termin */
tr.is-next-pro td {
    background: rgba(0, 160, 80, 0.10);
}

/* nächster DEV-Termin */
tr.is-next-dev td {
    background: rgba(120, 80, 200, 0.10);
}

/* dezente linke Markierung */
tr.is-next-pro td:first-child {
    border-left: 4px solid rgba(0, 160, 80, 0.45);
}

tr.is-next-dev td:first-child {
    border-left: 4px solid rgba(120, 80, 200, 0.45);
}

/* ============================================================
 * ADMIN INDEX FULLSCREEN (unabhängig vom .container)
 * ============================================================
 */

.admin-landing-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0f172a, #020617);
    overflow: auto;
}

.admin-landing-inner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 16px 18px 16px;
}

.landing-card {
    width: 100%;
    max-width: 560px;
    padding: 28px 22px;
    background: #020617;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    color: #e5e7eb;
}

/* Logo */
.landing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.landing-logo img {
    max-width: 170px;
    height: auto;
}

/* Titel */
.landing-title {
    margin: 10px 0 0 0;
    text-align: center;
    font-size: 26px;
    color: #e5e7eb;
}

.landing-subtitle {
    margin: 6px 0 18px 0;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
}

/* Links */
.landing-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: #e5e7eb;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.landing-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-1px);
    text-decoration: none;
}

.landing-link--light {
    background: rgba(255,255,255,0.08);
}

.landing-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.landing-text strong {
    display: block;
    font-size: 15px;
    color: #e5e7eb;
}

.landing-text small {
    display: block;
    font-size: 12px;
    margin-top: 2px;
    color: #9ca3af;
}

.landing-divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 6px 0;
}

/* Footer im Dark Bereich – überschreibt inline styles aus footer.php */
.admin-landing-footer footer {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    color: #9ca3af !important;
    text-align: center !important;
    font-size: 12px !important;
}

/* damit links/rechts nix „rausblitzt“ */
.admin-landing-footer {
    width: 100%;
    max-width: 560px;
    padding: 0 6px;
}