:root {
    --background: #0b1016;
    --surface: #151d26;
    --surface-soft: #1b2530;
    --surface-hover: #222e3a;

    --text: #f1f5f9;
    --text-soft: #93a4b5;

    --border: #293642;

    --primary: #4d8dff;
    --primary-soft:
        rgba(77, 141, 255, 0.14);

    --green: #35d07f;
    --green-soft:
        rgba(53, 208, 127, 0.13);

    --red: #ff5d68;
    --red-soft:
        rgba(255, 93, 104, 0.13);

    --yellow: #f6c85f;

    --radius: 16px;

    --shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.18);
}


/* =========================================================
   LIGHT MODE
   ========================================================= */

html[data-theme="light"] {
    --background: #eef2f6;
    --surface: #ffffff;
    --surface-soft: #f5f7fa;
    --surface-hover: #edf1f5;

    --text: #17202a;
    --text-soft: #657383;

    --border: #d8e0e8;

    --primary: #3478f6;
    --primary-soft:
        rgba(52, 120, 246, 0.11);

    --green: #169b59;
    --green-soft:
        rgba(22, 155, 89, 0.10);

    --red: #d9434e;
    --red-soft:
        rgba(217, 67, 78, 0.10);

    --yellow: #ad7900;

    --shadow:
        0 10px 26px
        rgba(30, 45, 60, 0.09);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;

    margin: 0;

    background:
        var(--background);

    color:
        var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.45;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
}


input,
select {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 43px;

    padding:
        9px 11px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    outline: none;

    background:
        var(--surface-soft);

    color:
        var(--text);
}


input:focus,
select:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        var(--primary-soft);
}


input:disabled,
select:disabled,
input[readonly] {
    opacity: 0.72;
    cursor: not-allowed;
}


/*
 * Wichtig für mobile Browser.
 *
 * Date- und Time-Inputs können insbesondere
 * auf Safari sonst breiter als ihr Container werden.
 */

input[type="date"],
input[type="time"] {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


.hidden {
    display: none !important;
}


.container {
    width:
        min(
            calc(100% - 24px),
            900px
        );

    margin-inline:
        auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.app-header {
    position: sticky;

    z-index: 50;

    top: 0;

    border-bottom:
        1px solid var(--border);

    background:
        color-mix(
            in srgb,
            var(--background) 92%,
            transparent
        );

    backdrop-filter:
        blur(12px);
}


.header-inner {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    min-height: 66px;

    gap: 12px;
}


.app-title {
    display: flex;

    align-items:
        center;

    min-width: 0;

    gap: 9px;
}


.app-title > div {
    min-width: 0;
}


.app-title h1 {
    margin: 0;

    font-size: 1rem;

    line-height: 1.1;
}


.subtitle {
    margin-top: 3px;

    color:
        var(--text-soft);

    font-size: 0.7rem;

    font-weight: 700;
}


.version {
    flex: 0 0 auto;

    padding:
        4px 7px;

    border-radius:
        20px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 0.62rem;

    font-weight: 900;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    gap: 7px;

    white-space: nowrap;
}


.language-switch {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 3px;

    padding: 3px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface);
}


.language-button {
    display: grid;
    place-items: center;

    min-width: 34px;
    height: 32px;

    padding: 0 7px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color:
        var(--text-soft);

    font-size: 0.65rem;
    font-weight: 900;
}


.language-button.active {
    background:
        var(--primary-soft);

    color:
        var(--primary);
}


.theme-toggle {
    display: grid;
    place-items: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size: 1rem;

    line-height: 1;
}


/* =========================================================
   MAIN
   ========================================================= */

main.container {
    padding-top: 16px;
    padding-bottom: 40px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.event-summary {
    padding: 19px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);
}


.summary-label {
    color:
        var(--primary);

    font-size: 0.68rem;

    font-weight: 900;

    letter-spacing:
        0.08em;
}


.event-summary h2 {
    margin:
        7px 0 4px;

    font-size: 1.45rem;
}


.summary-main {
    display: flex;

    flex-wrap: wrap;

    gap:
        5px 12px;

    color:
        var(--text-soft);

    font-size: 0.8rem;

    font-weight: 700;
}


.summary-stats {
    margin-top: 13px;

    padding-top: 12px;

    border-top:
        1px solid var(--border);

    color:
        var(--text-soft);

    font-size: 0.72rem;
}


.next-session-summary {
    display: flex;

    flex-direction:
        column;

    gap: 2px;

    margin-top: 12px;

    padding:
        11px 12px;

    border-radius:
        11px;

    background:
        var(--surface-soft);

    font-size: 0.75rem;
}


.next-session-summary:empty {
    display: none;
}


.next-session-summary strong {
    font-size: 0.9rem;
}


/* =========================================================
   PANELS
   ========================================================= */

.event-selector-panel,
.settings-panel,
.route-section,
.faq-section {
    margin-top: 14px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);
}


.event-selector-panel {
    padding: 16px;
}


.section-title,
.setting-heading {
    color:
        var(--text);

    font-size: 0.8rem;

    font-weight: 900;
}


.full-label {
    display: block;

    min-width: 0;

    margin-top: 11px;
}


label {
    min-width: 0;
}


label > span:first-child {
    display: block;

    margin-bottom: 5px;

    color:
        var(--text-soft);

    font-size: 0.7rem;

    font-weight: 800;
}


.database-event-info {
    display: flex;

    flex-direction:
        column;

    gap: 2px;

    margin-top: 10px;

    padding:
        10px 11px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    background:
        var(--surface-soft);

    font-size: 0.72rem;
}


.database-event-info span {
    color:
        var(--text-soft);
}


/* =========================================================
   SETTINGS
   ========================================================= */

.settings-toggle {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    width: 100%;

    padding:
        15px 16px;

    border: 0;

    background:
        transparent;

    color:
        var(--text);

    font-weight: 900;
}


.settings-content {
    padding:
        0 16px 17px;

    overflow: hidden;
}


.form-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 12px;

    width: 100%;

    min-width: 0;
}


.form-grid label {
    display: block;

    width: 100%;
    min-width: 0;

    overflow: hidden;
}


.form-grid input,
.form-grid select {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/*
 * Zusätzlicher Mobile-Fix für native
 * Date-/Time-Controls.
 */

.form-grid input[type="date"],
.form-grid input[type="time"] {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}


.setting-description {
    margin:
        4px 0 12px;

    color:
        var(--text-soft);

    font-size: 0.68rem;
}


/* =========================================================
   PREFERRED PLACES
   ========================================================= */

.preferred-section {
    margin-top: 20px;

    padding-top: 18px;

    border-top:
        1px solid var(--border);
}


.preferred-heading-row {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 12px;
}


.preferred-heading-row
.setting-description {
    margin-bottom: 0;
}


.preferred-counter {
    flex: 0 0 auto;

    padding:
        5px 8px;

    border:
        1px solid var(--border);

    border-radius:
        20px;

    background:
        var(--surface-soft);

    color:
        var(--text-soft);

    font-size: 0.65rem;

    font-weight: 800;

    white-space: nowrap;
}


.preferred-tools {
    display: flex;

    flex-direction:
        column;

    gap: 9px;

    margin-top: 14px;
    margin-bottom: 12px;
}


.preferred-search-wrap {
    position: relative;

    min-width: 0;
}


.preferred-search {
    padding-left: 38px;
    padding-right: 38px;
}


.preferred-search-icon {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 12px;

    transform:
        translateY(-50%);

    font-size: 0.8rem;

    pointer-events: none;
}


.preferred-search-clear {
    position: absolute;

    z-index: 2;

    top: 50%;
    right: 7px;

    display: grid;

    place-items:
        center;

    width: 31px;
    height: 31px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        transparent;

    color:
        var(--text-soft);

    font-size: 1.25rem;

    transform:
        translateY(-50%);
}


.preferred-search-clear:hover {
    background:
        var(--surface-hover);

    color:
        var(--text);
}


.preferred-filter {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 5px;

    padding: 4px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    background:
        var(--surface-soft);
}


.preferred-filter-button {
    min-height: 34px;

    padding:
        6px 10px;

    border: 0;

    border-radius:
        8px;

    background:
        transparent;

    color:
        var(--text-soft);

    font-size: 0.72rem;

    font-weight: 800;
}


.preferred-filter-button.active {
    background:
        var(--surface);

    color:
        var(--text);

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.12);
}


.preferred-places {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 7px;

    max-height: 330px;

    overflow-y: auto;

    padding-right: 3px;

    scrollbar-width: thin;

    scrollbar-color:
        var(--border)
        transparent;
}


.preferred-place {
    position: relative;

    min-width: 0;
}


.preferred-place input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.preferred-place-content {
    display: flex;

    flex-direction:
        column;

    gap: 2px;

    min-width: 0;
    min-height: 54px;

    padding:
        8px 11px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    background:
        var(--surface-soft);

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}


.preferred-place-content:hover {
    background:
        var(--surface-hover);
}


.preferred-place-main {
    display: flex;

    align-items:
        center;

    min-width: 0;

    gap: 7px;
}


.preferred-place-flag {
    flex: 0 0 auto;

    font-size: 1rem;
}


.preferred-place-name {
    overflow: hidden;

    min-width: 0;

    color:
        var(--text);

    font-size: 0.8rem;

    font-weight: 800;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.preferred-place-meta {
    overflow: hidden;

    padding-left: 25px;

    color:
        var(--text-soft);

    font-size: 0.64rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.preferred-place
input:checked
+
.preferred-place-content {
    border-color:
        var(--primary);

    background:
        var(--primary-soft);
}


.preferred-place
input:checked
+
.preferred-place-content
.preferred-place-name::after {
    content: " ★";

    color:
        var(--primary);
}


.preferred-empty {
    padding: 18px;

    border:
        1px dashed var(--border);

    border-radius:
        11px;

    color:
        var(--text-soft);

    font-size: 0.75rem;

    text-align: center;
}


/* =========================================================
   SETTINGS ACTIONS
   ========================================================= */

.settings-actions {
    display: grid;

    gap: 9px;

    margin-top: 20px;
}


.primary-button {
    width: 100%;

    min-height: 46px;

    padding:
        11px 16px;

    border: 0;

    border-radius:
        11px;

    background:
        var(--primary);

    color: #ffffff;

    font-size: 0.8rem;

    font-weight: 900;

    letter-spacing:
        0.03em;
}


.reset-button {
    width: 100%;

    min-height: 42px;

    padding:
        10px 16px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    background:
        transparent;

    color:
        var(--text-soft);

    font-size: 0.75rem;

    font-weight: 800;
}


.reset-button:hover {
    border-color:
        var(--red);

    background:
        var(--red-soft);

    color:
        var(--red);
}


/* =========================================================
   TELEPORT PLAN
   ========================================================= */

.route-section {
    padding: 16px;
}


.route-toolbar {
    display: flex;

    flex-direction:
        column;

    gap: 10px;
}


.route-toolbar h2 {
    margin: 0;

    font-size: 1.05rem;
}


.view-switch {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 4px;

    padding: 4px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    background:
        var(--surface-soft);
}


.view-button {
    min-height: 32px;

    padding:
        5px 10px;

    border: 0;

    border-radius:
        7px;

    background:
        transparent;

    color:
        var(--text-soft);

    font-size: 0.7rem;

    font-weight: 800;
}


.view-button.active {
    background:
        var(--surface);

    color:
        var(--text);
}


.route-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;

    margin-top: 12px;
    margin-bottom: 15px;
}


.secondary-button {
    min-height: 38px;

    padding:
        7px 9px;

    border:
        1px solid var(--border);

    border-radius:
        9px;

    background:
        var(--surface-soft);

    color:
        var(--text);

    font-size: 0.7rem;

    font-weight: 800;
}


/* =========================================================
   DATE DIVIDER
   ========================================================= */

.date-divider {
    margin:
        19px 0 9px;

    color:
        var(--text-soft);

    font-size: 0.68rem;

    font-weight: 900;

    letter-spacing:
        0.05em;

    text-transform: uppercase;
}


.date-divider:first-child {
    margin-top: 0;
}


/* =========================================================
   SESSION CARD
   ========================================================= */

.session-card {
    position: relative;

    padding: 16px;

    border:
        1px solid var(--border);

    border-radius:
        14px;

    background:
        var(--surface-soft);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.session-card
+
.session-card {
    margin-top: 10px;
}


.session-top {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 10px;
}


.session-number {
    display: grid;

    place-items:
        center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size: 0.68rem;

    font-weight: 900;
}


.session-status {
    font-size: 0.65rem;

    font-weight: 900;
}


.session-status-done {
    color:
        var(--text-soft);
}


.session-status-next {
    color:
        var(--green);
}


.session-status-running {
    color:
        var(--red);
}


.session-status-later {
    color:
        var(--text-soft);
}


.status-done {
    opacity: 0.6;
}


.status-next {
    border-color:
        var(--green);
}


.status-running {
    border-color:
        var(--red);

    background:
        var(--red-soft);
}


/* =========================================================
   USER TIME
   ========================================================= */

.user-time {
    margin-top: 12px;

    color:
        var(--text);

    font-size:
        clamp(
            1.85rem,
            9vw,
            3rem
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing:
        -0.04em;

    font-variant-numeric:
        tabular-nums;
}


.user-time-label {
    margin-top: 6px;

    color:
        var(--text-soft);

    font-size: 0.66rem;

    font-weight: 700;
}


/* =========================================================
   LOCATION
   ========================================================= */

.session-location {
    display: flex;

    align-items:
        center;

    gap: 10px;

    margin-top: 17px;
}


.location-flag {
    font-size: 1.8rem;
}


.location-name {
    font-size: 1rem;

    font-weight: 900;
}


.location-country {
    color:
        var(--text-soft);

    font-size: 0.7rem;
}


.preferred-star {
    color:
        var(--yellow);
}


/* =========================================================
   SESSION DETAILS
   ========================================================= */

.session-details {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 7px;

    margin-top: 15px;
}


.session-details > div {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 15px;

    padding:
        8px 0;

    border-top:
        1px solid var(--border);
}


.session-details span {
    color:
        var(--text-soft);

    font-size: 0.67rem;
}


.session-details strong {
    max-width: 60%;

    font-size: 0.7rem;

    text-align: right;

    overflow-wrap: anywhere;
}


.countdown {
    font-variant-numeric:
        tabular-nums;
}


.copy-target-button {
    width: 100%;

    margin-top: 12px;

    padding: 9px;

    border:
        1px solid var(--border);

    border-radius:
        9px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size: 0.7rem;

    font-weight: 800;
}


.session-gap {
    margin:
        8px 0;

    padding-left: 8px;

    color:
        var(--text-soft);

    font-size: 0.64rem;
}


/* =========================================================
   COMPACT VIEW
   ========================================================= */

.compact-route {
    display: grid;

    gap: 7px;
}


.compact-session {
    display: grid;

    grid-template-columns:
        64px minmax(0, 1fr);

    gap:
        4px 10px;

    padding:
        10px 11px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    background:
        var(--surface-soft);
}


.compact-time {
    grid-row:
        span 2;

    font-size: 1rem;

    font-weight: 900;

    font-variant-numeric:
        tabular-nums;
}


.compact-place {
    display: flex;

    flex-direction:
        column;

    min-width: 0;
}


.compact-place strong {
    overflow: hidden;

    font-size: 0.75rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.compact-place span {
    color:
        var(--text-soft);

    font-size: 0.62rem;
}


.compact-status {
    color:
        var(--text-soft);

    font-size: 0.58rem;

    font-weight: 900;
}


.compact-running {
    border-color:
        var(--red);

    background:
        var(--red-soft);
}


.compact-next {
    border-color:
        var(--green);
}


.compact-done {
    opacity: 0.55;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline-section {
    margin-bottom: 20px;

    padding:
        14px 0;

    border:
        1px solid var(--border);

    border-radius:
        13px;

    background:
        var(--surface-soft);

    overflow: hidden;
}


.timeline-header {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 12px;

    padding:
        0 13px 11px;
}


.timeline-title {
    color:
        var(--text);

    font-size: 0.72rem;

    font-weight: 900;

    letter-spacing:
        0.07em;
}


.timeline-timezone {
    margin-top: 3px;

    color:
        var(--text-soft);

    font-size: 0.63rem;

    font-weight: 700;
}


.timeline-now-button {
    padding:
        7px 10px;

    border:
        1px solid var(--border);

    border-radius:
        9px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size: 0.68rem;

    font-weight: 800;
}


.timeline-container {
    display: flex;

    align-items:
        stretch;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        5px 13px 11px;

    scroll-behavior:
        smooth;

    scroll-snap-type:
        x proximity;

    scrollbar-width:
        thin;

    scrollbar-color:
        var(--border)
        transparent;

    -webkit-overflow-scrolling:
        touch;
}


.timeline-container::-webkit-scrollbar {
    height: 6px;
}


.timeline-container::-webkit-scrollbar-thumb {
    background:
        var(--border);

    border-radius:
        20px;
}


.timeline-date-marker {
    display: flex;

    flex: 0 0 auto;

    align-items:
        center;

    padding:
        0 9px 0 2px;
}


.timeline-date-marker span {
    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);

    color:
        var(--text-soft);

    font-size: 0.6rem;

    font-weight: 900;
}


.timeline-item {
    position: relative;

    flex:
        0 0 108px;

    min-height: 140px;

    padding:
        8px 4px;

    border: 0;

    border-radius:
        11px;

    background:
        transparent;

    color:
        var(--text);

    text-align: center;

    scroll-snap-align:
        center;
}


.timeline-item:hover {
    background:
        var(--surface-hover);
}


.timeline-time {
    margin-bottom: 9px;

    font-size: 1rem;

    font-weight: 900;

    font-variant-numeric:
        tabular-nums;
}


.timeline-line {
    position: relative;

    width: 100%;
    height: 20px;
}


.timeline-line::before {
    content: "";

    position: absolute;

    top: 50%;
    right: 0;
    left: 0;

    height: 2px;

    background:
        var(--border);

    transform:
        translateY(-50%);
}


.timeline-dot {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 50%;

    width: 12px;
    height: 12px;

    border:
        3px solid
        var(--surface-soft);

    border-radius: 50%;

    background:
        var(--text-soft);

    transform:
        translate(
            -50%,
            -50%
        );

    box-shadow:
        0 0 0 2px
        var(--border);
}


.timeline-place {
    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    gap: 2px;

    margin-top: 7px;
}


.timeline-flag {
    font-size: 1.1rem;
}


.timeline-place strong {
    display: block;

    max-width: 100px;

    overflow: hidden;

    font-size: 0.7rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.timeline-end {
    margin-top: 3px;

    color:
        var(--text-soft);

    font-size: 0.59rem;
}


.timeline-star {
    position: absolute;

    top: 5px;
    right: 8px;

    color:
        var(--yellow);

    font-size: 0.65rem;
}


.timeline-done {
    opacity: 0.42;
}


.timeline-next
.timeline-time {
    color:
        var(--green);
}


.timeline-next
.timeline-dot {
    width: 17px;
    height: 17px;

    background:
        var(--green);

    box-shadow:
        0 0 0 3px
        var(--green-soft);
}


.timeline-running {
    background:
        var(--red-soft);
}


.timeline-running
.timeline-time {
    color:
        var(--red);
}


.timeline-running
.timeline-dot {
    width: 18px;
    height: 18px;

    background:
        var(--red);

    box-shadow:
        0 0 0 4px
        var(--red-soft);
}


.session-highlight {
    border-color:
        var(--primary) !important;

    box-shadow:
        0 0 0 4px
        var(--primary-soft),
        var(--shadow);

    transform:
        scale(1.01);
}


/* =========================================================
   EMPTY / ERROR STATES
   ========================================================= */

.empty-state {
    padding:
        30px 16px;

    border:
        1px dashed var(--border);

    border-radius:
        12px;

    color:
        var(--text-soft);

    font-size: 0.78rem;

    text-align: center;
}


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


/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
    margin-top: 22px;

    padding: 20px 16px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);
}


/* ---------------------------------------------------------
   FAQ HEADER
   --------------------------------------------------------- */

.faq-header {
    margin-bottom: 20px;

    padding-bottom: 17px;

    border-bottom:
        1px solid var(--border);
}


.faq-header h2 {
    margin:
        6px 0 0;

    color:
        var(--text);

    font-size: 1.2rem;

    line-height: 1.25;
}


.faq-intro {
    max-width: 620px;

    margin:
        8px 0 0;

    color:
        var(--text-soft);

    font-size: 0.75rem;

    line-height: 1.6;
}


/* ---------------------------------------------------------
   FAQ LIST
   --------------------------------------------------------- */

.faq-list {
    display: grid;

    gap: 10px;
}


/* ---------------------------------------------------------
   FAQ ITEM
   --------------------------------------------------------- */

.faq-item {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius:
        13px;

    background:
        var(--surface-soft);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.faq-item:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary) 45%,
            var(--border)
        );
}


.faq-item.open {
    border-color:
        color-mix(
            in srgb,
            var(--primary) 55%,
            var(--border)
        );

    background:
        var(--surface);
}


/* ---------------------------------------------------------
   QUESTION
   --------------------------------------------------------- */

.faq-question {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    width: 100%;

    gap: 16px;

    min-height: 58px;

    padding:
        14px 15px;

    border: 0;

    background:
        transparent;

    color:
        var(--text);

    font-size: 0.78rem;

    font-weight: 850;

    line-height: 1.4;

    text-align: left;
}


.faq-question:hover {
    background:
        var(--surface-hover);
}


/* ---------------------------------------------------------
   ARROW
   --------------------------------------------------------- */

.faq-arrow {
    display: grid;

    place-items: center;

    flex:
        0 0 28px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size: 0.75rem;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}


.faq-item.open
.faq-arrow {
    background:
        var(--primary-soft);

    color:
        var(--primary);

    transform:
        rotate(180deg);
}


/* ---------------------------------------------------------
   ANSWER
   --------------------------------------------------------- */

.faq-answer {
    display: none;

    padding:
        2px 15px 17px;

    color:
        var(--text-soft);

    font-size: 0.74rem;

    line-height: 1.65;
}


.faq-item.open
.faq-answer {
    display: block;
}


.faq-answer p {
    margin:
        0 0 12px;
}


.faq-answer p:last-child {
    margin-bottom: 0;
}


.faq-answer strong {
    color:
        var(--text);
}


/* ---------------------------------------------------------
   LISTS INSIDE FAQ
   --------------------------------------------------------- */

.faq-answer ul {
    margin:
        10px 0 14px;

    padding-left: 20px;
}


.faq-answer li {
    margin:
        6px 0;

    padding-left: 2px;
}


/* ---------------------------------------------------------
   INFORMATION BOX
   --------------------------------------------------------- */

.faq-note {
    margin-top: 14px;

    padding:
        12px 13px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--primary) 30%,
            var(--border)
        );

    border-left:
        3px solid
        var(--primary);

    border-radius:
        9px;

    background:
        var(--primary-soft);

    color:
        var(--text);

    font-size: 0.7rem;

    line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.app-footer {
    margin-top: 10px;

    border-top:
        1px solid var(--border);

    background:
        var(--surface);
}


.footer-inner {
    padding-top: 24px;
    padding-bottom: 28px;

    text-align: center;
}


.footer-title {
    color:
        var(--text);

    font-size: 0.8rem;

    font-weight: 900;
}


.footer-links {
    display: flex;

    flex-wrap: wrap;

    justify-content:
        center;

    align-items:
        center;

    gap:
        7px 14px;

    margin-top: 10px;
}


.footer-link {
    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        var(--primary);

    font-family: inherit;

    font-size: 0.7rem;

    font-weight: 800;

    line-height: 1.4;

    display: inline-flex;

    align-items: center;

    text-decoration: none;
}


.footer-link:hover {
    text-decoration: underline;
}


.footer-copyright {
    margin-top: 13px;

    color:
        var(--text-soft);

    font-size: 0.66rem;
}


.footer-disclaimer {
    max-width: 650px;

    margin:
        7px auto 0;

    color:
        var(--text-soft);

    font-size: 0.6rem;

    line-height: 1.5;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    z-index: 100;

    left: 50%;
    bottom: 22px;

    max-width:
        calc(100% - 30px);

    padding:
        10px 14px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    background:
        var(--text);

    color:
        var(--background);

    font-size: 0.72rem;

    font-weight: 800;

    opacity: 0;

    pointer-events: none;

    transform:
        translate(
            -50%,
            10px
        );

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.toast.show {
    opacity: 1;

    transform:
        translate(
            -50%,
            0
        );
}


/* =========================================================
   VERY SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 390px) {

    .container {
        width:
            min(
                calc(100% - 16px),
                900px
            );
    }


    .header-inner {
        gap: 6px;
    }


    .app-title {
        gap: 5px;
    }


    .app-title h1 {
        font-size: 0.88rem;
    }


    .subtitle {
        font-size: 0.62rem;
    }


    .version {
        padding:
            3px 5px;

        font-size: 0.56rem;
    }


    .language-button {
        min-width: 28px;
        height: 30px;

        padding: 0 4px;

        font-size: 0.6rem;
    }


    .theme-toggle {
        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }


    .settings-content,
    .event-selector-panel,
    .route-section,
    .faq-section {
        padding-left: 12px;
        padding-right: 12px;
    }


    .event-data {
        min-width: 0;
    }


    .route-actions {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }


    .secondary-button {
        min-width: 0;
    }
}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 620px) {

    .container {
        width:
            min(
                calc(100% - 40px),
                900px
            );
    }


    main.container {
        padding-top: 22px;
    }


    .app-title h1 {
        font-size: 1.05rem;
    }


    .form-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .preferred-tools {
        flex-direction: row;
    }


    .preferred-search-wrap {
        flex: 1;
    }


    .preferred-filter {
        flex:
            0 0 210px;
    }


    .preferred-places {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .route-toolbar {
        flex-direction: row;

        justify-content:
            space-between;

        align-items:
            center;
    }


    .view-switch {
        min-width: 200px;
    }


    .route-actions {
        display: flex;

        justify-content:
            flex-end;
    }


    .secondary-button {
        min-width: 150px;
    }


    .session-details {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    .session-details > div {
        display: block;
    }


    .session-details strong {
        display: block;

        max-width: none;

        margin-top: 4px;

        text-align: left;
    }


    .user-time {
        font-size: 3rem;
    }


    .compact-session {
        grid-template-columns:
            80px
            minmax(0, 1fr)
            auto;

        align-items:
            center;
    }


    .compact-time {
        grid-row: auto;
    }


    .compact-status {
        text-align: right;
    }


    .faq-section {
        padding: 20px;
    }
}
/* =========================================================
   FAQ MAIN ACCORDION
   ========================================================= */

.faq-section {
    padding: 0;
    overflow: hidden;
}

.faq-main-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 18px 16px;

    border: 0;

    background: transparent;
    color: var(--text);

    text-align: left;

    cursor: pointer;
}

.faq-main-toggle-text {
    display: grid;
    gap: 4px;
}

.faq-main-toggle-text strong {
    font-size: 1.05rem;
    line-height: 1.25;
}

.faq-main-arrow {
    display: grid;
    place-items: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin-left: 12px;

    border-radius: 9px;

    background: var(--surface-soft);
    color: var(--text-soft);

    font-size: 0.75rem;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.faq-section.faq-main-open .faq-main-arrow {
    transform: rotate(180deg);

    background: var(--primary-soft);
    color: var(--primary);
}

.faq-main-content {
    padding: 0 16px 18px;

    border-top: 1px solid var(--border);
}

.faq-main-content[hidden] {
    display: none;
}

.faq-main-content .faq-header {
    margin: 0 0 16px;
    padding: 16px 0 14px;
}

@media (max-width: 480px) {

    .faq-main-toggle {
        padding: 15px 14px;
    }

    .faq-main-content {
        padding: 0 12px 14px;
    }

    .faq-main-toggle-text strong {
        font-size: 1rem;
    }
}
/* =========================================================
   FAQ MAIN ACCORDION FIX
   ========================================================= */

.faq-main-content[hidden] {
    display: none !important;
}

.faq-main-content {
    display: block;
}

.faq-main-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 18px 16px;

    border: 0;

    background: transparent;
    color: var(--text);

    text-align: left;
    cursor: pointer;
}

.faq-main-toggle-text {
    display: grid;
    gap: 4px;
}

.faq-main-arrow {
    display: grid;
    place-items: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin-left: 12px;

    border-radius: 9px;

    background: var(--surface-soft);
    color: var(--text-soft);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.faq-section.faq-main-open .faq-main-arrow {
    transform: rotate(180deg);

    background: var(--primary-soft);
    color: var(--primary);
}

/* =========================================================
   STEP 11D · INFORMATION PAGE
   ========================================================= */
.info-page {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
}

.info-shell {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
}

.info-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 90%, transparent);
    backdrop-filter: blur(14px);
}

.info-topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.info-brand,
.info-back,
.info-lang,
.info-theme-button,
.info-primary-link {
    text-decoration: none;
}

.info-brand {
    color: var(--text);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: -.01em;
}

.info-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-back,
.info-lang,
.info-theme-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-soft);
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.info-back:hover,
.info-lang:hover,
.info-theme-button:hover {
    color: var(--text);
    border-color: var(--primary);
}

.info-lang.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary);
}

.info-theme-button {
    width: 38px;
    padding: 0;
    font-size: 1rem;
}

.info-main {
    padding: 54px 0 72px;
}

.info-hero {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.info-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.info-hero h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 6vw, 3.7rem);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.info-lead {
    max-width: 720px;
    margin: 20px auto 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 2.4vw, 1.18rem);
    line-height: 1.75;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.info-card-wide {
    grid-column: 1 / -1;
}

.info-card-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 17px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 900;
}

.info-card h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1.22rem;
    line-height: 1.25;
}

.info-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.75;
}

.info-card p + p {
    margin-top: 13px;
}

.info-example {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.info-example-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: .76rem;
    font-weight: 900;
}

.info-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.6;
}

.info-route span:not(:last-child)::after {
    content: "→";
    margin-left: 8px;
    color: var(--primary);
}

.info-highlight {
    margin: 18px 0 0;
    padding: 17px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--primary-soft);
    color: var(--text);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.7;
}

.info-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.info-feature {
    padding: 14px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.info-feature strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: .78rem;
}

.info-feature span {
    color: var(--text-soft);
    font-size: .72rem;
    line-height: 1.5;
}

.info-cta {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    text-align: center;
}

.info-cta h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.35rem;
}

.info-cta p {
    max-width: 620px;
    margin: 0 auto 18px;
    color: var(--text-soft);
    font-size: .86rem;
    line-height: 1.65;
}

.info-primary-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--button-text, #fff);
    font-size: .8rem;
    font-weight: 900;
}

.info-footer {
    padding: 26px 0 34px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    text-align: center;
    font-size: .68rem;
    line-height: 1.65;
}

@media (max-width: 720px) {
    .info-shell {
        width: min(100% - 24px, 980px);
    }

    .info-topbar-inner {
        min-height: 58px;
    }

    .info-brand {
        max-width: 150px;
        font-size: .72rem;
        line-height: 1.15;
    }

    .info-back {
        display: none;
    }

    .info-main {
        padding: 36px 0 52px;
    }

    .info-hero {
        margin-bottom: 24px;
    }

    .info-lead {
        line-height: 1.65;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-card-wide {
        grid-column: auto;
    }

    .info-card {
        padding: 20px;
        border-radius: 15px;
    }

    .info-features {
        grid-template-columns: 1fr;
    }

    .info-route {
        display: grid;
        gap: 5px;
    }

    .info-route span:not(:last-child)::after {
        content: "↓";
        margin-left: 7px;
    }

    .info-cta {
        padding: 24px 18px;
    }

    .info-primary-link {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .info-shell {
        width: min(100% - 18px, 980px);
    }

    .info-nav {
        gap: 5px;
    }

    .info-lang,
    .info-theme-button {
        min-height: 34px;
    }

    .info-lang {
        padding: 0 9px;
    }

    .info-theme-button {
        width: 34px;
    }

    .info-card {
        padding: 18px 16px;
    }
}

/* SEO intro – compact, centered and mobile friendly */
.seo-intro {
    display: flex;
    justify-content: center;
    margin: 9px auto 14px;
    padding: 0 16px;
    text-align: center;
}

.seo-intro p {
    width: 100%;
    max-width: 620px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.64rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.82;
}

@media (min-width: 620px) {
    .seo-intro {
        margin-top: 12px;
        margin-bottom: 16px;
        padding: 0 20px;
    }

    .seo-intro p {
        max-width: 680px;
        font-size: 0.69rem;
        line-height: 1.55;
    }
}

/* =========================================================
   EVENT LIST HINT
   ========================================================= */

.event-list-hint {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.68rem;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .event-list-hint {
        margin-top: 7px;
        font-size: 0.68rem;
        line-height: 1.5;
    }
}


/* Pflichtfelder im manuellen Event klar hervorheben */
.required-field-label > span:first-child {
    color: var(--text);
    font-weight: 900;
}

.required-field-label > span:first-child::after {
    content: " *";
    color: var(--red);
}

.required-field-label input {
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
}

/* Reset als bewusste, destruktive Aktion sichtbar halten */
.reset-button {
    border-color: color-mix(in srgb, var(--red) 55%, var(--border));
    background: var(--red-soft);
    color: var(--red);
    font-weight: 900;
}

.reset-button:hover {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red-soft) 78%, var(--red) 22%);
    color: var(--red);
}


/* =========================================================
   STEP 11D7 - HEADER + FOOTER (corrected)
   ========================================================= */
.app-header {
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 94%, transparent);
}

.header-inner { min-height: 72px; gap: 14px; }

.app-brand {
    display: flex; align-items: center; min-width: 0; gap: 10px;
}
.brand-mark {
    display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
    border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
    border-radius: 11px; background: var(--primary-soft); color: var(--primary);
}
.brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg .brand-mark-dot { fill: var(--primary); stroke: var(--surface); stroke-width: 1.2; }
.brand-copy { min-width: 0; }
.brand-title-row { display: flex; align-items: center; min-width: 0; gap: 7px; }
.brand-title-row h1 { margin: 0; color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 900; line-height: 1.12; letter-spacing: -.015em; }
.brand-subtitle { margin-top: 3px; color: var(--text-soft); font-family: inherit; font-size: .66rem; font-weight: 700; line-height: 1.2; }

.header-actions { gap: 7px; }
.language-switch { border-radius: 11px; background: var(--surface); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.language-button { font-family: inherit; border-radius: 8px; }
.theme-toggle { font-family: inherit; border-radius: 11px; background: var(--surface); box-shadow: 0 3px 12px rgba(0,0,0,.06); }

.app-footer { margin-top: 22px; background: color-mix(in srgb, var(--surface) 94%, var(--background)); }
.footer-inner { padding-top: 24px; padding-bottom: 27px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 9px; }
.footer-brand-mark { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
.footer-brand-mark svg { width: 19px; height: 19px; }
.footer-brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.footer-title { font-family: inherit; font-size: .76rem; line-height: 1.2; }
.footer-tagline { color: var(--text-soft); font-family: inherit; font-size: .58rem; font-weight: 700; line-height: 1.25; }
.footer-nav-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 18px; margin-top: 15px; }
.footer-links, .footer-language { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.footer-language { padding-left: 18px; border-left: 1px solid var(--border); }
.footer-separator { color: var(--text-soft); font-size: .65rem; opacity: .65; }
.footer-link { min-height: 24px; font-family: inherit; font-size: .7rem; font-weight: 800; line-height: 1.2; }
.footer-meta { max-width: 700px; margin: 15px auto 0; padding-top: 13px; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); text-align: center; }
.footer-copyright { margin-top: 0; }
.footer-disclaimer { margin-top: 6px; }

@media (max-width: 640px) {
    .header-inner { min-height: 66px; gap: 8px; }
    .app-brand { gap: 8px; }
    .brand-mark { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
    .brand-mark svg { width: 20px; height: 20px; }
    .brand-title-row h1 { font-size: .86rem; }
    .brand-subtitle { font-size: .56rem; }
    .header-actions { gap: 5px; }
    .language-button { min-width: 30px; height: 30px; padding: 0 5px; font-size: .61rem; }
    .theme-toggle { flex-basis: 36px; width: 36px; height: 36px; }
    .footer-nav-row { flex-direction: column; gap: 7px; }
    .footer-language { padding-left: 0; border-left: 0; }
}

@media (max-width: 390px) {
    .header-inner { gap: 6px; }
    .brand-mark { flex-basis: 29px; width: 29px; height: 29px; }
    .brand-mark svg { width: 18px; height: 18px; }
    .brand-title-row { gap: 5px; }
    .brand-title-row h1 { font-size: .76rem; }
    .brand-subtitle { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .52rem; }
    .version { padding: 3px 5px; font-size: .5rem; }
    .language-button { min-width: 26px; height: 28px; padding: 0 3px; font-size: .56rem; }
    .theme-toggle { flex-basis: 33px; width: 33px; height: 33px; font-size: .9rem; }
}

/* =========================================================
   STEP 11D8 · FORM CONTROLS / SELECTS
   ========================================================= */

select {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.005em;

    padding-right: 38px;

    border-color: var(--border);
    background-color: var(--surface-soft);

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

select:hover:not(:disabled) {
    border-color:
        color-mix(in srgb, var(--primary) 45%, var(--border));
    background-color: var(--surface-hover);
}

.event-selector-panel select,
.settings-panel select {
    min-height: 46px;
}

.event-selector-panel label > span,
.form-grid label > span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.015em;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.45;
}

#userTimezone {
    font-weight: 700;
}

@media (max-width: 600px) {
    select {
        /* 16px prevents unwanted auto-zoom in iOS Safari. */
        font-size: 16px;
    }

    .event-selector-panel select,
    .settings-panel select {
        min-height: 48px;
    }
}

/* =========================================================
   STEP 13C3 - COMPACT VIEW
   Datum links, Benutzerzeit rechts; Ort und Status darunter.
   Nur Kompaktansicht.
   ========================================================= */

.route-section .compact-route {
    display: grid;
    gap: 9px;
}

.route-section .compact-session {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "time"
        "place"
        "status";
    align-items: start;
    gap: 8px;

    min-width: 0;
    padding: 13px 14px;
}

.route-section .compact-time {
    grid-area: time;
    grid-row: auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 12px;

    width: 100%;
    min-width: 0;

    font-size: inherit;
    font-weight: inherit;
    font-variant-numeric: tabular-nums;
}

.route-section .compact-time > span:first-child {
    min-width: 0;

    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.route-section .compact-time > strong {
    justify-self: end;

    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.15;

    white-space: nowrap;
}

.route-section .compact-place {
    grid-area: place;

    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}

.route-section .compact-place > strong {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    overflow: visible;

    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;

    white-space: normal;
}

.route-section .compact-flag {
    flex: 0 0 auto;
}

.route-section .compact-city {
    min-width: 0;
    overflow-wrap: anywhere;
}

.route-section .compact-place > span:last-child {
    min-width: 0;

    color: var(--text-soft);
    font-size: 0.67rem;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.route-section .compact-status {
    grid-area: status;
    justify-self: start;

    min-width: 0;

    color: var(--text-soft);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.25;

    text-align: left;
    white-space: normal;
}

/* Desktop: Zeitblock | Ort/Lokalzeit | Status */
@media (min-width: 650px) {
    .route-section .compact-session {
        grid-template-columns:
            minmax(205px, 0.95fr)
            minmax(220px, 1.35fr)
            minmax(125px, auto);
        grid-template-areas:
            "time place status";
        align-items: center;
        column-gap: 22px;
        row-gap: 0;
    }

    .route-section .compact-status {
        justify-self: end;
        text-align: right;
        white-space: nowrap;
    }
}

/* =========================================================
   STEP 13E · CONTACT & FEEDBACK
   ========================================================= */

.contact-main {
    padding-top: 48px;
}

.contact-hero {
    margin-bottom: 30px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
    gap: 16px;
    align-items: start;
}

.contact-form-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.contact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 900;
}

.contact-card-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.22rem;
}

.contact-card-heading p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: .72rem;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-field {
    display: block;
    min-width: 0;
}

.contact-field > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: .75rem;
    font-weight: 850;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    font-size: .86rem;
}

.contact-field textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.55;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.contact-field small {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: .64rem;
}

.contact-turnstile {
    min-height: 65px;
    overflow: hidden;
}

.contact-submit {
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.contact-submit:hover {
    filter: brightness(1.06);
}

.contact-privacy-note {
    margin: 0;
    color: var(--text-soft);
    font-size: .67rem;
    line-height: 1.6;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-side {
    display: grid;
    gap: 16px;
}

.contact-side .info-card {
    padding: 22px;
}

.contact-info-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text);
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
}

.contact-info-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.contact-alert {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: .75rem;
}

.contact-alert strong {
    color: var(--text);
}

.contact-alert span {
    color: var(--text-soft);
}

.contact-alert-success {
    border-color: var(--green);
    background: var(--green-soft);
}

.contact-alert-error {
    border-color: var(--red);
    background: var(--red-soft);
}

@media (max-width: 760px) {
    .contact-main {
        padding-top: 34px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form-card {
        padding: 20px;
        border-radius: 15px;
    }

    .contact-side {
        gap: 12px;
    }
}

@media (max-width: 390px) {
    .contact-form-card {
        padding: 18px 16px;
    }

    .contact-card-heading {
        gap: 10px;
    }

    .contact-field textarea {
        min-height: 170px;
    }
}

/* STEP 13F – Standalone FAQ page */
.faq-page .faq-page-main { padding-bottom: 0; }
.faq-page .faq-page-hero { margin-bottom: 22px; }
.faq-page .faq-standalone { margin-top: 0; }
.faq-page .faq-main-content { display: block !important; }
.faq-page .faq-header { display: none; }
.faq-page .faq-list { display: grid; gap: 12px; }
.faq-page .faq-item { overflow: hidden; }
.faq-page .faq-question { width: 100%; }
.faq-page .faq-answer { display: none; }
.faq-page .faq-item.open .faq-answer { display: block; }
.faq-page .faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-page .faq-arrow { transition: transform .2s ease; }
.faq-page .faq-page-cta { margin-top: 28px; }

@media (max-width: 760px) {
  .faq-page .info-topbar-inner { gap: 10px; }
  .faq-page .info-brand { min-width: 0; font-size: .92rem; }
  .faq-page .info-nav { flex-wrap: nowrap; gap: 6px; }
  .faq-page .info-back { white-space: nowrap; }
  .faq-page .faq-page-hero { margin-bottom: 16px; }
  .faq-page .faq-list { gap: 10px; }
  .faq-page .faq-question { align-items: flex-start; gap: 12px; padding: 16px; text-align: left; line-height: 1.4; }
  .faq-page .faq-question > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .faq-page .faq-arrow { flex: 0 0 auto; margin-top: 2px; }
  .faq-page .faq-answer { padding-left: 16px; padding-right: 16px; padding-bottom: 16px; }
  .faq-page .faq-answer p, .faq-page .faq-answer li, .faq-page .faq-note { overflow-wrap: anywhere; }
  .faq-page .faq-answer ul { padding-left: 20px; }
}
@media (max-width: 390px) {
  .faq-page .info-topbar-inner { align-items: flex-start; }
  .faq-page .info-nav { gap: 4px; }
  .faq-page .info-back, .faq-page .info-lang, .faq-page .info-theme-button { min-height: 36px; }
  .faq-page .faq-question { padding: 14px; font-size: .96rem; }
  .faq-page .faq-answer { padding-left: 14px; padding-right: 14px; padding-bottom: 14px; font-size: .94rem; }
}



/* STEP 13F.1 – Innenabstand der eigenständigen FAQ-Box */
.faq-page .faq-standalone .faq-main-content {
    padding-top: 18px;
}

@media (max-width: 760px) {
    .faq-page .faq-standalone .faq-main-content {
        padding-top: 14px;
    }
}

/* STEP 13G.2 – Desktop SVG-Flaggen / Mobile Emoji-Flaggen */

/* Desktop: SVG + sauberer Abstand zum Sprachkürzel */
.language-button,
.info-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.language-flag {
    display: block;
    width: 20px;
    height: 14px;
    flex: 0 0 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Mobile: SVG ausblenden und wieder native Emoji-Flagge verwenden */
@media (max-width: 760px) {
    .language-button,
    .info-lang {
        gap: 4px;
    }

    .language-flag {
        display: none;
    }

    .language-button[data-language="de"]::before,
    .info-lang[hreflang="de"]::before {
        content: "🇩🇪";
    }

    .language-button[data-language="en"]::before,
    .info-lang[hreflang="en"]::before {
        content: "🇬🇧";
    }
}

/* =========================================================
   STEP 13I – Preferred Places:
   Desktop SVG flags / Mobile emoji flags
   ========================================================= */

.preferred-place-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
}

.preferred-place-flag-svg {
    display: block;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.preferred-place-flag-emoji {
    display: none;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 760px) {
    .preferred-place-flag {
        flex-basis: auto;
        width: auto;
        min-width: 0;
    }

    .preferred-place-flag-svg {
        display: none;
    }

    .preferred-place-flag-emoji {
        display: inline;
    }
}

/* =========================================================
   STEP 13J – Route:
   Desktop SVG flags / Mobile emoji flags
   ========================================================= */

.timeline-flag,
.location-flag,
.route-section .compact-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-flag-svg,
.detail-flag-svg,
.compact-flag-svg {
    display: block;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.timeline-flag-svg {
    width: 24px;
    height: 18px;
}

.detail-flag-svg {
    width: 32px;
    height: 24px;
}

.compact-flag-svg {
    width: 18px;
    height: 13.5px;
    border-radius: 2px;
}

.timeline-flag-emoji,
.detail-flag-emoji,
.compact-flag-emoji {
    display: none;
}

@media (max-width: 760px) {
    .timeline-flag-svg,
    .detail-flag-svg,
    .compact-flag-svg {
        display: none;
    }

    .timeline-flag-emoji,
    .detail-flag-emoji,
    .compact-flag-emoji {
        display: inline;
    }

    .timeline-flag-emoji {
        font-size: 1.1rem;
        line-height: 1;
    }

    .detail-flag-emoji {
        font-size: 1.8rem;
        line-height: 1;
    }

    .compact-flag-emoji {
        line-height: 1;
    }
}


/* Step 14B – Popular Place suggestion form */
.hotspot-coordinate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hotspot-coordinate-grid .contact-field{min-width:0}
@media(max-width:520px){.hotspot-coordinate-grid{grid-template-columns:1fr}}
.hotspot-planner-hint{margin:12px 0;padding:12px 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface-soft);color:var(--text-soft);font-size:.78rem;line-height:1.6}
.hotspot-planner-hint a{color:var(--primary);font-weight:800}

/* Step 14B: Switch the Popular Places hint with the planner language. */
html[lang="de"] .hotspot-hint-en, html[lang="en"] .hotspot-hint-de {display:none}

/* Step 14H: accessible version link and responsive public changelog */
.version-link { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; white-space:nowrap; transition:background .18s ease,box-shadow .18s ease; }
.version-link:hover { background:var(--surface-hover); box-shadow:0 0 0 1px var(--primary); }
.version-link:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.changelog-main { padding:clamp(24px,5vw,52px) 0 58px; }
.changelog-hero { position:relative; overflow:hidden; padding:clamp(22px,5vw,44px); border:1px solid var(--border); border-radius:22px; background:linear-gradient(125deg,var(--primary-soft),transparent 64%),var(--surface); box-shadow:var(--shadow); }
.changelog-kicker { color:var(--primary); font-size:.72rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.changelog-hero h1 { margin:12px 0; font-size:clamp(2rem,6vw,3.3rem); line-height:1.1; letter-spacing:-.045em; }
.changelog-hero p { max-width:640px; margin:0; color:var(--text-soft); line-height:1.7; }
.changelog-meta { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:22px; }
.changelog-pill { display:inline-flex; align-items:center; gap:6px; padding:7px 11px; border:1px solid var(--border); border-radius:999px; background:var(--surface-soft); font-size:.73rem; font-weight:800; }
.changelog-pill-current { border-color:var(--green); background:var(--green-soft); color:var(--green); }
.changelog-section { margin-top:26px; }
.changelog-version-heading { display:flex; align-items:center; gap:12px; margin-bottom:17px; }
.changelog-version-heading h2 { margin:0; font-size:1.35rem; }
.changelog-version-line { flex:1; height:1px; background:var(--border); }
.changelog-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.changelog-card { min-width:0; padding:22px; border:1px solid var(--border); border-radius:17px; background:var(--surface); box-shadow:var(--shadow); }
.changelog-card-top { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.changelog-card-icon { display:grid; place-items:center; flex:0 0 43px; width:43px; height:43px; border-radius:12px; background:var(--primary-soft); color:var(--primary); font-size:1.25rem; }
.changelog-card-icon.green { background:var(--green-soft); color:var(--green); }
.changelog-card-icon.red { background:var(--red-soft); color:var(--red); }
.changelog-card h3 { margin:0; font-size:1rem; line-height:1.35; }
.changelog-card p { margin:0; color:var(--text-soft); font-size:.87rem; line-height:1.7; overflow-wrap:anywhere; }
.changelog-bottom { margin-top:24px; padding:23px; border:1px solid var(--border); border-radius:16px; background:var(--surface); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.changelog-bottom p { margin:5px 0 0; color:var(--text-soft); font-size:.85rem; }
.changelog-bottom a { flex:0 0 auto; padding:11px 15px; border-radius:10px; background:var(--primary); color:#fff; font-weight:800; text-decoration:none; font-size:.8rem; }
@media(max-width:640px) { .changelog-main { padding:18px 0 34px; } .changelog-hero { border-radius:16px; } .changelog-grid { grid-template-columns:minmax(0,1fr); gap:10px; } .changelog-card { padding:17px; } .changelog-bottom { flex-direction:column; align-items:stretch; } .changelog-bottom a { text-align:center; } .changelog-meta { gap:7px; } .changelog-pill { font-size:.69rem; } }
@media(max-width:390px) { .changelog-hero { padding:19px 16px; } .changelog-card { padding:15px; } .changelog-version-heading h2 { font-size:1.15rem; } }

/* Step 15 – selected popular place and external map link (detail only) */
.selected-popular-place {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    min-width: 0;
}
.selected-popular-place-name {
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}
.selected-popular-place-location {
    color: var(--text-soft);
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}
.session-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin-top: 12px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
.session-map-link:hover,
.session-map-link:focus-visible {
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* Step 17: Compact hotspot selection; city/country below the dropdown */
.popular-place-select-wrap { position: relative; min-width: 0; }
.popular-place-select-wrap .popular-place-select { position: relative; z-index: 1; color: transparent; text-shadow: none; }
.popular-place-select-wrap .popular-place-select option { color: var(--text); }
.popular-place-selected-name { position: absolute; z-index: 2; top: 50%; left: 12px; right: 34px; transform: translateY(-50%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: .8rem; font-weight: 800; pointer-events: none; }
.popular-place-inline-location { margin-top: 5px; color: var(--text-soft); font-size: .7rem; overflow-wrap: anywhere; }
