/**
 * Dorfbühne Patsch - Responsive CSS v2
 * Einheitliches Design für alle Seiten
 * Große Buttons und Schrift für Mobile
 */

/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #c9a227;
    --primary-dark: #a88620;
    --secondary: #3d4f5f;
    --secondary-dark: #2d3d4d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    
    /* Mobile Touch Targets */
    --touch-min: 48px;
    --font-base: 16px;
    --font-lg: 18px;
    --spacing: 1rem;
}

/* ===== BASIS RESET ===== */
html {
    font-size: var(--font-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    line-height: 1.6;
}

/* Verhindere iOS Auto-Zoom bei Input */
input, select, textarea {
    font-size: 16px !important;
}

/* ===== EINHEITLICHE BUTTONS ===== */
.btn, button:not(.hamburger) {
    min-height: var(--touch-min);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary, .btn-gold {
    background: var(--primary);
    color: #1a1a2e;
}
.btn-primary:hover, .btn-gold:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}
.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #1a1a2e;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-lg {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ===== FORMULARE ===== */
.form-control, .form-select {
    min-height: var(--touch-min);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 2px solid #dee2e6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: none;
}

.card-header {
    background: var(--secondary);
    color: white;
    padding: 1.25rem 1.5rem;
}

.card-header h2, .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* ===== NAVIGATION ===== */
.nav-link {
    min-height: var(--touch-min);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== TABELLEN ===== */
.table {
    width: 100%;
}

.table th, .table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
    :root {
        --font-base: 17px;
    }
    
    .btn, button:not(.hamburger) {
        min-height: 52px;
        padding: 0.875rem 1.5rem;
    }
    
    .btn-lg {
        min-height: 58px;
    }
}

@media (max-width: 767px) {
    :root {
        --font-base: 17px;
        --touch-min: 50px;
        --spacing: 0.875rem;
    }
    
    body {
        font-size: var(--font-base);
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.2rem; }
    
    .btn, button:not(.hamburger) {
        min-height: 54px;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .btn-lg {
        min-height: 60px;
        font-size: 1.15rem;
    }
    
    .form-control, .form-select {
        min-height: 54px;
        padding: 1rem;
        font-size: 1.05rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    /* Buttons nebeneinander -> untereinander */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    /* Tabellen auf Mobile */
    .table-stack thead {
        display: none;
    }
    
    .table-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: var(--radius);
        padding: 0.75rem;
    }
    
    .table-stack td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .table-stack td:last-child {
        border-bottom: none;
    }
    
    .table-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary);
    }
}

@media (max-width: 480px) {
    :root {
        --font-base: 16px;
        --touch-min: 52px;
    }
    
    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.2rem; }
    
    .btn, button:not(.hamburger) {
        min-height: 52px;
        font-size: 1rem;
    }
    
    .container, .main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-secondary { background: var(--secondary) !important; }

.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

/* Touch-freundliche Abstände */
.touch-spacing > * + * {
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .touch-spacing > * + * {
        margin-top: 0.875rem;
    }
}
