/* 
 * style.css - Hauptstil für Gästeregistrierungssystem
 * Minimalistisches mediterranes Design
 */

/* === Reset und Basis === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3B7A9E;
    --accent-color: #D4AF37;
    --background: #FAFAFA;
    --text-color: #333333;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --error-color: #DC3545;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.language-selector {
    margin-right: 20px;
}

/* Language selector in Reception (nested in dashboard-actions) */
.dashboard-actions .language-selector {
    margin-right: 0;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background: white;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover,
.language-selector select:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* === Main Content === */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* Desktop: Sidebar-Layout NUR für Dashboard mit stats-grid */
@media (min-width: 1025px) {
    .main-content[style*="align-items: stretch"]:has(.stats-grid) {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: start;
        padding-top: 20px;
        justify-content: start;
    }
    
    .main-content[style*="align-items: stretch"]:has(.stats-grid) .stats-grid {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }
    
    .main-content[style*="align-items: stretch"]:has(.stats-grid) .stat-card {
        padding: 12px 8px;
    }
    
    .main-content[style*="align-items: stretch"]:has(.stats-grid) .stat-card .stat-number {
        font-size: 28px;
    }
    
    .main-content[style*="align-items: stretch"]:has(.stats-grid) .stat-card .stat-label {
        font-size: 11px;
    }
    
    /* Residenzen/Einstellungen: Dashboard-Container volle Breite */
    .main-content[style*="align-items: stretch"] .dashboard-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .main-content[style*="align-items: stretch"] .form-container {
        max-width: none;
    }
}

/* Tablet Portrait: NUR für Dashboard (mit style-Attribut) - KEIN PADDING! */
@media (max-width: 1024px) {
    .main-content[style*="align-items: stretch"] {
        display: block;
        width: 100%;
        padding: 0 !important;
    }
    
    .main-content[style*="align-items: stretch"] .stats-grid {
        width: 100%;
        margin-bottom: 15px;
        margin-top: 0;
    }
    
    .main-content[style*="align-items: stretch"] .dashboard-container {
        width: 100%;
    }
}

/* === Forms === */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 700px;
}

.form-container h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.guest-form,
.login-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.optional {
    font-weight: normal;
    color: #999;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="color"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

/* Date input konsistente Darstellung (iOS/iPadOS) */
input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    line-height: normal;
}

/* Color picker spezielle Behandlung */
input[type="color"] {
    padding: 5px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

input.error,
select.error,
textarea.error {
    border-color: var(--error-color);
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* === Buttons === */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    height: 48px;
    line-height: 1;
    box-sizing: border-box;
}

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

.btn-primary:hover {
    background: #2c5f7a;
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

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

.btn-success:hover {
    background: #218838;
}

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.form-actions .btn {
    min-width: 150px;
    flex: 0 0 auto;
}

.form-actions-dual {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.form-actions-dual .btn {
    min-width: min(200px, 100%);
    flex: 1 1 auto;
}

.registration-queue-info {
    font-size: 15px;
    color: #555;
    margin: 0 0 20px;
    line-height: 1.5;
}

.col-check {
    width: 44px;
    text-align: center;
    vertical-align: middle;
}

/* === Alerts === */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* === Footer === */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

/* === Reception Dashboard === */
.dashboard-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    min-height: 500px;
    width: 100%;
}

/* Nur für Desktop die große min-height */
@media (min-width: 1025px) {
    .dashboard-container {
        min-height: 500px;
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h1 {
    color: var(--primary-color);
    font-size: 28px;
}

.dashboard-header--with-filters {
    align-items: flex-end;
}

.dashboard-header--with-filters .dashboard-filters-bar {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.dashboard-filters-form {
    width: 100%;
    max-width: 720px;
}

.dashboard-filters-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    justify-content: flex-end;
}

.dashboard-filters-field {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-filters-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.dashboard-search-input {
    min-width: min(220px, 100%);
    max-width: 320px;
    flex: 1 1 200px;
    width: auto;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.35;
    box-sizing: border-box;
    vertical-align: middle;
}

.dashboard-group-select {
    min-width: 160px;
    max-width: 280px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.35;
    background: white;
    box-sizing: border-box;
    vertical-align: middle;
}

.dashboard-bulk-compact {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8f9fb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.bulk-compact-intro {
    margin: 0 0 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.bulk-compact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}

.bulk-compact-selection {
    font-size: 14px;
    color: #333;
}

.bulk-compact-selection strong {
    color: var(--primary-color);
    font-size: 18px;
}

.bulk-compact-selection-label {
    margin-left: 4px;
}

.bulk-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Zentriert im Viewport (showModal); margin:auto bei inset:0 zentriert horizontal und vertikal */
.bulk-dialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(440px, calc(100vw - 32px));
    max-width: min(440px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(90vh, calc(100vh - 32px));
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.bulk-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.bulk-dialog-inner {
    padding: 22px 22px 18px;
}

.bulk-dialog-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.bulk-dialog-field {
    margin-bottom: 14px;
}

.bulk-dialog-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.bulk-dialog-field--inline {
    margin-bottom: 12px;
}

.bulk-select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.bulk-select--dialog {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bulk-input {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.bulk-input--dialog {
    width: 100%;
    box-sizing: border-box;
}

.bulk-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.bulk-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 520px) {
    .bulk-compact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-compact-actions {
        justify-content: stretch;
    }

    .bulk-compact-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

/* === Statistics === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-card.active {
    box-shadow: 0 4px 16px rgba(59, 122, 158, 0.4);
    transform: scale(1.05);
}

.stat-card.new {
    border-top-color: var(--warning-color);
}

.stat-card.new.active {
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

.stat-card.incomplete {
    border-top-color: var(--error-color);
}

.stat-card.incomplete.active {
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

.stat-card.complete {
    border-top-color: var(--success-color);
}

.stat-card.complete.active {
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Search Bar === */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
}

/* === Tables === */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    min-height: 300px;
}

/* Benutzerverwaltung: festes Spaltenraster (100 %), Ellipsis nur bei Name/E-Mail */
.table-container--users {
    overflow-x: auto;
}

.table-container--users .users-admin-table {
    table-layout: fixed;
}

.table-container--users .users-admin-table th,
.table-container--users .users-admin-table td {
    vertical-align: middle;
    box-sizing: border-box;
}

/* Spaltenbreiten summieren sich zu 100 %; Rolle/Status/Aktionen nicht mehr auf 1 % */
.table-container--users .users-admin-table .col-username {
    width: 11%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-container--users .users-admin-table .col-email {
    width: 34%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-container--users .users-admin-table .col-role {
    width: 20%;
    min-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-container--users .users-admin-table .col-status {
    width: 18%;
    min-width: 6.5rem;
    white-space: nowrap;
}

.table-container--users .users-admin-table .col-actions {
    width: 17%;
    min-width: 7.25rem;
    white-space: nowrap;
    text-align: right;
    overflow: visible;
}

.table-container--users .users-admin-table .col-actions .action-buttons {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;
}

thead {
    background: var(--primary-color);
    color: white;
}

thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr.status-new {
    background: #fff9e6;
}

tbody tr.status-incomplete {
    background: #ffe6e6;
}

tbody tr.status-complete {
    background: #e6f9e6;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.new {
    background: var(--warning-color);
    color: #333;
}

.status-badge.incomplete {
    background: var(--error-color);
    color: white;
}

.status-badge.complete {
    background: var(--success-color);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* === Navigation === */
.nav-menu {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Auf Tablets Dashboard: Kleiner Abstand nach Navigation */
@media (max-width: 1024px) {
    body:has(.main-content[style*="align-items: stretch"]) .nav-menu {
        margin-bottom: 10px;
    }
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: white;
}

/* === Login === */
.login-container {
    max-width: 450px;
    margin: 50px auto;
}

.logout-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background: white;
    color: var(--primary-color);
}

/* === Checkboxes === */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Bessere Touch-Targets für Tablets/Mobile */
select,
input[type="checkbox"] {
    cursor: pointer;
}

/* Language Selector auf Touch-Geräten */
.language-selector select {
    min-width: 120px;
    touch-action: manipulation;
}

/* Buttons auf Touch-Geräten */
.btn,
.btn-icon,
.stat-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* === Responsive === */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-container h1 {
        font-size: 26px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header--with-filters .dashboard-filters-bar {
        justify-content: stretch;
    }

    .dashboard-filters-form {
        max-width: none;
    }

    .dashboard-filters-fields {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-filters-field {
        width: 100%;
        flex-wrap: nowrap;
    }

    .dashboard-search-input,
    .dashboard-group-select {
        max-width: none;
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .dashboard-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Tabelle auf kleineren Tablets scrollbar machen */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 700px;
        font-size: 14px;
    }
    
    thead th,
    tbody td {
        padding: 8px;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 5px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .btn-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .form-container h1 {
        font-size: 22px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }
    
    .nav-menu a {
        display: block;
        text-align: center;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .search-bar input {
        max-width: 100%;
        width: 100%;
    }
    
    .dashboard-container {
        padding: 15px;
    }
}

/* Tablet (iPad, etc.) - Landscape & Portrait */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .dashboard-container {
        padding: 20px;
    }
    
    table {
        font-size: 15px;
    }
    
    thead th,
    tbody td {
        padding: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-number {
        font-size: 32px;
    }
}

/* iPad Air spezifisch (820x1180 Portrait, 1180x820 Landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    .header {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .container {
        max-width: 95%;
    }
    
    .form-container {
        max-width: 650px;
    }
    
    /* Dashboard Layout: Karten oben */
    .main-content[style*="align-items: stretch"] {
        display: block;
        width: 100%;
        padding-top: 0;
    }
    
    .main-content[style*="align-items: stretch"] .stats-grid {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 15px;
    }
    
    .main-content[style*="align-items: stretch"] .dashboard-container {
        width: 100%;
    }
    
    .dashboard-container {
        margin-bottom: 20px;
        padding: 20px;
        min-height: auto;
    }
    
    /* Tabelle optimiert für iPad */
    table {
        font-size: 15px;
    }
    
    thead th {
        font-size: 14px;
        padding: 12px 8px;
    }
    
    tbody td {
        padding: 10px 8px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* Bessere Touch-Targets */
    .btn-icon {
        width: 38px;
        height: 38px;
    }
    
    .btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 15px;
    }
    
    /* Statistik-Karten: ALLE 4 NEBENEINANDER auf iPad */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 10px 6px;
        min-height: 80px;
    }
    
    .stat-card .stat-number {
        font-size: 24px;
        margin: 3px 0;
    }
    
    .stat-card .stat-label {
        font-size: 9px;
        line-height: 1.2;
        font-weight: 600;
    }
    
    /* Navigation optimiert */
    .nav-menu ul {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    /* Formulare auf Tablet - kompakter */
    .form-container {
        padding: 25px 30px;
    }
    
    .form-container h1 {
        font-size: 26px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        margin-bottom: 18px;
        font-size: 15px;
    }
    
    .guest-form,
    .login-form {
        margin-top: 10px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    label {
        margin-bottom: 4px;
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    input[type="url"],
    select,
    textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    input[type="date"] {
        min-height: 42px;
    }
    
    .form-actions {
        margin-top: 18px;
    }
    
    /* Tabelle scrollbar wenn zu breit */
    .table-container {
        -webkit-overflow-scrolling: touch;
        min-height: auto;
    }
    
    /* Suchfeld */
    .search-bar input {
        font-size: 15px;
    }
}

/* === Icon Buttons === */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon-edit {
    background: var(--primary-color);
    color: white;
}

.btn-icon-edit:hover {
    background: #2c5f7a;
    transform: scale(1.1);
}

.btn-icon-delete {
    background: var(--error-color);
    color: white;
}

.btn-icon-delete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-icon svg {
    display: block;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
