@import url("../../_lib/typography.css");

:root {
    --orange: #ec6608;
    --orange-dark: #bf4c00;
    --ink: #242424;
    --muted: #62676b;
    --line: #dfe2e4;
    --soft: #f4f5f5;
    --white: #fff;
    --shadow: 0 18px 46px rgba(36, 36, 36, .12);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #eef0f1;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f7f7f6, #e8ebec); }
a { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; }

.app-seminarbuchung .page-shell {
    width: 100%;
    margin: 0;
}
.app-seminarbuchung .page-heading {
    display: none;
}
.laravel-module-shell {
    width: 100%;
    background: #f4f6f7;
}
.laravel-module-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - 80px);
    border: 0;
    background: #f4f6f7;
}

.login-page { display: grid; place-items: center; padding: 3rem; }
.login-shell {
    display: grid;
    grid-template-columns: minmax(340px, 1.25fr) minmax(320px, .75fr);
    width: min(1040px, 100%);
    min-height: 610px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    color: var(--white);
    background: linear-gradient(145deg, #3c3d3e 0%, #161718 100%);
}
.brand-panel img { width: min(360px, 100%); background: #fff; padding: 1rem; }
.brand-panel h1 { margin: .25rem 0 1rem; font-size: clamp(3rem, 8vw, 5.5rem); }
.brand-panel p:last-child { max-width: 35rem; font-size: 1.2rem; line-height: 1.6; }
.login-panel { align-self: center; padding: 4rem; }
.login-panel h2 { margin: .2rem 0 2rem; font-size: 2.4rem; }
.eyebrow { color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-form { display: grid; gap: 1.2rem; }
.login-form label, .form-card label { display: grid; gap: .45rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 1px solid #b9bec1;
    border-radius: .3rem;
    padding: .8rem .9rem;
    color: var(--ink);
    background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(236, 102, 8, .22); border-color: var(--orange); }
button, .button {
    display: inline-flex;
    justify-content: center;
    border: 0;
    border-radius: .3rem;
    padding: .8rem 1.15rem;
    color: #fff;
    background: var(--orange);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.button.secondary { color: var(--ink); background: #e5e7e8; }
.subtle-link { display: inline-block; margin-top: 1.4rem; color: var(--muted); }
.developer-login-hint {
    margin-top: 1.2rem;
    padding: .9rem 1rem;
    border: 1px dashed rgba(236, 102, 8, .45);
    border-radius: .35rem;
    background: #fff8f2;
    color: #443226;
    font-size: .9rem;
}
.developer-login-hint > span {
    display: block;
    margin-bottom: .65rem;
    color: var(--orange-dark);
    font-weight: 800;
}
.developer-login-hint dl {
    display: grid;
    gap: .45rem;
    margin: 0;
}
.developer-login-hint div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.developer-login-hint dt { color: var(--muted); }
.developer-login-hint dd { margin: 0; font-weight: 800; }
.alert, .notice { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 4px solid #b52b28; background: #fff2f0; }
.notice { border-color: var(--orange); background: #fff7ed; }
.small-card { width: min(500px, 100%); padding: 2.5rem; background: #fff; box-shadow: var(--shadow); }
.small-card img { width: 260px; max-width: 100%; }

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: stretch;
    min-height: 80px;
    padding: 0 2rem;
    color: #fff;
    background: #292a2b;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.brand { display: grid; place-items: center; width: 250px; margin-right: 2rem; background: #fff; }
.brand img { display: block; max-width: 215px; max-height: 62px; }
.main-nav { display: flex; align-items: stretch; flex: 1; }
.main-nav > a, .nav-group > button {
    display: flex;
    align-items: center;
    border-radius: 0;
    padding: 0 1.1rem;
    color: #fff;
    background: transparent;
    font-size: .92rem;
    text-decoration: none;
}
.main-nav > a:hover, .nav-group:hover > button, .main-nav .active { background: var(--orange); }
.nav-group { position: relative; display: flex; }
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 280px;
    padding: .4rem;
    background: #fff;
    box-shadow: var(--shadow);
}
.nav-group:hover .submenu, .nav-group:focus-within .submenu { display: grid; }
.submenu a { padding: .8rem 1rem; color: var(--ink); text-decoration: none; }
.submenu a:hover, .submenu a.active { color: #fff; background: var(--orange); }
.session-user { align-self: center; padding-left: 1rem; font-weight: 700; white-space: nowrap; }
.page-shell { width: min(1500px, calc(100% - 3rem)); margin: 2.5rem auto 5rem; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading h1 { margin: .2rem 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.dev-tools { position: fixed; z-index: 30; right: 1rem; bottom: 1rem; display: flex; gap: .4rem; }
.dev-tools a, .dev-tools button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    background: #292a2b;
    font-size: 1.35rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.info-card, .grid-card, .form-card {
    border: 1px solid var(--line);
    border-radius: .45rem;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 10px 34px rgba(0,0,0,.07);
}
.info-card { width: min(1180px, 100%); margin: auto; }
.secretariat-info {
    width: min(900px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #e0e2e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .13);
}
.secretariat-info-heading {
    padding: 34px 42px 28px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    background: linear-gradient(135deg, #fff4e9, #fff);
}
.secretariat-info-heading .eyebrow { margin: 0 0 .35rem; }
.secretariat-info-heading h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    line-height: 1.2;
}
.secretariat-info-heading > p:last-child { margin: 0; color: var(--muted); }
.secretariat-ticker {
    overflow: hidden;
    padding: 14px 0;
    color: #fff;
    background: var(--orange);
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}
.secretariat-ticker marquee { display: block; width: 100%; }
.secretariat-content {
    padding: 38px 46px 46px;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.7;
}
.secretariat-content > :first-child { margin-top: 0; }
.secretariat-content > :last-child { margin-bottom: 0; }
.secretariat-content h1,
.secretariat-content h2,
.secretariat-content h3 { color: var(--ink); line-height: 1.25; }
.secretariat-content blockquote {
    margin: 20px 0;
    padding: 4px 0 4px 18px;
    border-left: 4px solid var(--orange);
    color: var(--muted);
}
.secretariat-graphic { display: block; max-width: 100%; height: auto; margin: 0 0 24px; }
.secretariat-alert { margin: 2rem; }
.personal-info {
    padding: 0 46px 38px;
    border-top: 1px solid var(--line);
    background: #fffaf5;
}
.personal-info h3 { margin-top: 30px; }
.fact-card { display: grid; gap: .3rem; margin-top: 2rem; border-left: 5px solid var(--orange); padding: 1rem 1.2rem; background: var(--soft); }
.meta, .intro { color: var(--muted); }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.course-toolbar { align-items: center; justify-content: space-between; gap: 1rem; }
.selected-course { padding: .7rem 1rem; border-left: 5px solid var(--orange); background: #fff; }
.booking-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border-left: 5px solid var(--orange);
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}
.booking-toolbar span { color: var(--muted); }
.selection-cell { width: 120px; text-align: center; }
.selection-cell form { margin: 0; }
.selection-cell .button { white-space: nowrap; }
.search-bar { display: flex; gap: .5rem; max-width: 620px; margin-bottom: 1rem; }
.search-bar button { min-width: 110px; }
.grid-card { padding: 0; overflow: hidden; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th { position: sticky; top: 0; padding: .9rem .8rem; color: #fff; background: #444647; text-align: left; white-space: nowrap; }
td { max-width: 380px; border-bottom: 1px solid var(--line); padding: .8rem; vertical-align: top; }
tbody tr:nth-child(even) { background: #f7f8f8; }
tbody tr:hover { background: #fff4e9; }
.actions { white-space: nowrap; }
.actions a { font-weight: 700; }
.empty { padding: 2rem; color: var(--muted); text-align: center; }
.grid-card footer { padding: .8rem 1rem; color: var(--muted); background: var(--soft); font-size: .82rem; }
.file-indicator { border-radius: 1rem; padding: .2rem .55rem; color: #fff; background: var(--orange); font-size: .78rem; }
.form-card { display: grid; gap: 1.5rem; }
.form-card fieldset { border: 1px solid var(--line); padding: 1.3rem; }
.form-card legend { padding: 0 .5rem; font-size: 1.2rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 1rem; }

body.mobile-preview,
body.mobile-preview-active {
    width: min(390px, 100%);
    margin: 0 auto;
    overflow-x: hidden;
}
body.mobile-preview .page-shell,
body.mobile-preview-active .page-shell { width: calc(100% - 1rem); margin-top: 1.25rem; }
body.mobile-preview .topbar,
body.mobile-preview-active .topbar { width: 100%; margin: auto; padding: .4rem; flex-wrap: wrap; }
body.mobile-preview .brand,
body.mobile-preview-active .brand { width: 100%; margin: 0; }
body.mobile-preview .main-nav,
body.mobile-preview-active .main-nav { width: 100%; overflow-x: auto; }
body.mobile-preview .session-user,
body.mobile-preview-active .session-user { display: none; }
body.mobile-preview .form-grid,
body.mobile-preview-active .form-grid { grid-template-columns: 1fr; }
body.mobile-preview .page-heading h1,
body.mobile-preview-active .page-heading h1 {
    font-size: 2rem;
    overflow-wrap: anywhere;
}
body.mobile-preview .course-toolbar,
body.mobile-preview-active .course-toolbar,
body.mobile-preview .search-bar,
body.mobile-preview-active .search-bar {
    display: grid;
    grid-template-columns: 1fr;
}
body.mobile-preview .selected-course,
body.mobile-preview-active .selected-course { width: 100%; }
body.mobile-preview .search-bar button,
body.mobile-preview-active .search-bar button { width: 100%; }
body.mobile-preview .grid-card,
body.mobile-preview-active .grid-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.mobile-preview .table-scroll,
body.mobile-preview-active .table-scroll { overflow: visible; }
body.mobile-preview table,
body.mobile-preview-active table {
    display: block;
    background: transparent;
}
body.mobile-preview thead,
body.mobile-preview-active thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
body.mobile-preview tbody,
body.mobile-preview-active tbody {
    display: grid;
    gap: 1rem;
}
body.mobile-preview tbody tr,
body.mobile-preview-active tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .08);
}
body.mobile-preview tbody tr:nth-child(even),
body.mobile-preview-active tbody tr:nth-child(even),
body.mobile-preview tbody tr:hover,
body.mobile-preview-active tbody tr:hover { background: #fff; }
body.mobile-preview td,
body.mobile-preview-active td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr);
    gap: .75rem;
    width: 100%;
    max-width: none;
    border-bottom: 1px solid var(--line);
    padding: .75rem;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.mobile-preview td:last-child,
body.mobile-preview-active td:last-child { border-bottom: 0; }
body.mobile-preview td::before,
body.mobile-preview-active td::before {
    content: attr(data-label);
    color: #555;
    font-weight: 800;
}
body.mobile-preview td.empty,
body.mobile-preview-active td.empty { display: block; }
body.mobile-preview td.empty::before,
body.mobile-preview-active td.empty::before { content: none; }
body.mobile-preview .selection-cell,
body.mobile-preview-active .selection-cell { width: 100%; }
body.mobile-preview .selection-cell .button,
body.mobile-preview-active .selection-cell .button { width: 100%; }
body.mobile-preview td.actions,
body.mobile-preview-active td.actions { display: none; }

@media (max-width: 900px) {
    .login-page { padding: 1rem; }
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { min-height: 330px; padding: 2rem; }
    .login-panel { padding: 2rem; }
    .topbar { position: relative; flex-wrap: wrap; padding: .5rem; }
    .brand { width: 100%; margin: 0; }
    .main-nav { overflow-x: auto; min-height: 56px; }
    .session-user { display: none; }
    .page-shell { width: calc(100% - 1rem); margin-top: 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
    .secretariat-info-heading,
    .secretariat-content,
    .personal-info { padding-left: 24px; padding-right: 24px; }
    .secretariat-info-heading { padding-top: 28px; padding-bottom: 24px; }
    .secretariat-content { padding-top: 30px; padding-bottom: 34px; }
    .secretariat-ticker { font-size: .9rem; }
}

@media (max-width: 600px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .page-heading h1 {
        font-size: 2rem;
        overflow-wrap: anywhere;
    }
    .course-toolbar,
    .search-bar {
        display: grid;
        grid-template-columns: 1fr;
    }
    .selected-course,
    .search-bar button { width: 100%; }
    .grid-card {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .table-scroll { overflow: visible; }
    table {
        display: block;
        background: transparent;
    }
    thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    tbody {
        display: grid;
        gap: 1rem;
    }
    tbody tr {
        display: block;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: .55rem;
        background: #fff;
        box-shadow: 0 7px 24px rgba(0, 0, 0, .08);
    }
    tbody tr:nth-child(even),
    tbody tr:hover { background: #fff; }
    td {
        display: grid;
        grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr);
        gap: .75rem;
        width: 100%;
        max-width: none;
        border-bottom: 1px solid var(--line);
        padding: .75rem;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    td:last-child { border-bottom: 0; }
    td::before {
        content: attr(data-label);
        color: #555;
        font-weight: 800;
    }
    td.empty { display: block; }
    td.empty::before { content: none; }
    .selection-cell { width: 100%; }
    .selection-cell .button { width: 100%; }
    td.actions { display: none; }
}


/* APH gebuchte Seminare: Abmelden am Zeilenanfang */
.selection-grid-form > .toolbar { justify-content: flex-start; }

/* APH Ambulanzkalender: SC-nahe Blank-Applikation */
body.app-spez_raum_termin_calender {
    background: #dce8ef;
}
body.app-spez_raum_termin_calender .topbar {
    min-height: 58px;
}
body.app-spez_raum_termin_calender .brand {
    width: 210px;
}
body.app-spez_raum_termin_calender .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
}
body.app-spez_raum_termin_calender .page-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.aph-sc-calendar {
    min-height: calc(100vh - 58px);
    background: #d8e6ee;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.aph-sc-roomselect {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 9px 12px 4px;
    font-size: 18px;
}
.aph-sc-roomselect select {
    width: 300px;
    height: 24px;
    padding: 1px 4px;
    border: 1px solid #8fa4b2;
    border-radius: 2px;
    font-size: 14px;
}
.aph-sc-roomselect button,
.aph-nav-buttons a,
.aph-nav-buttons button,
.aph-view-buttons button,
.aph-dialog-actions button,
.aph-sc-dialog button.help {
    border: 1px solid #bccbd4;
    border-radius: 4px;
    padding: 5px 12px;
    color: #111;
    background: linear-gradient(#fff, #edf3f6);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    cursor: pointer;
}
.aph-sc-roomselect .go-button {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(#4fc27d, #248943);
    font-size: 12px;
}
.aph-active-room {
    padding: 7px 0 2px 0;
}
.aph-sc-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 0;
}
.aph-sc-left {
    padding-top: 4px;
}
.aph-nav-buttons {
    display: flex;
    gap: 4px;
    margin: 0 6px 8px;
}
.aph-nav-buttons a,
.aph-nav-buttons button {
    min-width: 58px;
    text-align: center;
}
.aph-mini-calendar {
    margin: 0 0 0 0;
    border-top: 1px solid #c5d2db;
    border-left: 1px solid #d7dfe5;
    background: #fff;
}
.aph-mini-title {
    padding: 6px 4px;
    font-weight: 700;
}
.aph-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.aph-mini-grid span {
    min-height: 39px;
    border-right: 1px solid #e2e6ea;
    border-bottom: 1px solid #e2e6ea;
    padding: 7px 6px;
    text-align: right;
}
.aph-mini-weekdays span {
    min-height: 26px;
    background: #e8f0f5;
    color: #3e4a52;
    font-weight: 700;
    text-align: center;
}
.aph-mini-grid span.muted { color: #adb2b6; }
.aph-mini-grid span.today { background: #bed7f4; }
.aph-sc-main {
    min-width: 0;
}
.aph-sc-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 62px;
}
.aph-sc-toolbar h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}
.aph-view-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-right: 0;
}
.aph-view-buttons button {
    min-width: 74px;
    border-radius: 4px 4px 0 0;
}
.aph-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    border-top: 1px solid #c7d1d8;
    border-left: 1px solid #c7d1d8;
    background: #fff;
}
.aph-month-head {
    height: 48px;
    border-right: 1px solid #c7d1d8;
    border-bottom: 1px solid #c7d1d8;
    padding: 16px 8px;
    background: #e5eef4;
    color: #303941;
    font-weight: 700;
    text-align: center;
}
.aph-month-day {
    position: relative;
    min-height: 222px;
    border-right: 1px solid #cfd7dd;
    border-bottom: 1px solid #cfd7dd;
    padding: 26px 5px 4px;
    background: #fff;
    cursor: crosshair;
}
.aph-month-day.muted {
    background: #fafafa;
    color: #acb1b5;
}
.aph-month-day.today {
    background: #d3e6ff;
}
.aph-month-day .day-number {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 13px;
}
.aph-sc-event {
    display: block;
    overflow: hidden;
    min-height: 43px;
    margin-bottom: 2px;
    border-radius: 3px;
    padding: 3px 5px;
    color: #050505;
    font-size: 12px;
    line-height: 1.12;
    cursor: default;
}
.aph-sc-event strong,
.aph-sc-event b,
.aph-sc-event span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aph-sc-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .54);
}
.aph-sc-modal.open { display: flex; }
.aph-sc-dialog {
    width: 760px;
    max-width: calc(100vw - 40px);
    border: 1px solid #a8bac5;
    background: #dbeaf1;
    box-shadow: 0 16px 44px rgba(0,0,0,.35);
    font-size: 14px;
}
.aph-dialog-title {
    display: flex;
    justify-content: space-between;
    padding: 17px 13px 9px;
    border-bottom: 1px solid #b6c8d4;
    background: linear-gradient(#eef5f8, #dce9f0);
}
.aph-dialog-row,
.aph-dialog-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 10px;
    align-items: center;
    padding: 4px 13px;
}
.aph-dialog-grid {
    grid-template-columns: 140px 170px 24px 120px 170px 30px;
}
.aph-sc-dialog label {
    font-weight: 700;
}
.aph-sc-dialog em {
    color: #d00000;
    font-style: normal;
}
.aph-sc-dialog input,
.aph-sc-dialog select {
    height: 24px;
    border: 1px solid #bfd0d9;
    border-radius: 0;
    padding: 1px 4px;
    background: #fff;
    font-size: 14px;
}
.aph-dialog-section {
    margin-top: 6px;
    padding: 6px 13px;
    border-top: 1px solid #c1d0d8;
    border-bottom: 1px solid #c1d0d8;
    background: linear-gradient(#edf5f8, #dbe9f0);
    font-weight: 700;
}
.aph-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 13px;
    background: #eef5f8;
}
.aph-sc-dialog button.help {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    color: #777;
}
.calendar-icon { color: #6da2ca; font-size: 17px; }
@media (max-width: 1100px) {
    .aph-sc-layout { grid-template-columns: 1fr; }
    .aph-sc-left { display: none; }
    .aph-month-grid { grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; }
}
.aph-sc-event.own-event {
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

.aph-delete-body {
  padding: 18px 24px;
  background: #fff;
  line-height: 1.35;
}

.aph-delete-body p {
  margin: 0 0 10px;
}

.aph-delete-dialog .aph-dialog-actions button[disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.aph-mobile-term-list {
  display: none;
}

.aph-mobile-day {
  background: #fff;
  border: 1px solid #d9e2e7;
  border-radius: 10px;
  margin: 0 0 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.aph-mobile-day header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px 14px;
  background: #e9f1f5;
}

.aph-mobile-day header strong {
  font-size: 1.1rem;
}

.aph-mobile-day header span {
  color: #555;
  font-weight: 700;
}

.aph-mobile-add {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 7px;
  background: #f45b00;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.aph-mobile-empty {
  margin: 0;
  padding: 14px;
  color: #666;
}

.aph-mobile-event {
  margin: 10px 12px;
  padding: 10px 12px;
  border-left: 7px solid #89e610;
  background: #f8fbfd;
  border-radius: 7px;
  cursor: default;
}

.aph-mobile-event.own-event {
  cursor: pointer;
}

.aph-mobile-event strong,
.aph-mobile-event b,
.aph-mobile-event span,
.aph-mobile-event em {
  display: block;
}

.aph-mobile-event b {
  margin-top: 4px;
  font-size: 1rem;
}

.aph-mobile-event span,
.aph-mobile-event em {
  margin-top: 3px;
  color: #555;
  font-style: normal;
}

@media (max-width: 760px) {
  .aph-sc-layout {
    display: block;
  }

  .aph-sc-left {
    display: none;
  }

  .aph-sc-toolbar {
    gap: 10px;
  }

  .aph-sc-toolbar h2 {
    font-size: 1.45rem;
    text-align: left;
  }

  .aph-month-grid {
    display: none;
  }

  .aph-mobile-term-list {
    display: block;
  }

  .aph-sc-roomselect {
    align-items: stretch;
  }

  .aph-sc-roomselect select,
  .aph-sc-roomselect .aph-fixed-select {
    width: 100%;
  }
}
body.mobile-preview .aph-sc-calendar,
body.mobile-preview-active .aph-sc-calendar {
  overflow: visible;
}

body.mobile-preview .aph-sc-layout,
body.mobile-preview-active .aph-sc-layout {
  display: block;
}

body.mobile-preview .aph-sc-left,
body.mobile-preview-active .aph-sc-left {
  display: none;
}

body.mobile-preview .aph-sc-toolbar,
body.mobile-preview-active .aph-sc-toolbar {
  gap: 10px;
}

body.mobile-preview .aph-sc-toolbar h2,
body.mobile-preview-active .aph-sc-toolbar h2 {
  font-size: 1.45rem;
  text-align: left;
}

body.mobile-preview .aph-month-grid,
body.mobile-preview-active .aph-month-grid {
  display: none;
}

body.mobile-preview .aph-mobile-term-list,
body.mobile-preview-active .aph-mobile-term-list {
  display: block;
}

body.mobile-preview .aph-sc-roomselect,
body.mobile-preview-active .aph-sc-roomselect {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

body.mobile-preview .aph-sc-roomselect select,
body.mobile-preview .aph-sc-roomselect .aph-fixed-select,
body.mobile-preview-active .aph-sc-roomselect select,
body.mobile-preview-active .aph-sc-roomselect .aph-fixed-select {
  width: 100%;
  max-width: 100%;
}
/* Robuste Handyvorschau Raumplanung: greift bei echter Breite und beim Preview-Umschalter. */
.mobile-preview .aph-sc-calendar,
.mobile-preview-active .aph-sc-calendar,
body.mobile-preview .aph-sc-calendar,
body.mobile-preview-active .aph-sc-calendar {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.mobile-preview .aph-sc-layout,
.mobile-preview-active .aph-sc-layout,
body.mobile-preview .aph-sc-layout,
body.mobile-preview-active .aph-sc-layout {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.mobile-preview .aph-sc-left,
.mobile-preview-active .aph-sc-left,
body.mobile-preview .aph-sc-left,
body.mobile-preview-active .aph-sc-left,
.mobile-preview .aph-month-grid,
.mobile-preview-active .aph-month-grid,
body.mobile-preview .aph-month-grid,
body.mobile-preview-active .aph-month-grid {
  display: none !important;
}

.mobile-preview .aph-mobile-term-list,
.mobile-preview-active .aph-mobile-term-list,
body.mobile-preview .aph-mobile-term-list,
body.mobile-preview-active .aph-mobile-term-list {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.mobile-preview .aph-sc-main,
.mobile-preview-active .aph-sc-main,
body.mobile-preview .aph-sc-main,
body.mobile-preview-active .aph-sc-main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.mobile-preview .aph-sc-toolbar,
.mobile-preview-active .aph-sc-toolbar,
body.mobile-preview .aph-sc-toolbar,
body.mobile-preview-active .aph-sc-toolbar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  min-height: auto !important;
  padding: 8px 0 !important;
}

.mobile-preview .aph-sc-toolbar .aph-nav-buttons,
.mobile-preview-active .aph-sc-toolbar .aph-nav-buttons,
body.mobile-preview .aph-sc-toolbar .aph-nav-buttons,
body.mobile-preview-active .aph-sc-toolbar .aph-nav-buttons {
  flex-wrap: wrap !important;
  margin: 0 !important;
}

.mobile-preview .aph-sc-toolbar h2,
.mobile-preview-active .aph-sc-toolbar h2,
body.mobile-preview .aph-sc-toolbar h2,
body.mobile-preview-active .aph-sc-toolbar h2 {
  font-size: 1.45rem !important;
  text-align: left !important;
}

.mobile-preview .aph-sc-roomselect,
.mobile-preview-active .aph-sc-roomselect,
body.mobile-preview .aph-sc-roomselect,
body.mobile-preview-active .aph-sc-roomselect {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 6px !important;
  padding: 8px !important;
}

.mobile-preview .aph-sc-roomselect select,
.mobile-preview .aph-sc-roomselect .aph-fixed-select,
.mobile-preview-active .aph-sc-roomselect select,
.mobile-preview-active .aph-sc-roomselect .aph-fixed-select,
body.mobile-preview .aph-sc-roomselect select,
body.mobile-preview .aph-sc-roomselect .aph-fixed-select,
body.mobile-preview-active .aph-sc-roomselect select,
body.mobile-preview-active .aph-sc-roomselect .aph-fixed-select {
  width: 100% !important;
  max-width: 100% !important;
}

/* Kompakte Überschrift für Seminarunterlagen wie bei der Seminarbuchung. */
body.app-sc_download_seminarunterlagen_list .page-heading h1 {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}
