/******************************************************************************
 *
 * MOFI – Mobile Frequency Information
 * Datei.......: style.css
 * Version.....: 0.16.1
 *
 ******************************************************************************/

:root{

    --background:#edf1f4;
    --panel:#ffffff;

    --header:#17375e;
    --footer:#17375e;

    --border:#d4d4d4;

    --text:#202020;

    --shadow:rgba(0,0,0,.15);

    --sidebar-width:320px;
    --details-width:300px;

    --status-height:34px;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

.visuallyHidden{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

html,
body{

    width:100%;
    height:100%;

    overflow:hidden;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background:var(--background);

    color:var(--text);

}

/******************************************************************
 HEADER
******************************************************************/

header{

    height:72px;

    display:flex;

    align-items:center;

    padding:0 20px;

    background:var(--header);

    color:white;

}

#title{

    display:flex;

    flex-direction:column;

}

#title h1{

    font-size:28px;
    font-weight:600;

}

#subtitle{

    font-size:13px;

    opacity:.8;

}

/******************************************************************
 LAYOUT
******************************************************************/

#content{

    display:flex;

    width:100%;
    height:calc(100vh - 112px);

}

/******************************************************************
 SIDEBAR
******************************************************************/

#sidebar{

    width:var(--sidebar-width);

    overflow:auto;

    background:var(--panel);

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

    padding:18px;

}

#sidebar h2{

    margin-bottom:18px;

}

.filterGroup{

    margin-bottom:12px;

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

    border-radius:6px;

    background:white;

}

.filterGroup summary{

    padding:10px;

    cursor:pointer;

    user-select:none;

    font-weight:600;

    background:#f6f6f6;

}

.filterGroup div,
.filterGroup select,
.filterGroup input{

    margin:10px;

}

.filterGroup label{

    display:block;

    margin:8px 10px;

}

.filterGroup input[type=text]{

    width:calc(100% - 20px);

    padding:8px;

}

.filterGroup select{

    width:calc(100% - 20px);

    padding:6px;

}

/******************************************************************
 SEARCH IM HEADER
******************************************************************/

.headerSearch{
    flex:1 1 440px;
    min-width:240px;
    max-width:540px;
    margin-left:auto;
}

.headerSearchField{
    position:relative;
    display:flex;
    align-items:center;
    width:100%;
}

.headerSearchIcon{
    position:absolute;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:#586777;
    font-size:16px;
    line-height:1;
    pointer-events:none;
}

#search{
    width:100%;
    min-height:42px;
    padding:8px 42px 8px 40px;
    border:1px solid rgba(255,255,255,.48);
    border-radius:8px;
    background:#ffffff;
    color:var(--text);
    font:inherit;
    font-size:15px;
    line-height:1.2;
    appearance:none;
    -webkit-appearance:none;
}

#search::-webkit-search-cancel-button{
    display:none;
}

#search::placeholder{
    color:#687481;
    opacity:1;
}

#search:focus{
    outline:3px solid rgba(255,255,255,.35);
    outline-offset:2px;
    border-color:#ffffff;
}

.headerSearchClear{
    position:absolute;
    right:5px;
    top:50%;
    transform:translateY(-50%);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0;
    border:0;
    border-radius:6px;
    background:transparent;
    color:#4b5967;
    font:inherit;
    font-size:24px;
    line-height:1;
    cursor:pointer;
}

.headerSearchClear:hover,
.headerSearchClear:focus-visible{
    background:#e8edf2;
}

.headerSearchClear:focus-visible{
    outline:2px solid #17375e;
    outline-offset:-2px;
}

.headerSearchClear[hidden]{
    display:none !important;
}

/******************************************************************
 MAIN
******************************************************************/

main{

    flex:1;
    min-width:0;

    display:flex;

    flex-direction:column;

    background:white;

}

/******************************************************************
 STATUSBAR
******************************************************************/

#statusBar{

    height:var(--status-height);

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 12px;

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

    background:#fafafa;

    font-size:13px;

}

#statusCenter{

    font-weight:600;

}

/******************************************************************
 CANVAS
******************************************************************/

#canvas{

    flex:1;

    display:block;

    cursor:grab;

    background:white;

}

#canvas:active{

    cursor:grabbing;

}

/******************************************************************
 DETAILS
******************************************************************/

#details{

    width:var(--details-width);
    flex:0 0 var(--details-width);
    min-width:0;

    overflow:auto;

    background:#fafafa;

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

    padding:18px;

}

#details h2{

    margin-bottom:14px;

}

.placeholder{

    color:#666;

}

.detailsTable{

    width:100%;

    border-collapse:collapse;

}

.detailsTable th{

    width:110px;

    text-align:left;

    padding:5px;

    vertical-align:top;

}

.detailsTable td{

    padding:5px;

}

.detailsColor{

    height:8px;

    border-radius:4px;

    margin-bottom:12px;

}

/******************************************************************
 TOOLTIP
******************************************************************/

#tooltip{

    position:fixed;

    display:none;

    min-width:180px;

    max-width:260px;

    padding:10px;

    border-radius:8px;

    background:#222;

    color:white;

    pointer-events:none;

    box-shadow:0 4px 12px rgba(0,0,0,.25);

    font-size:13px;

    z-index:9999;

}

/******************************************************************
 FOOTER
******************************************************************/

footer{

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--footer);

    color:white;

    font-size:13px;

}

/******************************************************************
 CHECKBOXEN
******************************************************************/

label{

    user-select:none;

}

input[type=checkbox]{

    margin-right:6px;

}

/******************************************************************
 SCROLLBAR
******************************************************************/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#bdbdbd;

    border-radius:5px;

}

::-webkit-scrollbar-track{

    background:#efefef;

}

/******************************************************************
 RESPONSIVE
******************************************************************/

@media (max-width:1200px){

    #details{

        width:240px;

    }

}

@media (max-width:1000px){

    #sidebar{

        width:260px;

    }

}

@media (max-width:850px){

    #details{

        display:none;

    }

}

@media (max-width:700px){

    #content{

        flex-direction:column;

    }

    #sidebar{

        width:100%;

        height:320px;

        border-right:none;

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

    }

}
/******************************************************************
 FILTER-AKTIONEN
******************************************************************/

.filterGroup .filterActions{

    display:flex;
    gap:6px;
    flex-wrap:wrap;

    margin:8px 10px 4px;

}

.filterGroup .filterActions button{

    flex:1 1 110px;

    min-height:28px;
    padding:4px 8px;

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

    background:#f8f8f8;
    color:var(--text);

    font:inherit;
    font-size:12px;

    cursor:pointer;

}

.filterGroup .filterActions button:hover{

    background:#eeeeee;

}

.filterGroup .filterActions button:focus-visible{

    outline:2px solid #2f75c9;
    outline-offset:1px;

}

/* Die Aktionsleiste soll nicht die allgemeinen Abstaende fuer
   beliebige Filter-Divs und Eingabefelder erben. */
.filterGroup .filterActions,
.filterGroup .filterActions button{

    box-sizing:border-box;

}


/******************************************************************
 ZOOM UND NAVIGATION
******************************************************************/

#statusRight{

    display:flex;

    align-items:center;

    gap:6px;

    white-space:nowrap;

}

.zoomButton,
.zoomResetButton,
.detailsToggleButton{

    min-height:24px;

    padding:2px 9px;

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

    border-radius:4px;

    background:#ffffff;

    color:var(--text);

    font:inherit;

    cursor:pointer;

}

.zoomButton{

    min-width:30px;

    font-size:17px;

    line-height:1;

}

.zoomButton:hover:not(:disabled),
.zoomResetButton:hover:not(:disabled),
.detailsToggleButton:hover:not(:disabled){

    background:#eef3f8;

}

.zoomButton:disabled,
.zoomResetButton:disabled,
.detailsToggleButton:disabled{

    opacity:.45;

    cursor:default;

}

#zoomValue{

    min-width:68px;

    text-align:center;

}

#canvas{

    touch-action:none;

    outline:none;

}

#canvas:focus-visible{

    box-shadow:
        inset 0 0 0 2px
        rgba(23,55,94,.45);

}

#canvas.is-zoomed{

    cursor:grab;

}

#canvas.is-panning{

    cursor:grabbing !important;

    user-select:none;

}

@media (max-width:900px){

    .zoomResetButton{

        display:none;

    }

}

/******************************************************************
 TECHNOLOGIEMUSTER-LEGENDE
******************************************************************/

.technologyLegend{

    margin:12px 10px 10px;

    padding:9px;

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

    border-radius:4px;

    background:#fafafa;

}

.technologyLegendTitle{

    margin-bottom:7px;

    font-size:12px;

    font-weight:600;

}

.technologyLegendItems{

    display:grid;

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

    gap:7px 10px;

}

.technologyLegendItem{

    display:flex;

    align-items:center;

    gap:6px;

    font-size:12px;

}

.technologySwatch{

    width:26px;

    height:14px;

    flex:0 0 auto;

    border:1px solid rgba(0,0,0,.55);

    border-radius:2px;

    background-color:#4f82b8;

}

.technologyLTE{

    background:#4f82b8;

}

.technologyGSM{

    background-color:#4f82b8;

    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,.72) 0,
            rgba(255,255,255,.72) 1px,
            transparent 1px,
            transparent 6px
        );

}

.technologyNR{

    background-color:#4f82b8;

    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.72) 0,
            rgba(255,255,255,.72) 1px,
            transparent 1px,
            transparent 6px
        );

}

.technologyOTHER{

    background-color:#607D8B;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.72) 0,
            rgba(255,255,255,.72) 1px,
            transparent 1px,
            transparent 6px
        );

}

.technologyDSS{

    background-color:#4f82b8;

    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.62) 0,
            rgba(255,255,255,.62) 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,.62) 0,
            rgba(255,255,255,.62) 1px,
            transparent 1px,
            transparent 6px
        );

}

/******************************************************************
 DETAILSPALTE EIN-/AUSKLAPPEN
******************************************************************/

#details{

    transition:
        width .2s ease,
        flex-basis .2s ease,
        padding-left .2s ease,
        padding-right .2s ease,
        border-left-width .2s ease,
        opacity .15s ease;

}

body.detailsCollapsed #details{

    width:0;
    flex-basis:0;

    padding-left:0;
    padding-right:0;

    border-left-width:0;

    opacity:0;
    overflow:hidden;
    pointer-events:none;

}

.detailsToggleButton{

    min-height:24px;

    padding:2px 9px;

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

    background:#ffffff;
    color:var(--text);

    font:inherit;
    cursor:pointer;

}

.detailsToggleButton:focus-visible{

    outline:2px solid #17375e;
    outline-offset:2px;

}

@media (max-width:850px){

    #toggleDetails{
        display:none;
    }

}


/******************************************************************
 MOBILE UND TOUCH-OPTIMIERUNG
******************************************************************/

#appHeader{
    position:relative;
    z-index:1000;
    justify-content:space-between;
    gap:16px;
}

#appHeader #title{
    flex:0 1 300px;
    min-width:170px;
}

.headerTools{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex:0 0 auto;
}

.headerToolLink{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:8px 14px;
    border:1px solid rgba(255,255,255,.38);
    border-radius:7px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:14px;
    font-weight:600;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
}

#appHeader a.headerToolLink,
#appHeader a.headerToolLink:link,
#appHeader a.headerToolLink:visited,
#appHeader a.headerToolLink:hover,
#appHeader a.headerToolLink:focus-visible,
#appHeader a.headerToolLink:active{
    color:#ffffff;
}

.headerToolLink:hover,
.headerToolLink:focus-visible{
    background:rgba(255,255,255,.22);
    border-color:rgba(255,255,255,.65);
}

.headerToolLink:focus-visible{
    outline:2px solid #fff;
    outline-offset:2px;
}

.headerToolIcon{
    font-size:19px;
    line-height:1;
}

.headerToolLabelCompact{
    display:none;
}

#mobileActions,
.mobilePanelClose{
    display:none;
}

.panelHeading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.panelHeading h2{
    margin-bottom:18px;
}

#canvasViewport{
    position:relative;
    flex:1 1 auto;
    min-width:0;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#ffffff;
}

#canvas{
    width:100%;
    height:100%;
    min-width:0;
    min-height:260px;
}

#detailsContent{
    min-width:0;
}

#spectrumTooltip{
    position:fixed;
    display:block;
    min-width:180px;
    max-width:260px;
    padding:10px;
    border-radius:8px;
    background:#222;
    color:#fff;
    pointer-events:none;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
    font-size:13px;
    z-index:1200;
}

#spectrumTooltip[hidden]{
    display:none;
}

#mobileBackdrop{
    display:none;
}

.mobileHeaderButton,
.mobilePanelClose{
    border:1px solid rgba(255,255,255,.35);
    border-radius:7px;
    font:inherit;
    cursor:pointer;
}

.mobileSearchButton{
    width:42px;
    padding-left:0;
    padding-right:0;
    align-items:center;
    justify-content:center;
}

.mobileSearchOpenIcon{
    font-size:16px;
    line-height:1;
}

.mobileSearchCloseIcon{
    display:none;
    font-size:27px;
    font-weight:400;
    line-height:.8;
}

.mobileDetailsIcon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:17px;
    height:17px;
    border:1px solid currentColor;
    border-radius:50%;
    font-family:Georgia,serif;
    font-size:12px;
    font-weight:700;
    line-height:1;
}

@media (max-width:900px){

    :root{
        --mobile-header-height:60px;
        --mobile-footer-height:28px;
        --status-height:48px;
    }

    html,
    body{
        height:100%;
        height:100dvh;
        overscroll-behavior:none;
    }

    body{
        min-height:100dvh;
    }

    #headerSearch{
        position:absolute;
        z-index:1002;
        top:100%;
        left:0;
        right:0;
        display:none;
        width:auto;
        max-width:none;
        min-width:0;
        margin:0;
        padding:
            10px
            max(12px, env(safe-area-inset-right))
            12px
            max(12px, env(safe-area-inset-left));
        border-top:1px solid rgba(255,255,255,.2);
        background:var(--header);
        box-shadow:0 6px 14px rgba(0,0,0,.24);
    }

    body.mobileSearchOpen #headerSearch{
        display:block;
    }

    body.mobileSearchOpen .mobileSearchOpenIcon{
        display:none;
    }

    body.mobileSearchOpen .mobileSearchCloseIcon{
        display:inline;
    }

    body.mobileSearchOpen #mobileSearchButton{
        background:rgba(255,255,255,.28);
        border-color:rgba(255,255,255,.7);
    }

    #search{
        min-height:48px;
        font-size:16px;
    }

    header,
    #appHeader{
        height:var(--mobile-header-height);
        min-height:var(--mobile-header-height);
        padding:
            max(8px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            8px
            max(12px, env(safe-area-inset-left));
    }

    #appHeader #title{
        min-width:48px;
        flex:1 1 auto;
    }

    #title h1{
        font-size:22px;
        line-height:1.05;
    }

    #subtitle{
        max-width:100%;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:10px;
    }

    #appHeader{
        gap:8px;
    }

    .headerTools{
        gap:7px;
    }

    .headerToolLink{
        min-height:42px;
        padding:7px 10px;
        font-size:13px;
    }

    .headerToolLabelFull{
        display:none;
    }

    .headerToolLabelCompact{
        display:inline;
    }

    #mobileActions{
        display:flex;
        align-items:center;
        gap:7px;
        flex:0 0 auto;
    }

    .mobileHeaderButton{
        min-height:42px;
        padding:7px 10px;
        background:rgba(255,255,255,.12);
        color:#fff;
        font-size:13px;
        font-weight:600;
    }

    .mobileHeaderButton:active{
        background:rgba(255,255,255,.25);
    }

    #content{
        position:relative;
        display:block;
        height:calc(100vh - var(--mobile-header-height) - var(--mobile-footer-height));
        height:calc(100dvh - var(--mobile-header-height) - var(--mobile-footer-height));
        overflow:hidden;
    }

    main{
        width:100%;
        height:100%;
        min-width:0;
        overflow:hidden;
    }

    #statusBar{
        height:auto;
        min-height:var(--status-height);
        padding:4px 7px;
        gap:7px;
    }

    #statusLeft{
        display:none;
    }

    #statusCenter{
        min-width:0;
        flex:1 1 auto;
        font-size:12px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    #statusRight{
        gap:5px;
        flex:0 0 auto;
    }

    .zoomButton,
    .zoomResetButton,
    .detailsToggleButton{
        min-width:42px;
        min-height:40px;
        padding:6px 9px;
        touch-action:manipulation;
    }

    .zoomButton{
        font-size:20px;
    }

    #zoomValue{
        min-width:58px;
        font-size:12px;
    }

    .zoomResetButton,
    #toggleDetails{
        display:none;
    }

    #canvasViewport{
        overflow-x:hidden;
        overflow-y:auto;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }

    #canvas{
        display:block;
        width:100%;
        height:100%;
        min-height:100%;
        touch-action:none;
    }

    #sidebar{
        position:fixed;
        z-index:1000;
        top:0;
        bottom:0;
        left:0;
        width:min(88vw,370px);
        max-width:370px;
        height:auto;
        padding:
            max(16px, env(safe-area-inset-top))
            16px
            max(20px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
        border-right:1px solid var(--border);
        border-bottom:none;
        box-shadow:8px 0 28px rgba(0,0,0,.24);
        transform:translateX(-105%);
        transition:transform .22s ease;
        overflow-y:auto;
        overscroll-behavior:contain;
    }

    body.mobileFilterOpen #sidebar{
        transform:translateX(0);
    }

    #sidebar .panelHeading{
        position:sticky;
        top:0;
        z-index:2;
        margin:-16px -16px 12px;
        padding:14px 16px 8px;
        background:var(--panel);
        border-bottom:1px solid var(--border);
    }

    #sidebar .panelHeading h2{
        margin:0;
    }

    .mobilePanelClose{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        width:44px;
        height:44px;
        padding:0;
        border-color:var(--border);
        background:#f6f6f6;
        color:var(--text);
        font-size:28px;
        line-height:1;
    }

    .filterGroup summary{
        min-height:44px;
        display:flex;
        align-items:center;
        padding:11px 12px;
    }

    .filterGroup label{
        min-height:38px;
        display:flex;
        align-items:center;
        margin:4px 10px;
        padding:3px 0;
    }

    .filterGroup input[type=checkbox]{
        width:20px;
        height:20px;
        flex:0 0 auto;
    }

    .filterGroup input[type=text],
    .filterGroup input[type=search],
    .filterGroup select{
        min-height:44px;
        font-size:16px;
    }

    .filterGroup select[multiple]{
        min-height:190px;
    }

    .filterGroup .filterActions button{
        min-height:42px;
        font-size:13px;
        touch-action:manipulation;
    }

    #details{
        display:block;
        position:fixed;
        z-index:1010;
        left:0;
        right:0;
        bottom:0;
        top:auto;
        width:100%;
        max-width:none;
        height:min(72dvh,650px);
        max-height:calc(100dvh - 24px);
        flex:none;
        padding:
            0
            max(16px, env(safe-area-inset-right))
            max(18px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
        border-left:none;
        border-top:1px solid var(--border);
        border-radius:18px 18px 0 0;
        box-shadow:0 -10px 34px rgba(0,0,0,.24);
        background:#fafafa;
        opacity:1;
        overflow-y:auto;
        pointer-events:auto;
        transform:translateY(105%);
        transition:transform .24s ease;
        overscroll-behavior:contain;
    }

    body.mobileDetailsOpen #details{
        transform:translateY(0);
    }

    body.detailsCollapsed #details{
        display:block;
        width:100%;
        flex-basis:auto;
        padding-left:max(16px, env(safe-area-inset-left));
        padding-right:max(16px, env(safe-area-inset-right));
        border-left-width:0;
        opacity:1;
        overflow-y:auto;
        pointer-events:auto;
    }

    #details .panelHeading{
        position:sticky;
        top:0;
        z-index:2;
        margin:0 -16px 12px;
        padding:10px 16px 8px;
        background:#fafafa;
        border-bottom:1px solid var(--border);
    }

    #details .panelHeading::before{
        content:"";
        position:absolute;
        top:6px;
        left:50%;
        width:44px;
        height:4px;
        border-radius:3px;
        background:#c2c7cc;
        transform:translateX(-50%);
    }

    #details .panelHeading h2{
        margin:8px 0 0;
        font-size:18px;
    }

    .detailsTable th,
    .detailsTable td{
        padding:7px 5px;
        font-size:13px;
    }

    .detailsTable th{
        width:42%;
    }

    #mobileBackdrop{
        position:fixed;
        z-index:990;
        inset:0;
        display:none;
        background:rgba(8,18,30,.48);
        backdrop-filter:blur(1px);
    }

    body.mobilePanelOpen #mobileBackdrop{
        display:block;
    }

    body.mobilePanelOpen{
        overflow:hidden;
    }

    footer{
        height:var(--mobile-footer-height);
        padding-bottom:env(safe-area-inset-bottom);
        font-size:10px;
    }

    #spectrumTooltip{
        display:none !important;
    }
}

@media (max-width:520px){

    #subtitle{
        display:none;
    }

    #appHeader{
        gap:6px;
    }

    .headerTools,
    #mobileActions{
        gap:5px;
    }

    .headerToolLink,
    .mobileHeaderButton{
        padding:7px 8px;
        font-size:12px;
    }

    .headerToolIcon{
        font-size:17px;
    }

    #statusCenter{
        max-width:118px;
    }

    #zoomValue{
        display:none;
    }
}

@media (max-width:360px){

    .mobileButtonText{
        display:none;
    }

    #mobileFilterButton,
    #mobileDetailsButton{
        width:42px;
        padding-left:0;
        padding-right:0;
        align-items:center;
        justify-content:center;
    }


    header,
    #appHeader{
        padding-left:max(6px,env(safe-area-inset-left));
        padding-right:max(6px,env(safe-area-inset-right));
    }

    #title h1{
        font-size:20px;
    }

    .headerToolLink,
    .mobileHeaderButton{
        padding-left:7px;
        padding-right:7px;
    }

    .headerToolIcon{
        display:none;
    }
}

@media (orientation:landscape) and (max-height:520px) and (max-width:900px){

    :root{
        --mobile-header-height:50px;
        --mobile-footer-height:0px;
        --status-height:42px;
    }

    header,
    #appHeader{
        padding-top:5px;
        padding-bottom:5px;
    }

    #title h1{
        font-size:19px;
    }

    .headerToolLink,
    .mobileHeaderButton{
        min-height:36px;
        padding-top:4px;
        padding-bottom:4px;
    }

    footer{
        display:none;
    }

    #details{
        left:auto;
        top:0;
        right:0;
        bottom:0;
        width:min(52vw,480px);
        height:100dvh;
        max-height:none;
        border-radius:16px 0 0 16px;
        border-top:none;
        border-left:1px solid var(--border);
        transform:translateX(105%);
    }

    body.mobileDetailsOpen #details{
        transform:translateX(0);
    }
}

@media (prefers-reduced-motion:reduce){
    #sidebar,
    #details{
        transition:none;
    }
}


/******************************************************************
 LTE-/NR-DETAILZUSATZ
******************************************************************/

.detailsSecondary{
    margin-top:3px;
    color:#666;
    font-size:.9em;
    line-height:1.35;
}


/******************************************************************
 FOOTER-LINKS UND UEBER-MOFI-SEITE
******************************************************************/

footer{
    gap:10px;
    padding:0 14px;
    text-align:center;
}

footer a{
    color:#ffffff;
    text-decoration:underline;
    text-underline-offset:2px;
}

footer a:hover,
footer a:focus-visible{
    text-decoration-thickness:2px;
}

.footerSeparator{
    opacity:.65;
}

body.aboutPage{
    min-height:100dvh;
    overflow:auto;
    display:flex;
    flex-direction:column;
}

.aboutHeader{
    flex:0 0 auto;
}

.aboutMain{
    flex:1 0 auto;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    width:100%;
    padding:clamp(24px,5vw,64px) 18px;
    background:var(--background);
}

.aboutCard{
    width:min(720px,100%);
    padding:clamp(22px,4vw,38px);
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--panel);
    box-shadow:0 4px 18px var(--shadow);
    line-height:1.65;
}

.aboutCard h2{
    margin-bottom:18px;
    color:var(--header);
}

.aboutCard p + p{
    margin-top:20px;
}

.aboutCard a{
    color:#17375e;
    font-weight:600;
}

.aboutBackLink{
    display:inline-block;
    min-height:44px;
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:6px;
    background:#f6f8fa;
    text-decoration:none;
}

.aboutBackLink:hover,
.aboutBackLink:focus-visible{
    background:#eaf0f6;
}

@media (max-width:600px){
    footer{
        min-height:48px;
        height:auto;
        flex-wrap:wrap;
        padding-top:8px;
        padding-bottom:8px;
    }

    .aboutHeader{
        height:auto;
        min-height:72px;
        padding-top:max(10px,env(safe-area-inset-top));
        padding-bottom:10px;
    }

    .aboutMain{
        padding:20px 12px;
    }

    .aboutCard{
        padding:20px 16px;
    }
}

/******************************************************************
 FOOTER-LINKS
******************************************************************/

footer a,
footer a:visited{
    color:#ffffff;
    text-decoration:underline;
    text-underline-offset:3px;
    font-weight:600;
}

footer a:hover,
footer a:focus-visible{
    color:#dbeafe;
}

/******************************************************************
 FREQUENZ-/KANALRECHNER
******************************************************************/

.sidebarToolButton{
    display:block;
    min-height:44px;
    margin:10px;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:6px;
    background:#f6f8fa;
    color:var(--header);
    font-weight:600;
    text-align:center;
    text-decoration:none;
}

.sidebarToolButton:hover,
.sidebarToolButton:focus-visible{
    background:#eaf0f6;
}

html.calculatorDocument,
body.calculatorPage{
    width:100%;
    min-height:100%;
    height:auto;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:auto;
}

body.calculatorPage{
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    -webkit-overflow-scrolling:touch;
}

.calculatorMain{
    flex:1 0 auto;
    width:100%;
    height:auto;
    min-height:0;
    overflow:visible;
    padding:clamp(20px,4vw,52px) 16px;
    background:var(--background);
}

.calculatorCard{
    width:min(980px,100%);
    margin:0 auto;
    padding:clamp(20px,4vw,36px);
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--panel);
    box-shadow:0 4px 18px var(--shadow);
}

.calculatorIntro{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}

.calculatorIntro h2{
    margin-bottom:6px;
    color:var(--header);
}

.calculatorIntro p{
    color:#555;
    line-height:1.5;
}

.calculatorBackLink{
    flex:0 0 auto;
    min-height:44px;
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:6px;
    background:#f6f8fa;
    color:var(--header);
    font-weight:600;
    text-decoration:none;
}

.calculatorBackLink:hover,
.calculatorBackLink:focus-visible{
    background:#eaf0f6;
}

.calculatorSettings{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-bottom:20px;
}

.calculatorField,
.calculatorInputCard{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.calculatorField > span,
.calculatorInputTitle{
    font-size:13px;
    font-weight:700;
    color:#3a4653;
}

.calculatorField select,
.calculatorInputLine input{
    width:100%;
    min-height:48px;
    padding:10px 12px;
    border:1px solid #b8c1ca;
    border-radius:7px;
    background:#fff;
    color:var(--text);
    font:inherit;
}

.calculatorField select:focus,
.calculatorInputLine input:focus{
    outline:2px solid rgba(23,55,94,.25);
    border-color:var(--header);
}

.calculatorConversionGrid{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:end;
    gap:16px;
    padding:20px;
    border:1px solid #d7dde3;
    border-radius:10px;
    background:#f8fafc;
}

.calculatorInputLine{
    display:flex;
    align-items:stretch;
}

.calculatorInputLine input{
    border-radius:7px 0 0 7px;
    font-size:20px;
    font-weight:600;
}

.calculatorInputCard:last-child .calculatorInputLine input{
    border-radius:7px;
}

.calculatorUnit{
    display:flex;
    align-items:center;
    padding:0 12px;
    border:1px solid #b8c1ca;
    border-left:0;
    border-radius:0 7px 7px 0;
    background:#edf1f4;
    color:#46515c;
    font-weight:600;
}

.calculatorArrow{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:48px;
    color:var(--header);
    font-size:26px;
    font-weight:700;
}

.calculatorActions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.calculatorActions button{
    min-height:44px;
    padding:9px 16px;
    border:1px solid var(--header);
    border-radius:6px;
    background:var(--header);
    color:#fff;
    font:inherit;
    font-weight:600;
    cursor:pointer;
}

.calculatorActions .secondaryButton{
    border-color:var(--border);
    background:#fff;
    color:var(--text);
}

.calculatorActions button:hover:not(:disabled),
.calculatorActions button:focus-visible:not(:disabled){
    filter:brightness(.96);
}

.calculatorActions button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.calculatorMessage{
    min-height:24px;
    margin-top:12px;
    color:#59636d;
    line-height:1.45;
}

.calculatorMessage[data-state="success"]{
    color:#17652b;
}

.calculatorMessage[data-state="warning"]{
    color:#8a5a00;
}

.calculatorMessage[data-state="error"]{
    color:#a11b1b;
}

.calculatorResult{
    margin-top:26px;
    overflow:hidden;
    border:1px solid #cbd4dc;
    border-radius:10px;
    background:#fff;
}

.calculatorResultHeadline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    background:var(--header);
    color:#fff;
}

.calculatorResultHeadline span{
    font-size:13px;
    font-weight:600;
    opacity:.85;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.calculatorResultHeadline strong{
    font-size:clamp(20px,3vw,28px);
    text-align:right;
}

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

.calculatorResultTable > div{
    display:grid;
    grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);
    gap:12px;
    padding:12px 16px;
    border-bottom:1px solid #e3e7eb;
}

.calculatorResultTable > div:nth-child(odd){
    border-right:1px solid #e3e7eb;
}

.calculatorResultTable dt{
    color:#5a6570;
    font-weight:600;
}

.calculatorResultTable dd{
    min-width:0;
    font-weight:600;
    overflow-wrap:anywhere;
}

.calculatorWarning{
    margin:14px 16px 16px;
    padding:10px 12px;
    border-left:4px solid #d09000;
    background:#fff6d9;
    color:#6e4a00;
    line-height:1.45;
}

.calculatorNote{
    margin-top:22px;
    padding:13px 15px;
    border-left:4px solid #6b7f93;
    background:#f1f4f7;
    color:#46515c;
    line-height:1.5;
}

@media (max-width:900px){
    html.calculatorDocument,
    body.calculatorPage{
        height:auto;
        min-height:100%;
        overflow-x:hidden;
        overflow-y:auto;
        overscroll-behavior-y:auto;
    }

    body.calculatorPage .calculatorMain{
        height:auto;
        min-height:0;
        overflow:visible;
    }
}

@media (max-width:760px){
    .calculatorMain{
        padding:16px 10px;
    }

    .calculatorCard{
        padding:18px 14px;
    }

    .calculatorIntro{
        flex-direction:column;
        margin-bottom:20px;
    }

    .calculatorBackLink{
        width:100%;
        text-align:center;
    }

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

    .calculatorConversionGrid{
        grid-template-columns:1fr;
        gap:10px;
        padding:14px;
    }

    .calculatorArrow{
        width:100%;
        height:28px;
        transform:rotate(90deg);
    }

    .calculatorActions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .calculatorActions button:first-child{
        grid-column:1 / -1;
    }

    .calculatorResultTable{
        grid-template-columns:1fr;
    }

    .calculatorResultTable > div:nth-child(odd){
        border-right:0;
    }

    .calculatorResultHeadline{
        align-items:flex-start;
        flex-direction:column;
    }

    .calculatorResultHeadline strong{
        text-align:left;
    }
}

@media (max-width:430px){
    .calculatorActions{
        grid-template-columns:1fr;
    }

    .calculatorActions button:first-child{
        grid-column:auto;
    }

    .calculatorResultTable > div{
        grid-template-columns:1fr;
        gap:4px;
    }
}


/*****************************************************************************/
/*
 * MOFI 0.16.0 – Web-Basisdesign in Telekom-Anmutung ohne T-Logo
 *
 * Die Umsetzung nutzt Telekom Magenta, klare Flächen, reduzierte Navigation,
 * großzügige Touch-Ziele und eine mobile Menüstruktur. Es werden keine
 * Logo- oder Fontdateien eingebunden.
 */
/*****************************************************************************/

:root{
    --telekom-magenta:#e20074;
    --telekom-magenta-hover:#c90068;
    --telekom-magenta-active:#ad005a;
    --telekom-black:#262626;
    --telekom-dark:#1b1b1b;
    --telekom-gray-900:#383838;
    --telekom-gray-700:#5f5f5f;
    --telekom-gray-500:#8a8a8a;
    --telekom-gray-300:#c8c8c8;
    --telekom-gray-200:#dedede;
    --telekom-gray-100:#ededed;
    --telekom-gray-50:#f6f6f6;

    --background:#f4f4f4;
    --panel:#ffffff;
    --header:var(--telekom-magenta);
    --footer:var(--telekom-dark);
    --border:var(--telekom-gray-200);
    --text:var(--telekom-black);
    --shadow:rgba(0,0,0,.12);

    --app-header-height:80px;
    --app-footer-height:44px;
}

html,
body{
    font-family:
        "TeleNeoWeb",
        "TeleNeo",
        "Helvetica Neue",
        Arial,
        sans-serif;
    background:var(--background);
    color:var(--text);
}

button,
input,
select,
textarea{
    font-family:inherit;
}

button,
a,
summary,
input,
select{
    -webkit-tap-highlight-color:transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
#canvas:focus-visible{
    outline:3px solid var(--telekom-magenta) !important;
    outline-offset:2px !important;
}

/******************************************************************
 MARKENHEADER OHNE T-LOGO
******************************************************************/

header,
#appHeader,
.aboutHeader{
    min-height:var(--app-header-height);
    height:var(--app-header-height);
    padding:0 clamp(18px,3vw,40px);
    border-top:4px solid var(--telekom-magenta);
    border-bottom:1px solid var(--telekom-gray-200);
    background:#ffffff;
    color:var(--telekom-black);
    box-shadow:0 2px 8px rgba(0,0,0,.07);
}

#appHeader{
    gap:clamp(18px,3vw,42px);
}

#appHeader #title,
.brandIdentity{
    flex:0 0 auto;
    min-width:190px;
    color:inherit;
    text-decoration:none;
}

#title h1{
    color:var(--telekom-black);
    font-size:30px;
    font-weight:800;
    letter-spacing:-.035em;
    line-height:1;
}

#title h1::after{
    content:"";
    display:inline-block;
    width:8px;
    height:8px;
    margin-left:5px;
    border-radius:50%;
    background:var(--telekom-magenta);
    vertical-align:baseline;
}

#subtitle{
    margin-top:6px;
    color:var(--telekom-gray-700);
    opacity:1;
    font-size:12px;
    font-weight:500;
    letter-spacing:.01em;
}

.headerSearch{
    flex:1 1 460px;
    min-width:260px;
    max-width:620px;
    margin-left:auto;
}

.headerSearchField{
    min-width:0;
}

.headerSearchIcon{
    left:14px;
    width:20px;
    height:20px;
    color:var(--telekom-black);
}

.headerSearchIcon svg,
.headerToolSvg,
.mobileHeaderButton svg,
.mobileMenuItem svg{
    display:block;
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.iconDot{
    fill:currentColor;
    stroke:none;
}

#search{
    min-height:46px;
    padding:10px 44px 10px 44px;
    border:1px solid var(--telekom-gray-300);
    border-radius:4px;
    background:var(--telekom-gray-50);
    color:var(--telekom-black);
    font-size:15px;
    box-shadow:inset 0 -2px 0 var(--telekom-gray-500);
}

#search:hover{
    border-color:var(--telekom-gray-500);
}

#search:focus{
    border-color:var(--telekom-magenta);
    box-shadow:inset 0 -2px 0 var(--telekom-magenta);
}

#search::placeholder{
    color:var(--telekom-gray-700);
}

.headerSearchClear{
    right:6px;
    color:var(--telekom-black);
}

.headerSearchClear:hover,
.headerSearchClear:focus-visible{
    background:var(--telekom-gray-100);
}

.headerTools{
    gap:12px;
}

.headerToolLink{
    min-height:46px;
    padding:0 16px;
    gap:9px;
    border:1px solid var(--telekom-magenta);
    border-radius:4px;
    background:#ffffff;
    color:var(--telekom-magenta);
    font-size:14px;
    font-weight:700;
}

#appHeader a.headerToolLink,
#appHeader a.headerToolLink:link,
#appHeader a.headerToolLink:visited,
#appHeader a.headerToolLink:hover,
#appHeader a.headerToolLink:focus-visible,
#appHeader a.headerToolLink:active{
    color:var(--telekom-magenta);
}

.headerToolLink:hover,
.headerToolLink:focus-visible{
    border-color:var(--telekom-magenta-hover);
    background:#fff0f7;
}

.headerToolLink:active{
    background:#ffe0ef;
}

.headerToolSvg{
    width:21px;
    height:21px;
}

#mobileActions{
    display:none;
}

.mobileMenu{
    display:none;
}

/******************************************************************
 HAUPTLAYOUT UND PANELS
******************************************************************/

#content{
    height:calc(100vh - var(--app-header-height) - var(--app-footer-height));
    height:calc(100dvh - var(--app-header-height) - var(--app-footer-height));
}

#sidebar,
#details{
    background:#ffffff;
}

#sidebar{
    border-right:1px solid var(--telekom-gray-200);
    padding:22px 18px;
}

#details{
    border-left:1px solid var(--telekom-gray-200);
    background:#fafafa;
    padding:22px 18px;
}

.panelHeading h2,
#sidebar h2,
#details h2{
    color:var(--telekom-black);
    font-size:20px;
    font-weight:800;
    letter-spacing:-.015em;
}

.filterGroup{
    margin-bottom:10px;
    border:1px solid var(--telekom-gray-200);
    border-radius:4px;
    background:#ffffff;
    overflow:hidden;
}

.filterGroup summary{
    position:relative;
    min-height:46px;
    padding:12px 40px 12px 14px;
    background:#ffffff;
    color:var(--telekom-black);
    font-size:14px;
    font-weight:700;
    list-style:none;
}

.filterGroup summary::-webkit-details-marker{
    display:none;
}

.filterGroup summary::after{
    content:"";
    position:absolute;
    right:16px;
    top:50%;
    width:8px;
    height:8px;
    border-right:2px solid var(--telekom-black);
    border-bottom:2px solid var(--telekom-black);
    transform:translateY(-65%) rotate(45deg);
    transition:transform .16s ease;
}

.filterGroup[open] summary{
    border-bottom:1px solid var(--telekom-gray-200);
    background:var(--telekom-gray-50);
}

.filterGroup[open] summary::after{
    transform:translateY(-30%) rotate(225deg);
}

.filterGroup select,
.calculatorField select,
.calculatorInputLine input{
    border-color:var(--telekom-gray-300);
    border-radius:4px;
}

.filterGroup .filterActions button,
.zoomButton,
.zoomResetButton,
.detailsToggleButton,
.mobilePanelClose{
    border:1px solid var(--telekom-gray-300);
    border-radius:4px;
    background:#ffffff;
    color:var(--telekom-black);
}

.filterGroup .filterActions button:hover,
.zoomButton:hover:not(:disabled),
.zoomResetButton:hover:not(:disabled),
.detailsToggleButton:hover:not(:disabled),
.mobilePanelClose:hover{
    border-color:var(--telekom-gray-500);
    background:var(--telekom-gray-50);
}

#statusBar{
    border-bottom:1px solid var(--telekom-gray-200);
    background:#ffffff;
}

#statusCenter{
    color:var(--telekom-black);
}

#canvasViewport,
#canvas{
    background:#ffffff;
}

.detailsColor{
    border-radius:2px;
}

.detailsTable th{
    color:var(--telekom-gray-700);
    font-weight:700;
}

#spectrumTooltip,
#tooltip{
    border-radius:4px;
    background:var(--telekom-dark);
}

/******************************************************************
 FOOTER
******************************************************************/

footer{
    min-height:var(--app-footer-height);
    height:var(--app-footer-height);
    background:var(--telekom-dark);
    color:#ffffff;
}

footer a,
footer a:visited{
    color:#ffffff;
}

footer a:hover,
footer a:focus-visible{
    color:#ffffff;
    text-decoration-color:var(--telekom-magenta);
}

/******************************************************************
 RECHNER UND ÜBER-SEITE
******************************************************************/

.aboutMain,
.calculatorMain{
    background:var(--background);
}

.aboutCard,
.calculatorCard{
    border:1px solid var(--telekom-gray-200);
    border-radius:4px;
    box-shadow:0 6px 22px rgba(0,0,0,.09);
}

.aboutCard h2,
.calculatorIntro h2{
    color:var(--telekom-black);
    font-weight:800;
    letter-spacing:-.02em;
}

.aboutCard h2::before,
.calculatorIntro h2::before{
    content:"";
    display:inline-block;
    width:5px;
    height:1em;
    margin-right:10px;
    background:var(--telekom-magenta);
    vertical-align:-.12em;
}

.aboutCard a,
.calculatorBackLink,
.sidebarToolButton{
    color:var(--telekom-magenta);
}

.aboutBackLink,
.calculatorBackLink,
.sidebarToolButton{
    border-color:var(--telekom-magenta);
    border-radius:4px;
    background:#ffffff;
}

.aboutBackLink:hover,
.aboutBackLink:focus-visible,
.calculatorBackLink:hover,
.calculatorBackLink:focus-visible,
.sidebarToolButton:hover,
.sidebarToolButton:focus-visible{
    background:#fff0f7;
}

.calculatorConversionGrid{
    border-color:var(--telekom-gray-200);
    border-radius:4px;
    background:var(--telekom-gray-50);
}

.calculatorField select:focus,
.calculatorInputLine input:focus{
    border-color:var(--telekom-magenta);
    outline:3px solid rgba(226,0,116,.22);
}

.calculatorArrow{
    color:var(--telekom-magenta);
}

.calculatorActions button{
    border-color:var(--telekom-magenta);
    border-radius:4px;
    background:var(--telekom-magenta);
    color:#ffffff;
}

.calculatorActions button:hover:not(:disabled),
.calculatorActions button:focus-visible:not(:disabled){
    border-color:var(--telekom-magenta-hover);
    background:var(--telekom-magenta-hover);
    filter:none;
}

.calculatorActions .secondaryButton{
    border-color:var(--telekom-gray-300);
    background:#ffffff;
    color:var(--telekom-black);
}

.calculatorActions .secondaryButton:hover:not(:disabled),
.calculatorActions .secondaryButton:focus-visible:not(:disabled){
    border-color:var(--telekom-gray-500);
    background:var(--telekom-gray-50);
}

.calculatorResult{
    border-color:var(--telekom-gray-200);
    border-radius:4px;
}

.calculatorResultHeadline{
    background:var(--telekom-magenta);
}

.calculatorNote{
    border-left-color:var(--telekom-magenta);
    background:#fff0f7;
    color:var(--telekom-black);
}

/******************************************************************
 MOBILE NAVIGATION
******************************************************************/

@media (max-width:900px){
    :root{
        --mobile-header-height:64px;
        --mobile-footer-height:0px;
        --status-height:48px;
        --app-header-height:var(--mobile-header-height);
    }

    header,
    #appHeader,
    .aboutHeader{
        min-height:var(--mobile-header-height);
        height:var(--mobile-header-height);
        padding:
            max(6px,env(safe-area-inset-top))
            max(10px,env(safe-area-inset-right))
            6px
            max(14px,env(safe-area-inset-left));
        border-top-width:4px;
        box-shadow:0 2px 7px rgba(0,0,0,.08);
    }

    #appHeader{
        gap:8px;
    }

    #appHeader #title,
    .brandIdentity{
        min-width:0;
        flex:1 1 auto;
    }

    #title h1{
        font-size:24px;
    }

    #title h1::after{
        width:6px;
        height:6px;
        margin-left:4px;
    }

    #subtitle{
        margin-top:4px;
        font-size:10px;
    }

    .headerCalculatorLink{
        display:none !important;
    }

    .headerTools{
        flex:0 0 auto;
    }

    #mobileActions{
        display:flex;
        align-items:center;
        gap:2px;
    }

    .mobileHeaderButton{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        width:44px;
        min-width:44px;
        height:44px;
        min-height:44px;
        padding:10px;
        border:0;
        border-radius:4px;
        background:#ffffff;
        color:var(--telekom-black);
    }

    .mobileHeaderButton:hover,
    .mobileHeaderButton:active,
    body.mobileSearchOpen #mobileSearchButton,
    body.mobileMenuOpen #mobileMenuButton{
        border:0;
        background:var(--telekom-gray-100);
        color:var(--telekom-magenta);
    }

    .mobileHeaderButton svg{
        width:24px;
        height:24px;
    }

    .mobileSearchCloseIcon,
    .mobileMenuCloseIcon{
        display:none;
    }

    body.mobileSearchOpen .mobileSearchOpenIcon,
    body.mobileMenuOpen .mobileMenuOpenIcon{
        display:none;
    }

    body.mobileSearchOpen .mobileSearchCloseIcon,
    body.mobileMenuOpen .mobileMenuCloseIcon{
        display:block;
    }

    #headerSearch{
        position:absolute;
        z-index:1030;
        top:100%;
        left:0;
        right:0;
        display:none;
        width:auto;
        max-width:none;
        min-width:0;
        margin:0;
        padding:12px max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left));
        border-top:0;
        border-bottom:1px solid var(--telekom-gray-200);
        background:#ffffff;
        box-shadow:0 8px 18px rgba(0,0,0,.12);
    }

    body.mobileSearchOpen #headerSearch{
        display:block;
    }

    #search{
        min-height:48px;
        font-size:16px;
    }

    .mobileMenu{
        position:fixed;
        z-index:1020;
        top:var(--mobile-header-height);
        right:0;
        bottom:0;
        display:block;
        width:min(88vw,360px);
        padding:0 0 max(16px,env(safe-area-inset-bottom));
        border-left:1px solid var(--telekom-gray-200);
        background:#ffffff;
        box-shadow:-10px 0 28px rgba(0,0,0,.18);
        overflow-y:auto;
        overscroll-behavior:contain;
        transform:translateX(105%);
        transition:transform .22s ease;
    }

    body.mobileMenuOpen .mobileMenu{
        transform:translateX(0);
    }

    .mobileMenuHeading{
        padding:22px 22px 14px;
        color:var(--telekom-black);
        font-size:24px;
        font-weight:800;
        letter-spacing:-.02em;
    }

    .mobileMenuHeading::after{
        content:"";
        display:block;
        width:42px;
        height:4px;
        margin-top:10px;
        background:var(--telekom-magenta);
    }

    .mobileMenuItem,
    button.mobileMenuItem{
        display:grid;
        grid-template-columns:26px minmax(0,1fr) auto;
        align-items:center;
        gap:14px;
        width:100%;
        min-height:60px;
        padding:10px 22px;
        border:0;
        border-top:1px solid var(--telekom-gray-100);
        border-radius:0;
        background:#ffffff;
        color:var(--telekom-black);
        font:inherit;
        font-size:17px;
        font-weight:700;
        text-align:left;
        text-decoration:none;
        cursor:pointer;
    }

    .mobileMenuItem:last-child{
        border-bottom:1px solid var(--telekom-gray-100);
    }

    .mobileMenuItem:hover,
    .mobileMenuItem:active,
    .mobileMenuItem:focus-visible{
        background:var(--telekom-gray-50);
        color:var(--telekom-magenta);
    }

    .mobileMenuItem svg{
        width:24px;
        height:24px;
    }

    .mobileMenuChevron{
        color:var(--telekom-gray-700);
        font-size:31px;
        font-weight:400;
        line-height:1;
    }

    #content{
        height:calc(100vh - var(--mobile-header-height));
        height:calc(100dvh - var(--mobile-header-height));
    }

    body:not(.aboutPage):not(.calculatorPage) > footer{
        display:none;
    }

    #sidebar{
        z-index:1020;
        top:var(--mobile-header-height);
        bottom:0;
        height:auto;
        padding:16px 16px max(20px,env(safe-area-inset-bottom));
        border-right:1px solid var(--telekom-gray-200);
        box-shadow:8px 0 28px rgba(0,0,0,.18);
    }

    #sidebar .panelHeading{
        margin:-16px -16px 12px;
        padding:14px 16px 10px;
        background:#ffffff;
    }

    .mobilePanelClose{
        width:44px;
        height:44px;
        color:var(--telekom-black);
        font-size:28px;
    }

    #details{
        z-index:1030;
        border-radius:8px 8px 0 0;
        background:#ffffff;
    }

    #details .panelHeading{
        background:#ffffff;
    }

    #details .panelHeading::before{
        background:var(--telekom-gray-300);
    }

    #mobileBackdrop{
        z-index:1010;
        inset:var(--mobile-header-height) 0 0;
        background:rgba(0,0,0,.42);
        backdrop-filter:none;
    }

    body.mobilePanelOpen{
        overflow:hidden;
    }
}

@media (max-width:520px){
    #subtitle{
        display:block;
        max-width:150px;
    }

    #appHeader{
        gap:4px;
    }

    #mobileActions{
        gap:0;
    }

    .mobileHeaderButton{
        width:42px;
        min-width:42px;
        height:42px;
        min-height:42px;
        padding:9px;
    }
}

@media (max-width:390px){
    #subtitle{
        display:none;
    }

    #title h1{
        font-size:23px;
    }

    .mobileHeaderButton{
        width:40px;
        min-width:40px;
        height:40px;
        min-height:40px;
        padding:8px;
    }
}

@media (orientation:landscape) and (max-height:520px) and (max-width:900px){
    :root{
        --mobile-header-height:54px;
    }

    header,
    #appHeader,
    .aboutHeader{
        min-height:var(--mobile-header-height);
        height:var(--mobile-header-height);
    }

    #title h1{
        font-size:21px;
    }

    .mobileHeaderButton{
        width:40px;
        min-width:40px;
        height:40px;
        min-height:40px;
        padding:8px;
    }

    .mobileMenu,
    #sidebar{
        top:var(--mobile-header-height);
    }

    #mobileBackdrop{
        inset:var(--mobile-header-height) 0 0;
    }
}

@media (prefers-reduced-motion:reduce){
    .mobileMenu{
        transition:none;
    }
}


/* Sichtbarkeit der wechselnden Mobil-Icons mit höherer Spezifität. */
@media (max-width:900px){
    .mobileHeaderButton .mobileSearchCloseIcon,
    .mobileHeaderButton .mobileMenuCloseIcon{
        display:none;
    }

    body.mobileSearchOpen .mobileHeaderButton .mobileSearchOpenIcon,
    body.mobileMenuOpen .mobileHeaderButton .mobileMenuOpenIcon{
        display:none;
    }

    body.mobileSearchOpen .mobileHeaderButton .mobileSearchCloseIcon,
    body.mobileMenuOpen .mobileHeaderButton .mobileMenuCloseIcon{
        display:block;
    }
}


/******************************************************************
 MOFI 0.16.1 – MOBILE PANELBEDIENUNG
******************************************************************/

@media (max-width:900px){
    /* Filter und Hauptmenü fahren auf Mobilgeräten von derselben Seite ein. */
    #sidebar{
        left:auto;
        right:0;
        width:min(88vw,360px);
        max-width:360px;
        padding:
            16px
            max(16px,env(safe-area-inset-right))
            max(20px,env(safe-area-inset-bottom))
            16px;
        border-right:0;
        border-left:1px solid var(--telekom-gray-200);
        box-shadow:-10px 0 28px rgba(0,0,0,.18);
        transform:translateX(105%);
    }

    body.mobileFilterOpen #sidebar{
        transform:translateX(0);
    }

    /* Das Info-Symbol zeigt auch den geöffneten Zustand der Details an. */
    body.mobileDetailsOpen #mobileDetailsButton{
        border:0;
        background:var(--telekom-gray-100);
        color:var(--telekom-magenta);
    }
}

@media (prefers-reduced-motion:reduce){
    #sidebar{
        transition:none;
    }
}


/*****************************************************************************/
/* MOFI 0.16.7 - Datenstand auf der Info-Seite                              */
/*****************************************************************************/

.aboutDataStatus{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:24px 0 0;
    padding:14px 16px;
    border:1px solid var(--telekom-gray-200);
    border-left:4px solid var(--telekom-magenta);
    border-radius:4px;
    background:var(--telekom-gray-50);
}

.aboutDataStatusLabel{
    color:var(--telekom-gray-700);
    font-weight:700;
}

.aboutDataStatus strong{
    color:var(--telekom-black);
    font-variant-numeric:tabular-nums;
}

.aboutDataStatusHint{
    margin-top:8px !important;
    color:var(--telekom-gray-700);
    font-size:13px;
}

@media (max-width:520px){
    .aboutDataStatus{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
    }
}


/*****************************************************************************/
/* MOFI 0.16.9 - TDD-Datenquellen auf der Info-Seite                        */
/*****************************************************************************/

.aboutTddSection{
    margin-top:32px;
    padding-top:28px;
    border-top:1px solid var(--telekom-gray-200);
}

.aboutTddSection h3{
    margin:24px 0 10px;
    color:var(--telekom-black);
    font-size:16px;
}

.aboutTddTableWrap{
    margin-top:18px;
    overflow-x:auto;
    border:1px solid var(--telekom-gray-200);
    border-radius:4px;
}

.aboutTddTable{
    width:100%;
    min-width:800px;
    border-collapse:collapse;
    font-size:13px;
    line-height:1.4;
}

.aboutTddTable th,
.aboutTddTable td{
    padding:10px 12px;
    border-bottom:1px solid var(--telekom-gray-200);
    text-align:left;
    vertical-align:top;
}

.aboutTddTable th{
    background:var(--telekom-gray-50);
    color:var(--telekom-black);
    font-weight:800;
    white-space:nowrap;
}

.aboutTddTable tbody tr:last-child td{
    border-bottom:0;
}

.aboutTddTable code{
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size:12px;
    white-space:nowrap;
}

.aboutSourceList{
    margin:0;
    padding-left:20px;
}

.aboutSourceList li + li{
    margin-top:8px;
}


/*****************************************************************************/
/* MOFI 0.17.0 - Aufklappbare 5G-TDD-Datenquelle                           */
/*****************************************************************************/

.aboutTddSection{
    margin-top:32px;
    padding-top:0;
    border-top:1px solid var(--telekom-gray-200);
}

.aboutTddSummary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:22px 0;
    cursor:pointer;
    list-style:none;
    user-select:none;
}

.aboutTddSummary::-webkit-details-marker{
    display:none;
}

.aboutTddSummary::after{
    content:"+";
    flex:0 0 auto;
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border:1px solid var(--telekom-gray-300);
    border-radius:50%;
    color:var(--telekom-magenta);
    font-size:24px;
    font-weight:400;
    line-height:1;
}

.aboutTddSection[open] .aboutTddSummary::after{
    content:"−";
}

.aboutTddSummary:hover .aboutTddSummaryTitle,
.aboutTddSummary:focus-visible .aboutTddSummaryTitle{
    color:var(--telekom-magenta);
}

.aboutTddSummary:focus-visible{
    outline:2px solid var(--telekom-magenta);
    outline-offset:4px;
}

.aboutTddSummaryTitle{
    color:var(--telekom-black);
    font-size:20px;
    font-weight:800;
    line-height:1.25;
}

.aboutTddContent{
    padding:0 0 8px;
}

.aboutTddContent > p:first-child{
    margin-top:0;
}

@media (max-width:520px){
    .aboutTddSummary{
        gap:12px;
        padding:18px 0;
    }

    .aboutTddSummaryTitle{
        font-size:18px;
    }

    .aboutTddSummary::after{
        width:28px;
        height:28px;
        font-size:22px;
    }
}

.aboutTddSummary::marker{
    content:"";
}
