﻿:root {
    --brand-primary: #2b2383;
    --brand-primary-hover: #388e3c;
    --page-background: #dfdbe9;
    --seat-available: #8bc34a;
    --seat-selected: #D08E8E;
    --seat-unavailable: var(--brand-primary);
    --chair-accent: #25BEAA;
    --page-font: 'Century Gothic', sans-serif;
    --seat-size: 30px;
    --seat-gap: 4px;
    --seat-radius: 0px;
}

body {
    font-family: var(--page-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--page-background);
    color: white;
}

.seat-container,
.reservation-form-container {
    margin-top: 20px;
    color: black;
}

.seat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reservation-form-container.hidden {
    display: none;
}

.row {
    display: flex;
    margin: 15px 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.couch {
    display: flex;
    align-items: center;
    margin: 10px 20px;
    position: relative;
}

.seat {
    width: var(--seat-size);
    height: var(--seat-size);
    margin: calc(var(--seat-gap) / 2);
    border-radius: var(--seat-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
	font-size: 14px;
}
.wheelchair-seat {
    width: var(--seat-size);
    height: var(--seat-size);
}

.wheelchair-symbol-svg {
    width: min(24px, calc(var(--seat-size) * 0.78));
    height: min(24px, calc(var(--seat-size) * 0.78));
}

.stage-indicator {
    width: min(720px, 82vw);
    margin: 12px auto 24px;
    padding: 10px 24px;
    border: 2px solid #111;
    border-radius: 4px;
    color: white;
    background: #111;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.standard-layout-row {
    width: max-content;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.standard-layout-row > .row-label {
    position: absolute;
    right: calc(100% + 12px);
    margin-right: 0;
    width: max-content;
    min-width: max-content;
    white-space: nowrap;
    line-height: 1;
}

.seat-aisle {
    width: clamp(18px, calc(var(--seat-gap) + 18px), 70px);
    height: var(--seat-size);
    flex: 0 0 auto;
    margin: 0 4px;
}

.standard-sofa {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 10px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    position: relative;
}

.standard-sofa .seat {
    width: 30px;
    height: 30px;
    margin: 2px;
    border-radius: 0;
    font-size: 14px;
}

.standard-sofa .couch-backrest {
    width: 100%;
    height: 10px;
    top: -12px;
}

.standard-sofa .couch-armrest {
    width: 10px;
    height: calc(100% - 4px);
}

.standard-sofa .couch-armrest.left {
    left: -12px;
}

.standard-sofa .couch-armrest.right {
    right: -12px;
}

.standard-chair {
    position: relative;
    margin-top: 7px;
}

.standard-chair::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: -6px;
    height: 5px;
    border-radius: var(--seat-radius) var(--seat-radius) 1px 1px;
    background: var(--brand-primary);
    pointer-events: none;
}

.table-layout-block {
    width: min(900px, 96vw);
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-left: auto;
    margin-right: auto;
}

.table-layout-block.vertical {
    width: min(520px, 96vw);
    grid-template-columns: auto minmax(90px, 150px) auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 10px;
}

.table-seat-line {
    display: flex;
    justify-content: center;
    gap: var(--seat-gap);
    max-width: 100%;
    overflow-x: auto;
}

.table-layout-block.vertical .table-seat-line {
    flex-direction: column;
    overflow: visible;
}

.public-table-surface {
    width: min(360px, 64vw);
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 10px 20px;
    border: 3px solid var(--brand-primary);
    border-radius: 5px;
    color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.46);
    font-weight: bold;
}

.table-layout-block.vertical .public-table-surface {
    width: 110px;
    min-height: 230px;
}

.couch-backrest {
    width: 100%;
    height: 10px;
    position: absolute;
    top: -12px;
}

.couch-armrest {
    width: 10px;
    height: calc(100% - 4px);
    position: absolute;
}

.couch-armrest.left {
    left: -12px;
}

.couch-armrest.right {
    right: -12px;
}

.reserved {
    background-color: var(--seat-unavailable) !important;
	color: white;
}

.selected {
    background-color: var(--seat-selected) !important;
}

.highlight-left {
    margin-right: 20px;
    position: relative;
}

.highlight-right {
    margin-left: 20px;
    position: relative;
}

.chair-backrest {
    width: 100%;
    height: 5px;
    background-color: var(--chair-accent);
    position: absolute;
    top: -8px;
}

.chair-armrest {
    width: 5px;
    height: 100%;
    background-color: var(--chair-accent);
    position: absolute;
}

.chair-armrest.left {
    left: -8px;
}

.chair-armrest.right {
    right: -8px;
}

.user-controls {
    margin-top: 20px;
    color: white;
}

.legend {
    margin-top: 20px;
    text-align: center;
    color: black;
	font-size:	18px;
}

.legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 10px;
    vertical-align: middle;
}

.legend-available {
    background-color: var(--seat-available);
}

.legend-selected {
    background-color: var(--seat-selected);
}

.legend-unavailable {
    background-color: var(--seat-unavailable);
}

/* Styled dropdown menu (smaller height) */
.date-selector select {
    background-color: #ffffff;
    color: #333;
    padding: 6px; /* Reduced padding */
    font-size: 14px; /* Slightly smaller font */
    border: 2px solid var(--brand-primary);
    border-radius: 6px; /* Smaller rounding */
    cursor: pointer;
    transition: border-color 0.3s;
}

.date-selector select:hover {
    border-color: var(--brand-primary-hover);
}

.date-selector select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 4px rgba(46, 125, 50, 0.5);
}

/* Bottom controls section - aligns reservieren button lower */
.bottom-controls {
    margin-top: 30px; /* Increased margin to push it down */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styled reservation button */
.bottom-controls button {
    background-color: var(--brand-primary);
    color: white;
    padding: 8px 14px; /* Reduced padding for a sleeker look */
    font-size: 14px; /* Slightly smaller font */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px; /* Extra spacing between elements */
}

.bottom-controls button:hover {
    background-color: var(--brand-primary-hover);
    transform: scale(1.03);
}

/* General modal styling */
/* Standardized modal style */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 50%;
    top: 50%;
    width: 85%;
    max-width: 420px;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--brand-primary);
    max-height: 75vh;
    overflow-y: auto;
}

/* Apply the same reservation form style to modal content */
.modal-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: black;
}

.modal-error-message {
    display: none;
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
}

/* Standardized input fields */
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 90%;
    padding: 6px;
    margin-bottom: 8px;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
    transition: border-color 0.3s ease-in-out;
}


/* Styled button */
.modal-content button {
    background-color: var(--brand-primary);
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    width: 95%;
    transition: background-color 0.3s ease, transform 0.2s;
}

.modal-content button:hover {
    background-color: var(--brand-primary-hover);
    transform: scale(1.02);
}

/* Close button */
.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    color: black;
    background-color: white;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, color 0.2s;
    z-index: 1001;
}

.close-button:hover {
    color: red;
    background-color: #f8f8f8;
}


/* Compact input fields in modals */
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 95%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Make buttons in modals more compact */
.modal-content button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
}

.modal-content .close-button,
.reservation-form-container > .close-button {
    top: 12px;
    right: 12px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}

/* Fixed Reservation Form */
.reservation-form-container {
    background-color: #ffffff;
    color: #000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    width: 85%;
    max-width: 420px; /* Adjusted for a better fit */
    transform: translate(-50%, -50%);
    z-index: 9999;
    border: 2px solid var(--brand-primary);
    overflow-y: auto;
    max-height: 75vh; /* Prevents it from being too large */
}











/* Compact form elements */
.reservation-form-container form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.reservation-form-container form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.reservation-form-container label {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

/* Centered input fields */
.reservation-form-container input,
.reservation-form-container textarea {
    width: 90%; /* Make full use of available space */
    padding: 6px;
    margin-bottom: 8px;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 14px;
    text-align: left; /* Align text to left for better usability */
    transition: border-color 0.3s ease-in-out;
}





.reservation-form-container input:focus,
.reservation-form-container textarea:focus {
    border-color: var(--brand-primary-hover);
    outline: none;
    box-shadow: 0px 0px 5px rgba(56, 142, 60, 0.5);
}


.reservation-form-container button {
    background-color: var(--brand-primary);
    color: white;
    padding: 6px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    width: 95%; /* Ensures button fits nicely */
    transition: background-color 0.3s ease, transform 0.2s;
}

.reservation-form-container .reservation-submit-button {
    align-self: center;
    width: auto;
    min-width: 0;
    padding: 10px 18px;
}

.reservation-form-container .reservation-submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-error-message {
    display: none;
    margin: 4px 0 0;
    padding: 9px 11px;
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    background: #ffebee;
    color: #b71c1c;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
    text-align: left;
}

.form-error-message.visible {
    display: block;
}

#food-options-container,
#edit-food-options-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 10px;
}

#food-options-container label,
#edit-food-options-container label {
    margin: 0;
    white-space: nowrap;
}

.reservation-form-container #food-options-container input,
.modal-content #edit-food-options-container input {
    width: 64px;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 420px) {
    #food-options-container,
    #edit-food-options-container {
        grid-template-columns: minmax(0, 1fr) 56px;
        gap: 7px;
    }

    #food-options-container label,
    #edit-food-options-container label {
        font-size: 12px;
    }

    .reservation-form-container #food-options-container input,
    .modal-content #edit-food-options-container input {
        width: 56px;
    }
}




.reservation-form-container button:hover {
    background-color: var(--brand-primary-hover);
    transform: scale(1.02);
}

.modal-content > .close-button,
.reservation-form-container > .close-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #222 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 50% !important;
}

.modal-content > .close-button:hover,
.reservation-form-container > .close-button:hover {
    color: #b71c1c !important;
    background: #f5f5f5 !important;
    transform: none;
}




/* Prevent content overflow */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Admin toolbar - compact block in top-right */
.admin-toolbar {
    position: fixed;
    top: 100px;
    right: 40px; /* vorher: 0px â€“ jetzt etwas Abstand vom Rand */
    width: 200px; /* vorher: 80px â€“ jetzt breiter */
    background-color: var(--brand-primary);
    color: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


/* Admin toolbar buttons */
.admin-toolbar button {
    width: 90%;
    background-color: white;
    color: var(--brand-primary);
    padding: 10px;
    border-radius: 6px;
    margin: 5px 0;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.admin-toolbar button:hover {
    background-color: var(--brand-primary-hover);
    color: white;
}

.admin-toolbar button.selected {
    background-color: var(--brand-primary) !important; /* Highlight color for selected tool */
    color: white;
}


/* Tooltip for reservation info */
#reservation-info-box {
    position: absolute;
    display: none;
    background: white;
    color: black;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    text-align: left;
    max-width: 250px;
    font-size: 14px;
    pointer-events: none; /* Prevents accidental interaction */
    transform: translate(10px, 10px); /* Offset from cursor */
    z-index: 9999;
}




.modal-content button:hover {
    background-color: var(--brand-primary-hover);
}

#menu-count {
    width: 50px;
}
#vegi-menu-count {
    width: 50px;
}

#special-wishes {
    width: 100%; /* Ensures it matches the width of all input fields */
    box-sizing: border-box; /* Prevents it from exceeding container width */
    resize: vertical;
    margin-bottom: 10px;
    padding: 6px;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
}




.hidden {
    display: none !important;
}

.reservation-title {
    display: block;
    text-align: center;
    font-size: 25px;
    margin-top: 50px; /* Moves it further down */
    margin-bottom: 15px;
}

#reservation-message {
    position: fixed;
    bottom: 20px;
    right: 0px;
    background-color: var(--brand-primary); /* Default color */
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    animation: fadeOut 7s ease-in-out forwards;
    min-width: 250px;
    text-align: center;
}



@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.blocked {
    pointer-events: none;
    background-color: var(--brand-primary) !important;
	color: white;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: black;
}
#grill-option {
    margin-left: 20px; /* Adjust this value as needed */
    position: relative;
    top: 0px; /* Adjust vertical alignment */
}

#grill-option + label {
    margin-left: 1px; /* Reduce spacing between checkbox and label */
    white-space: nowrap; /* Ensure it stays in one line */
}
#edit-grill-option {
    margin-left: 20px; /* Adjust this value as needed */
    position: relative;
    top: 0px; /* Adjust vertical alignment */
}

#edit-grill-option + label {
    margin-left: 1px; /* Reduce spacing between checkbox and label */
    white-space: nowrap; /* Ensure it stays in one line */
}



.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-primary); /* Matches the theme */
    position: relative;
    top: 6px; /* Verschiebt die Checkbox nach unten */
	right: 10px;
}


.checkbox-container label {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: -40px; /* Wert kann je nach Bedarf angepasst werden */
}


#ageSelectionModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--brand-primary);
    width: 320px;
    text-align: center;
}

#ageSelectionModal label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: black;
}

#ageSelectionModal input {
    width: 80px;
    padding: 6px;
    margin-top: 5px;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

#ageSelectionModal button {
    margin-top: 15px;
    background-color: var(--brand-primary);
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

#ageSelectionModal button:hover {
    background-color: var(--brand-primary-hover);
}


#students-count + p {
    font-size: 12px;
    color: red;
    margin-top: 2px;
}

#reserve-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.voucher-container {
    margin-top: 5px;
    padding: 8px;
    background-color: #f5f5f5;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    text-align: center;
}

.voucher-container.hidden {
    display: none;
}

.voucher-label {
    font-size: 14px;
    font-weight: bold;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.voucher-input {
    width: 60px;
    padding: 5px;
    border: 2px solid var(--brand-primary);
    border-radius: 5px;
    text-align: center;
    background-color: #ffffff;
    font-weight: bold;
    color: #333;
}
.input-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px; /* Adjust the spacing between fields */
}

.input-group {
    display: flex;
    flex-direction: column;
}

/* Single-field rows should take the full width */
.full-width {
    width: 100%;
}

/* Ensures 'Strasse + Nr.' and 'PLZ + Ort.' match the width of single-field rows */
.larger-field {
    flex: 3; /* Takes more space */
}

.smaller-field {
    flex: 1; /* Smaller portion for 'Nr.' and 'PLZ' */
    max-width: 80px; /* Prevents stretching */
}

/* Ensures all input fields are properly aligned */
.input-group input {
    width: 100%;
    box-sizing: border-box;
}
body.modal-open *:not(.modal, .modal *) {
    pointer-events: none;
}
#admin-edit-reservation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--brand-primary);
    width: 320px;
    text-align: center;
}

.confirm-button, .cancel-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.confirm-button {
  background-color: var(--brand-primary);
  color: white;
}

.cancel-button {
  background-color: #f44336;
  color: white;
}
.couch-armrest.selected,
.couch-backrest.selected {
    background-color: var(--seat-selected) !important;
}
#session-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--brand-primary);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: normal;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-align: center;
}

/* Existing styles remain the same until the end, then add these media queries */

@media only screen and (max-width: 600px) {
    /* General scaling */
    body {
        font-size: 14px;
    }
    
    /* Seat container scaling */
    .seat-container {
        width: 95%;
        margin-top: 10px;
    }
    
    /* Seat sizing */
    .seat {
        width: min(var(--seat-size), 22px);
        height: min(var(--seat-size), 22px);
        font-size: 10px;
    }
    
    /* Couch elements scaling */
    .couch-backrest {
        height: 8px;
        top: -10px;
    }
    
    .couch-armrest {
        width: 8px;
    }
    
    /* Row adjustments */
    .row {
        margin: 8px 0;
    }
    
    /* Date selector */
    .date-selector select {
        padding: 4px;
        font-size: 12px;
    }
    
    /* Modal sizing */
    .modal {
        width: 90%;
        max-width: 320px;
        padding: 15px;
    }
    
    /* Reservation form container */
    .reservation-form-container {
        width: 90%;
        max-width: 320px;
        padding: 15px;
    }
    
    /* Input fields */
    .reservation-form-container input,
    .reservation-form-container textarea {
        font-size: 12px;
        padding: 5px;
    }
    
    /* Admin toolbar */
    .admin-toolbar {
        width: 150px;
        padding: 8px;
        top: 10px;
        right: 10px;
    }
    
    .admin-toolbar button {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Legend adjustments */
    .legend span {
        width: 16px;
        height: 16px;
        margin: 0 5px;
    }
    
    /* Session timer */
    #session-timer {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Tooltip */
    #reservation-info-box {
        max-width: 200px;
        font-size: 12px;
    }
    
    /* Checkbox adjustments */
    .checkbox-container input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    /* Age selection modal */
    #ageSelectionModal {
        width: 280px;
    }
    
    #ageSelectionModal input {
        width: 60px;
        font-size: 14px;
    }
    
    /* Input rows */
    .input-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .input-group {
        width: 100%;
    }
    
    .smaller-field {
        max-width: 100%;
    }
    
    /* Wheelchair modal buttons */
    .confirm-button, .cancel-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Reservation message */
    #reservation-message {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        font-size: 14px;
        min-width: 200px;
    }
}

@media only screen and (max-width: 400px) {
    /* Even smaller adjustments for very small screens */
    .seat {
        width: min(var(--seat-size), 18px);
        height: min(var(--seat-size), 18px);
        font-size: 8px;
    }
    
    .modal {
        width: 95%;
        max-width: 280px;
    }
    
    .reservation-form-container {
        width: 95%;
        max-width: 280px;
    }
    
    .admin-toolbar {
        width: 130px;
    }
    
    #session-timer {
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .couch {
        margin: 8px 10px; /* mehr Abstand zwischen Sofas */
    }

    .seat {
        margin: 1px; /* minimal mehr Abstand zwischen den Sitzen */
    }

    .couch-armrest.left {
        left: -8px; /* etwas weiter auÃŸen */
    }

    .couch-armrest.right {
        right: -8px;
    }

    .couch-backrest {
        top: -8px; /* weiter nach oben = mehr Abstand zu Sitzfläche */
    }

}


.row-label {
    font-size: 18px; /* Oder z.B. 10px für noch kleiner */
    color: black;
    margin-right: 10px; /* Abstand zur Couch */
    font-weight: normal;
}

@media (max-width: 768px) {
    .row-label {
    flex-shrink: 0;        /* ðŸš« verhindert, dass sich "Reihe 9" zusammenquetscht */
    white-space: nowrap;   /* ðŸ”’ Text bleibt in einer Zeile */
    font-size: 8px;
    margin-right: 10px;
}

	.legend {
	font-size: 8px;
	}
	
}

.email-warning {
    position: absolute;
    bottom: 1px;
    left: 2px;
    width: 11px;
    height: 11px;
    font-size: 10px;
    line-height: 11px;
    color: #f9a825; /* Gelb */
    pointer-events: none;
    z-index: 2;
}

.reservation-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    color: var(--brand-primary);
}

.seat {
    overflow: hidden;
    text-align: center;
}

.seat div {
    pointer-events: none;
}

/* Admin-Ansicht: Namen direkt auf dem Sitzplan lesbar anzeigen */
body.seat-name-view-active {
    align-items: flex-start;
    overflow-x: auto;
}

body.seat-name-view-active #reserve-button {
    display: none !important;
}

.seat-container.seat-name-view-active {
    transform: scale(1.45);
    transform-origin: top left;
    margin-left: 20px;
    margin-top: 20px;
    padding-right: 320px;
}

.seat-container.seat-name-view-active .row {
    max-width: none;
    margin: 28px 0;
}

.seat-container.seat-name-view-active .couch {
    margin: 18px 34px;
}

.seat-container.seat-name-view-active .seat {
    width: 76px;
    height: 52px;
    font-size: 11px;
    line-height: 1.05;
    padding: 2px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
}

.seat-container.seat-name-view-active .wheelchair-seat {
    width: 76px;
    height: 52px;
}

.seat-name-content {
    width: 100%;
    pointer-events: none;
    text-align: center;
    line-height: 1.05;
}

.seat-name-number {
    font-size: 10px;
    opacity: 0.85;
}

.seat-name-last {
    font-size: 12px;
    font-weight: bold;
}

.seat-name-first,
.seat-name-place {
    font-size: 10px;
}

.seat-container.seat-name-view-active .couch-backrest {
    height: 12px;
    top: -16px;
}

.seat-container.seat-name-view-active .couch-armrest {
    width: 12px;
    left: auto;
}

.seat-container.seat-name-view-active .couch-armrest.left {
    left: -16px;
}

.seat-container.seat-name-view-active .couch-armrest.right {
    right: -16px;
}

.seat-container.seat-name-view-active .chair-backrest {
    height: 8px;
    top: -12px;
}

.seat-container.seat-name-view-active .chair-armrest {
    width: 8px;
}

.seat-container.seat-name-view-active .chair-armrest.left {
    left: -12px;
}

.seat-container.seat-name-view-active .chair-armrest.right {
    right: -12px;
}


