/* KB Preistabelle — Frontend */

.kb-pt-wrap {
    font-family: 'Barlow', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #f4f6fa;
    border-radius: 10px;
    padding: 2rem 2.5rem;
}

.kb-pt-title {
    display: block !important;
    color: #0e2f61 !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0 0 1.2em !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ── Ticket tabs (top) ── */
.kb-pt-top-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
    margin-left: 174px; /* align with panel, not sidebar */
}

.kb-pt-tbtn {
    background: #0e2f61;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.kb-pt-tbtn:hover:not(.kb-pt-tbtn--active) { background: #1e5faa; }
.kb-pt-tbtn--active { background: #f0b429 !important; color: #0e2f61 !important; }

/* ── Body layout ── */
.kb-pt-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Period sidebar ── */
.kb-pt-ferien-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: 150px;
}

.kb-pt-fbtn {
    width: 100%;
    text-align: center;
    padding: 12px 8px;
    background: #0e2f61;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.kb-pt-fbtn:hover:not(.kb-pt-fbtn--active) { background: #1e5faa; }
.kb-pt-fbtn--active { background: #f0b429 !important; color: #0e2f61 !important; }

/* ── Price panel ── */
.kb-pt-panel {
    flex: 1;
    min-width: 0;
}

.kb-pt-panel-title {
    color: #0e2f61;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

.kb-pt-panel-desc {
    color: #3a4a60;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.4em 0 1em;
}
.kb-pt-panel-desc a { color: #1e5faa; }
.kb-pt-panel-desc ul, .kb-pt-panel-desc ol { padding-left: 1.4em; margin: 0.5em 0; }
.kb-pt-panel-desc li { margin-bottom: 0.25em; }

.kb-pt-panel-sub {
    color: #6b7a99;
    font-size: 0.88rem;
    margin: 0 0 1.2em;
}

/* ── Kästen ── */
.kb-pt-kasten-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kb-pt-kasten {
    flex: 1;
    min-width: 160px;
    background: #f5f7fb;
    border: 1px solid #d0d8e8;
    border-radius: 6px;
    padding: 18px 20px;
}

.kb-pt-kasten__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7a99;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.kb-pt-kasten__text {
    font-size: 0.95rem;
    color: #1a2840;
    line-height: 1.6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kb-pt-kasten__text table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.kb-pt-kasten__text table td,
.kb-pt-kasten__text table th {
    word-break: break-word;
    white-space: normal;
}

/* ── Mobile selects (hidden on desktop) ── */
.kb-pt-mobile-selects {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .kb-pt-wrap            { padding: 1rem 3% 1.5rem; margin-left: 0; margin-right: 0; border-radius: 0; max-width: 100%; }
    .kb-pt-mobile-selects  { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
    .kb-pt-top-bar         { display: none; }
    .kb-pt-ferien-col      { display: none; }
    .kb-pt-body            { flex-direction: column; }
    /* .kb-pt-kasten: min-width reset not needed on mobile */
}

.kb-pt-sel-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.kb-pt-sel-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a8fa8;
}

.kb-pt-sel {
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border: 1px solid #c8d4e3;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    color: #0e2f61;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230e2f61' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.kb-pt-sel:focus {
    outline: none;
    border-color: #0e2f61;
    box-shadow: 0 0 0 3px rgba(14,47,97,0.1);
}
