@font-face {
    font-family: "Montserrat";
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/Montserrat-Variable.woff2") format("woff2");
}

:root {
    --softtec-dark-blue: #00305e;
    --softtec-medium-blue1: #4c6e8e;
    --softtec-medium-blue2: #7b94ab;
    --softtec-medium-blue3: #d9e2e8;
    --softtec-light-blue1: #e5ebef;
    --softtec-light-blue2: #f2f5f7;
    --softtec-white: #ffffff;
    --softtec-disabled: #cdcdcd;
    --mobile-red: #ba0000;
    --mobile-green: #2a672f;
    --mobile-orange: #8f4800;
    --card-radius: 1rem;
    --card-radius-inner: 0.75rem;
    --control-radius: 0.75rem;
    --card-border: 1px solid var(--softtec-light-blue1);
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    --floating-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.35);
    --text-label: 0.6875rem;
    --text-body: 0.875rem;
    --text-title: 1rem;
    --text-value: 1.25rem;
    --text-display: 2rem;
    --press-transition: transform 0.15s ease;
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --date-bar-height: 3.5rem;
    --tabbar-height: var(--date-bar-height);
    --bottom-gap: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

* {
    box-sizing: border-box;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

html, body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    line-height: 1.35;
    letter-spacing: 0.5px;
    color: var(--softtec-dark-blue);
    background: var(--softtec-light-blue2);
    -webkit-tap-highlight-color: transparent;
}

body {
    font-size: var(--text-body);
}

html:has(.overlay) {
    overflow: hidden;
}

.sheet,
.menu-drawer {
    overscroll-behavior: contain;
}

h1,
h2,
h3 {
    font-size: var(--text-value);
    line-height: 1.25;
}

button {
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: var(--press-transition);
}

button:not(:disabled):active {
    transform: scale(0.97);
}

/* Verbindungsbildschirm (Mockup 01/02) */
.connect {
    min-height: 100dvh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--softtec-light-blue2);
    color: var(--softtec-dark-blue);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-value);
    font-weight: 700;
}

.connect .brand {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
}

.brand-mark {
    width: 100%;
    aspect-ratio: 117.23 / 19.17;
    background: var(--softtec-dark-blue);
    -webkit-mask: url("../icons/softtec_cloud_logo.svg") center / contain no-repeat;
    mask: url("../icons/softtec_cloud_logo.svg") center / contain no-repeat;
}

.pill {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: 1rem;
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.connect h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.lead {
    margin: 0;
    line-height: 1.45;
}

.banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--softtec-white);
    box-shadow: var(--card-shadow);
    line-height: 1.4;
}

.banner-dot {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--mobile-red);
}

.pms-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--softtec-white);
    box-shadow: var(--card-shadow);
    color: inherit;
    text-decoration: none;
    transition: var(--press-transition);
}

.pms-choice:active {
    transform: scale(0.97);
}

.pms-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--control-radius);
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
    font-weight: 700;
}

.pms-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pms-text small {
    font-size: var(--text-body);
}

.chevron {
    color: var(--softtec-medium-blue1);
    font-size: 1rem;
}

.hint {
    margin-top: auto;
    font-size: var(--text-body);
    line-height: 1.45;
}

/* Rahmen (Mockup 04, 08–12, 30, 31) */
.shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.shell-content {
    flex: 1;
    padding: 0 0.5rem calc(var(--tabbar-height) + var(--bottom-gap) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shell-content.with-date-bar {
    padding-bottom: calc(var(--tabbar-height) + var(--date-bar-height) + var(--bottom-gap) + 1.5rem);
}

.header-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    pointer-events: none;
}

.header-bar > * {
    pointer-events: auto;
}

.header-actions {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.header-actions > * {
    pointer-events: auto;
}

.menu-button {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: var(--softtec-medium-blue1);
    box-shadow: var(--floating-shadow);
    color: var(--softtec-white);
    font-size: 1.1rem;
}

.bottom-bars {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    bottom: var(--bottom-gap);
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-radius: 1.125rem;
    background: var(--softtec-white);
    box-shadow: var(--floating-shadow);
}

.date-bar {
    height: calc(var(--date-bar-height) - 0.375rem);
    display: flex;
    align-items: stretch;
    gap: 0.375rem;
    padding: 0.375rem 0.375rem 0;
}

.icon-button {
    flex: none;
    min-width: 2.5rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: var(--control-radius);
    background: var(--softtec-light-blue2);
    color: var(--softtec-dark-blue);
    font-size: 1rem;
}

.date-bar .icon-button i,
.tab-icon .fa-plus {
    -webkit-text-stroke: 1.5px currentColor;
}

.icon-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.date-button {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
    border: 0;
    border-radius: var(--control-radius);
    background: var(--softtec-light-blue2);
    color: var(--softtec-dark-blue);
}

.date-value {
    font-weight: 700;
}

.today-button {
    flex: none;
    padding: 0 1rem;
    border: 0;
    border-radius: 2rem;
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
    font-weight: 700;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--softtec-dark-blue) 45%, transparent);
    animation: fade-in 0.3s ease both;
}

.sheet,
.dialog {
    position: fixed;
    z-index: 30;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: var(--card-radius);
    background: var(--softtec-white);
    color: var(--softtec-dark-blue);
}

.sheet {
    top: 4rem;
    animation: sheet-in 0.45s var(--ease-out-soft) backwards;
}

.dialog {
    animation: dialog-in 0.35s var(--ease-out-soft) backwards;
}

.sheet.calendar {
    top: auto;
    bottom: calc(var(--bottom-gap) + var(--tabbar-height) + var(--date-bar-height) + 1rem);
}

.dialog {
    top: 30%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dialog h2 {
    margin: 0;
}

.dialog form {
    display: flex;
}

.section-label {
    margin: 0 0 0.5rem;
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sheet-hint,
.calendar-hint,
.menu-hint {
    color: var(--softtec-dark-blue);
    font-size: var(--text-body);
    line-height: 1.45;
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-button-light {
    min-width: 2.5rem;
    border: 0;
    background: transparent;
    color: var(--softtec-dark-blue);
    font-size: 1.25rem;
}

.icon-button-light:disabled {
    opacity: 0.3;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-weekday {
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 700;
}

.calendar-day {
    padding: 0.7rem 0;
    border: 0;
    border-radius: var(--control-radius);
    background: var(--softtec-light-blue2);
    color: var(--softtec-dark-blue);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--softtec-dark-blue);
    color: var(--softtec-white);
}

.calendar-day:disabled {
    background: transparent;
    color: var(--softtec-disabled);
    cursor: not-allowed;
}

.tabbar {
    position: relative;
    height: var(--tabbar-height);
    display: flex;
    padding: 0.375rem 0.125rem;
}

.tab-indicator {
    position: absolute;
    top: 0.375rem;
    bottom: 0.375rem;
    left: 0.25rem;
    width: calc((100% - 0.25rem) / var(--nav-count) - 0.25rem);
    border-radius: var(--control-radius);
    background-color: var(--softtec-dark-blue);
    background-image: linear-gradient(to bottom right, var(--softtec-medium-blue1), var(--softtec-dark-blue));
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
    transform: translateX(calc(var(--nav-active) * (100% + 0.25rem)));
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}

.tab-indicator-hidden {
    opacity: 0;
}

.tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--control-radius);
    color: var(--softtec-dark-blue);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.15s ease;
}

.tab.active {
    color: var(--softtec-white);
    font-weight: 600;
}

.tab:active {
    transform: scale(0.94);
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.25rem;
    font-size: 1rem;
    line-height: 1;
}

/* Chevron aufklappbarer Elemente (UI-13): FontAwesome fa-chevron-down, im geöffneten Zustand um 180° gedreht. */
.caret {
    flex: none;
    margin: 0 0.25rem;
}

.caret-up {
    transform: rotate(180deg);
}

.menu-drawer {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(22rem, 80vw);
    display: flex;
    flex-direction: column;
    border-radius: var(--card-radius) 0 0 var(--card-radius);
    background: var(--softtec-white);
    box-shadow: var(--floating-shadow);
    animation: drawer-in 0.5s var(--ease-out-soft) backwards;
}

.menu-head,
.menu-body > * {
    animation: fade-in-up 0.5s var(--ease-out-soft) backwards;
}

.menu-body > :nth-child(1) { animation-delay: 0.08s; }
.menu-body > :nth-child(2) { animation-delay: 0.12s; }
.menu-body > :nth-child(3) { animation-delay: 0.16s; }
.menu-body > :nth-child(4) { animation-delay: 0.2s; }
.menu-body > :nth-child(n + 5) { animation-delay: 0.24s; }

.menu-head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--softtec-medium-blue3);
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
}

.menu-logo {
    display: block;
    max-width: 100%;
    max-height: 6rem;
    margin-bottom: 0.5rem;
    object-fit: contain;
    object-position: left center;
}

.menu-head strong {
    font-size: var(--text-value);
}

.menu-head span {
    color: var(--softtec-dark-blue);
}

.menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
}

.menu-connection {
    font-size: var(--text-title);
}

.menu-connection-state {
    color: var(--softtec-dark-blue);
}

.logout-button {
    margin-top: auto;
}

.button-outline,
.button-danger,
.button-danger-outline {
    width: 100%;
    padding: 0.9rem;
    border-radius: 2rem;
    font-weight: 700;
}

.button-outline {
    border: 1px solid var(--softtec-dark-blue);
    background: var(--softtec-white);
    color: var(--softtec-dark-blue);
}

.button-danger {
    border: 0;
    background: var(--mobile-red);
    color: var(--softtec-white);
}

.button-danger-outline {
    border: 2px solid var(--mobile-red);
    background: var(--softtec-white);
    color: var(--mobile-red);
}

.state,
.ticker-card,
.kpi-card,
.occupancy-card,
.form-card,
.offer-card,
.assignment-card {
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--softtec-white);
    box-shadow: var(--card-shadow);
    animation: fade-in-up 0.5s var(--ease-out-soft) backwards;
}

.state {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    line-height: 1.45;
}

.state > div,
.state-empty {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.state span {
    color: var(--softtec-dark-blue);
}

.state-icon {
    flex: none;
    color: var(--mobile-red);
    font-size: 1.4rem;
    font-weight: 700;
}

.state .button-outline {
    width: auto;
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
}

/* Ticker (Mockups 04–07, 12). Status-Icons sind laut PRD Platzhalter-Flächen; die Mockup-Farbe Violett für „Angebot“
   gibt es in der Palette nicht ([UI-2]/[UI-7]), bis zur Abstimmung steht dort Medium Blue. */
.filter {
    position: relative;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 1.25rem;
    background: var(--softtec-white);
    box-shadow: var(--floating-shadow);
    color: var(--softtec-medium-blue1);
    font-weight: 600;
}

.filter-menu {
    position: absolute;
    left: 0;
    z-index: 5;
    min-width: 11rem;
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    list-style: none;
    border-radius: var(--card-radius);
    background: var(--softtec-white);
    box-shadow: var(--floating-shadow);
    transform-origin: top left;
    animation: pop-in 0.3s var(--ease-out-soft) backwards;
}

.filter-menu li {
    padding: 0.6rem 0.9rem;
    border-radius: var(--control-radius);
    color: var(--softtec-medium-blue1);
    cursor: pointer;
}

.filter-menu li.active {
    background: var(--softtec-light-blue1);
    font-weight: 700;
}

.daily-report {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    background: var(--softtec-dark-blue);
    color: var(--softtec-white);
}

.daily-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.daily-report-rate {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 0;
}

.daily-report-rate strong {
    font-size: var(--text-display);
}

.daily-report-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.daily-report-tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--softtec-medium-blue1);
}

.daily-report-tile small {
    color: var(--softtec-medium-blue3);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.daily-report-tile strong {
    font-size: var(--text-title);
}

.ticker-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.ticker-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.ticker-body > div {
    display: contents;
}

.ticker-body > div > :first-child {
    grid-row: 1;
}

.ticker-body > div > :last-child:not(:first-child) {
    grid-row: 2;
}

.ticker-body > div:first-child > * {
    grid-column: 1;
}

.ticker-amount > * {
    grid-column: 2;
    white-space: nowrap;
}

.ticker-time {
    margin-left: auto;
    color: var(--softtec-dark-blue);
}

.ticker-title {
    font-size: var(--text-title);
}

.ticker-sub,
.ticker-amount small {
    color: var(--softtec-dark-blue);
}

.ticker-amount {
    align-items: flex-end;
    text-align: right;
}

.ticker-amount strong {
    font-size: var(--text-title);
}

.amount-cancelled,
.status-cancelled .status-label {
    color: var(--mobile-red);
}

.status-icon {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: var(--softtec-dark-blue);
}

.status-icon.status-offer { background: var(--softtec-medium-blue1); }
.status-icon.status-option { background: var(--mobile-orange); }
.status-icon.status-waitlist { background: var(--softtec-disabled); }
.status-icon.status-booked { background: var(--mobile-green); }
.status-icon.status-cancelled { background: var(--mobile-red); }
.status-icon.status-no-show { background: var(--softtec-medium-blue2); }

.status-offer .status-label { color: var(--softtec-dark-blue); }
.status-waitlist .status-label { color: var(--softtec-dark-blue); }
.status-booked .status-label { color: var(--mobile-green); }
.status-option .status-label { color: var(--mobile-orange); }

.ticker-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin: 0.5rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--softtec-medium-blue3);
}

.ticker-details dt {
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ticker-details dd {
    margin: 0;
}

/* Kennzahlen (Mockups 13/14) */
.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.kpi-occupancy {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.kpi-occupancy dl {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.kpi-occupancy dt,
.kpi-tile small {
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kpi-occupancy dd {
    margin: 0;
    font-size: var(--text-value);
    font-weight: 700;
}

.occupancy-donut {
    flex: none;
    width: 8rem;
    margin: 0;
    text-align: center;
}

.occupancy-donut figcaption {
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donut-track,
.donut-value {
    fill: none;
    stroke-width: 5;
}

.donut-track {
    stroke: var(--softtec-light-blue2);
}

.donut-value {
    stroke: var(--softtec-dark-blue);
}

.donut-label {
    fill: var(--softtec-dark-blue);
    font-size: 0.5rem;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}

.kpi-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-card-head small,
.kpi-footnote {
    color: var(--softtec-dark-blue);
}

.kpi-footnote {
    margin: 0;
    font-size: var(--text-label);
}

.kpi-tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--softtec-medium-blue3);
    overflow-wrap: anywhere;
}

.kpi-tile-period strong {
    font-size: var(--text-value);
}

/* Belegung (Mockups 15–17). Balken- und Zimmerfarben sind die im PMS hinterlegten Statusfarben und kommen zur Laufzeit ([UI-8]). */
.segmented {
    --segment-count: 2;
    --segment-index: 0;
    --segment-pad: 0.25rem;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--segment-count), minmax(0, 1fr));
    padding: var(--segment-pad);
    border: 0;
    border-radius: 1.25rem;
    background: var(--softtec-white);
    box-shadow: var(--floating-shadow);
}

.segmented::before {
    content: "";
    position: absolute;
    top: var(--segment-pad);
    bottom: var(--segment-pad);
    left: var(--segment-pad);
    width: calc((100% - 2 * var(--segment-pad)) / var(--segment-count));
    border-radius: 1rem;
    background: var(--softtec-medium-blue1);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
    transform: translateX(calc(var(--segment-index) * 100%));
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
    pointer-events: none;
}

.segmented:has(> button:nth-child(2).active) {
    --segment-index: 1;
}

.segmented:has(> button:nth-child(3).active) {
    --segment-index: 2;
}

.segmented button {
    position: relative;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    border: none;
    border-radius: 1rem;
    background: none;
    color: var(--softtec-medium-blue1);
    font-size: var(--text-body);
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    transition: color 0.3s ease, var(--press-transition);
}

.segmented button.active {
    color: var(--softtec-white);
}

.segmented-small {
    flex: 1;
    min-width: 0;
}

.segmented-periods {
    --segment-count: 3;
    flex: none;
    grid-template-columns: repeat(var(--segment-count), 5rem);
}

.segmented + .chips {
    margin-top: 0.5rem;
}

@media (max-width: 360px) {
    .segmented button {
        padding: 0.5rem;
        font-size: var(--text-label);
    }

    .tab {
        font-size: 0.5625rem;
    }

    .date-bar .icon-button {
        min-width: 2rem;
    }

    .today-button {
        padding: 0 0.75rem;
    }

    .date-value {
        font-size: var(--text-body);
    }
}

.occupancy-card {
    padding: 1rem 0.5rem;
}

.occupancy-grid {
    display: grid;
    grid-template-columns: auto repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
}

.day-head,
.row-head span {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.day-head {
    position: sticky;
    top: 3.5rem;
    z-index: 2;
    min-width: 0;
    align-items: center;
    padding: 0.25rem 0;
    border-radius: var(--control-radius);
    background: var(--softtec-white);
}

.day-head strong {
    font-size: var(--text-body);
    white-space: nowrap;
}

.row-head.mirror-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.day-head small,
.row-head small {
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 700;
}

.row-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    grid-column: 1;
}

.row-head span {
    text-align: left;
}

.room-dot {
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--status-color, var(--softtec-disabled));
}

.plan-cell,
.mirror-cell {
    height: 2.75rem;
    border-radius: var(--control-radius);
    background: var(--softtec-light-blue2);
}

.plan-bar {
    z-index: 1;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.5rem;
    overflow: hidden;
    border: none;
    border-radius: var(--control-radius);
    background: var(--bar-color, var(--softtec-dark-blue));
    color: var(--softtec-white);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mirror-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mirror-few {
    background: color-mix(in srgb, var(--mobile-orange) 15%, var(--softtec-white));
    color: var(--mobile-orange);
}

.mirror-none {
    background: color-mix(in srgb, var(--mobile-red) 12%, var(--softtec-white));
    color: var(--mobile-red);
}

.occupancy-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0 0;
    list-style: none;
    border-top: 1px solid var(--softtec-medium-blue3);
    color: var(--softtec-dark-blue);
}

.occupancy-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-sheet.reservation-detail {
    top: auto;
    max-height: calc(100dvh - 2rem);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.reservation-detail .ticker-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    animation: none;
}

/* Verwaltung und Buchung (Mockups 18–29) */
.button-primary {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 2rem;
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
    font-weight: 700;
    font-size: var(--text-title);
}

.button-header {
    width: auto;
    height: 2.5rem;
    padding: 0 1rem;
    font-size: var(--text-body);
    box-shadow: var(--floating-shadow);
}

.button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-sheet {
    top: 2rem;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-head {
    gap: 1rem;
}

.sheet-head h2 {
    flex: 1;
    margin: 0;
    font-size: var(--text-value);
}

.sheet-head .icon-button {
    min-height: 3rem;
}

.sheet-head .icon-button,
.menu-close {
    border: 0;
    background: none;
    color: var(--softtec-dark-blue);
    font-size: 1.5625rem;
}

.notice {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: var(--control-radius);
    line-height: 1.4;
}

.notice-error {
    border: 1px solid color-mix(in srgb, var(--mobile-red) 40%, transparent);
    background: color-mix(in srgb, var(--mobile-red) 8%, var(--softtec-white));
}

.notice-error strong {
    color: var(--mobile-red);
}

.notice-info {
    border: 1px solid var(--softtec-medium-blue3);
    background: var(--softtec-light-blue1);
}

.choice-row,
.day-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: var(--control-radius);
    background: var(--softtec-white);
    color: var(--softtec-dark-blue);
    text-align: left;
}

.choice-row .radio {
    flex: none;
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid var(--softtec-medium-blue3);
    border-radius: 50%;
}

.choice-row.active {
    border-color: var(--softtec-dark-blue);
    background: var(--softtec-light-blue1);
}

.choice-row.active .radio {
    border: 0.4rem solid var(--softtec-dark-blue);
}

.choice-row small,
.day-row small {
    margin-left: auto;
    color: var(--softtec-dark-blue);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: 2rem;
    background: var(--softtec-light-blue2);
    color: var(--softtec-dark-blue);
    font-size: 0.8125rem;
    font-weight: 700;
}

.chip.active {
    border-color: var(--softtec-dark-blue);
    background: var(--softtec-dark-blue);
    color: var(--softtec-white);
}

.date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.date-range input {
    min-width: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--softtec-dark-blue);
    -webkit-mask: url("../icons/calendar2.svg") center / contain no-repeat;
    mask: url("../icons/calendar2.svg") center / contain no-repeat;
    cursor: pointer;
}

.date-range input,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: var(--control-radius);
    font: inherit;
    font-size: 1rem;
    color: var(--softtec-dark-blue);
    background: var(--softtec-white);
}

.day-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--softtec-light-blue2);
    color: var(--softtec-dark-blue);
}

.day-row.included {
    border-color: color-mix(in srgb, var(--mobile-green) 40%, transparent);
    background: color-mix(in srgb, var(--mobile-green) 6%, var(--softtec-white));
}

.day-row.included .day-mark {
    background: var(--mobile-green);
    color: var(--softtec-white);
}

.day-row.included small {
    color: var(--mobile-green);
}

.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assignment-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.assignment-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--softtec-dark-blue);
    font-size: var(--text-body);
    font-weight: 600;
}

.assignment-name {
    font-size: var(--text-title);
}

.assignment-scope {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.assignment-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignment-head .scope-badge {
    flex: none;
    margin-left: auto;
}

.scope-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    background: var(--softtec-light-blue2);
    font-size: var(--text-label);
    font-weight: 700;
}

.scope-house {
    background: var(--softtec-medium-blue3);
}

.stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.stepper li {
    padding-top: 0.25rem;
    border-top: 0.25rem solid var(--softtec-medium-blue3);
    color: var(--softtec-dark-blue);
    font-size: var(--text-label);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.stepper li.done {
    border-top-color: var(--softtec-dark-blue);
}

.form-card,
.offer-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field .section-label {
    margin: 0;
}

.field-error {
    color: var(--mobile-red);
}

.card-title {
    margin: 0;
    font-size: var(--text-title);
}

.guest-count {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-count .section-label {
    margin: 0 auto 0 0;
}

.guest-count strong {
    min-width: 2ch;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.stepper-button {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: var(--control-radius);
    background: var(--softtec-white);
    color: var(--softtec-dark-blue);
    font-size: 1.3rem;
}

.button-dark {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 2rem;
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
    font-weight: 700;
}

.button-pill {
    flex: none;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: 2rem;
    background: var(--softtec-white);
    color: var(--softtec-dark-blue);
    font-weight: 700;
}

.button-lime,
.button-lime-square {
    border: none;
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
}

.button-lime-square {
    flex: none;
    width: 3.5rem;
    border-radius: var(--control-radius);
    font-size: 1.5rem;
}

.header-title {
    margin: 0 0 0 0.5rem;
    font-size: var(--text-value);
    font-weight: 800;
    color: var(--softtec-medium-blue1);
}

.header-actions .back-button {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--softtec-white);
    box-shadow: var(--floating-shadow);
}

.button-cart {
    flex: none;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: var(--softtec-medium-blue1);
    color: var(--softtec-white);
    font-size: 1.1rem;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-head .card-title {
    margin: 0;
}

.sheet-footer {
    position: sticky;
    bottom: -1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: auto -1rem -1rem;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--softtec-white);
    box-shadow: 0 -0.5rem 1rem color-mix(in srgb, var(--softtec-dark-blue) 8%, transparent);
}

.form-field {
    scroll-margin-bottom: 10rem;
}

.booking-head {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    color: var(--softtec-dark-blue);
}

.offer-row,
.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 0;
    border-top: 1px solid var(--softtec-medium-blue3);
}

.offer-row > div,
.contact-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.offer-row small,
.contact-text small {
    color: var(--softtec-dark-blue);
}

.contact-row {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--softtec-medium-blue3);
    background: none;
    color: var(--softtec-dark-blue);
    text-align: left;
}

.contact-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--control-radius);
    background: var(--softtec-dark-blue);
    color: var(--softtec-white);
    font-weight: 700;
}

.contact-row.chosen .contact-mark {
    background: var(--mobile-green);
}

.contact-search {
    display: flex;
    gap: 0.5rem;
}

.contact-search input {
    flex: 1;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--softtec-medium-blue3);
    border-radius: var(--control-radius);
    font: inherit;
    font-size: 1rem;
}

.chosen-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--softtec-white);
    box-shadow: var(--card-shadow);
}

.chosen-card .section-label {
    margin: 0;
}

.chosen-card strong {
    font-size: var(--text-title);
}

.notice-unclear {
    border: 1px solid var(--mobile-orange);
    background: var(--softtec-white);
}

.notice .button-outline {
    width: auto;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.7rem 1.25rem;
}

.confirmation h2 {
    margin: 0;
}

.confirmation small {
    color: var(--softtec-dark-blue);
}

.confirmation .button-outline {
    width: auto;
    align-self: center;
}

.confirmation-mark {
    align-self: center;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--control-radius);
    background: var(--mobile-green);
    color: var(--softtec-white);
    font-size: 1.5rem;
}

.form-field.invalid input,
.form-field.invalid select {
    border-color: var(--mobile-red);
}

.confirmation-mark {
    animation: pop-in 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.overlay.closing,
.sheet.closing,
.dialog.closing,
.menu-drawer.closing {
    pointer-events: none;
}

.overlay.closing {
    animation: fade-out 0.25s ease forwards;
}

.sheet.closing {
    animation: sheet-out 0.25s ease-in forwards;
}

.dialog.closing {
    animation: dialog-out 0.25s ease-in forwards;
}

.menu-drawer.closing {
    animation: drawer-out 0.25s ease-in forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes sheet-out {
    to {
        transform: translateY(100vh);
    }
}

@keyframes dialog-out {
    to {
        opacity: 0;
        transform: translateY(3rem);
    }
}

@keyframes drawer-out {
    to {
        transform: translateX(100%);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sheet-in {
    from {
        transform: translateY(100vh);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawer-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
