/* Kacheln und Startseiten-Kopfzeile wie im Mitarbeiterportal. */
.portal-dashboard > .module-header {
    background: var(--blau);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.portal-dashboard .header-brand, .portal-dashboard .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.portal-dashboard .header-right { flex-wrap: wrap; }
.portal-dashboard .header-right form { margin: 0; }
.portal-dashboard .user-info { display: contents; }
.portal-dashboard .header-right span { font-size: .9rem; overflow-wrap: anywhere; }
.portal-dashboard > .module-header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.portal-dashboard button { font-family: inherit; }
.dashboard-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 2rem;
    padding: 2rem;
}
.dashboard-main .tile {
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 250px;
    padding: 1.2rem;
    border: 0;
    border-left: 5px solid var(--blau);
    border-radius: 8px;
    background: var(--weiss);
    color: var(--schriftgrau);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.dashboard-main a.tile:visited { color: var(--schriftgrau); }
.dashboard-main .tile:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,.15); filter: none; }
.dashboard-main .tile h2, .dashboard-main .tile .tile-title {
    display: block;
    color: var(--blau);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 .75rem;
}
.dashboard-main .tile p, .dashboard-main .tile .tile-description {
    display: block;
    margin: 0;
    font-size: .9rem;
    color: var(--schriftgrau);
    font-weight: 400;
}
.dashboard-main .report-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7em;
    min-height: 1.7em;
    padding: 0 .3em;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--blau);
    color: #fff;
    font-size: .9em;
    line-height: normal;
    margin: 0 0 0 .35em;
    vertical-align: middle;
}
.dashboard-main .tile:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.portal-dashboard > .module-header button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) {
    .portal-dashboard > .module-header { padding: 1rem; }
    .portal-dashboard .header-brand, .portal-dashboard .header-right { width: 100%; }
    .portal-dashboard .header-right { justify-content: space-between; }
    .portal-dashboard > .module-header h2 { font-size: 1.25rem; }
    .dashboard-main { padding: 1rem; gap: .75rem; }
    .dashboard-main .tile { box-sizing: border-box; width: 100%; padding: 1rem; }
    .dashboard-main .tile h2, .dashboard-main .tile .tile-title { margin-bottom: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-main .tile { transition: none; }
    .dashboard-main .tile:hover { transform: none; }
}

/* Arbeitsbereiche der Intern-Startseite */
.dashboard-main.intern-home { display:block; box-sizing:border-box; color:#173e60; }
.intern-home .intern-home-symbols { position:absolute; pointer-events:none; }
.intern-home .shell-intro h1 { margin:0; color:#173e60; font-size:clamp(29px,3vw,38px); line-height:1.16; letter-spacing:-.035em; }
.intern-home .intern-home-icon { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.intern-home-tabs { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 18px; border-bottom:1px solid #c7d7e3; }
.intern-home-tabs a { display:inline-flex; align-items:center; gap:9px; padding:12px 16px; min-height:44px; box-sizing:border-box; background:transparent; color:#173e60; border:0; border-bottom:3px solid transparent; border-radius:6px 6px 0 0; text-decoration:none; font-size:14px; font-weight:600; }
.intern-home-tabs .intern-home-icon { width:16px; height:16px; }
.intern-home-tabs a:hover { background:#f0f5f9; }
.intern-home-tabs a[aria-selected="true"],
.intern-home:not(.intern-home-ready):not(:has(.intern-home-panel:target)) .intern-home-tabs a:first-child { background:#e5edf5; border-bottom-color:#cf792e; }
.intern-home-panel { display:grid; grid-template-columns:minmax(0,37%) minmax(0,1fr); min-height:273px; overflow:hidden; background:white; border:1px solid #d3e0eb; border-radius:12px; scroll-margin-top:calc(var(--shell-header-height,120px) + 10px); }
.intern-home-panel[hidden],
.intern-home:not(.intern-home-ready) .intern-home-panels:not(:has(>.intern-home-panel:target))>.intern-home-panel:not(:first-child),
.intern-home:not(.intern-home-ready) .intern-home-panels:has(>.intern-home-panel:target)>.intern-home-panel:not(:target) { display:none; }
.intern-home-feature { padding:27px; background:#193f62; color:white; }
.intern-home-art,.intern-home-iconbox { display:inline-grid; place-items:center; flex:none; border-radius:9px; }
.intern-home-art { width:58px; height:58px; box-sizing:border-box; margin-bottom:28px; color:#ecf5fc; border:1px solid #587b99; background:#254e70; }
.intern-home-art .intern-home-icon { width:32px; height:32px; }
.intern-home-feature h2 { margin:0; padding:0; color:inherit; border:0; font-size:clamp(22px,2.1vw,30px); letter-spacing:-.032em; line-height:1.15; overflow-wrap:anywhere; }
.intern-home-feature p { margin:10px 0 0; color:#e0ebf4; font-size:14px; line-height:1.45; max-width:29ch; }
.intern-home-destinations { display:flex; flex-direction:column; justify-content:center; padding:0 22px; min-width:0; }
.intern-home .intern-home-link { display:flex; align-items:center; gap:14px; padding:23px 0; color:#163d62; text-decoration:none; overflow-wrap:anywhere; min-width:0; }
.intern-home-link + .intern-home-link { border-top:1px solid #d5e0eb; }
.intern-home-link:hover strong,.intern-home-actions a:hover { text-decoration:underline; }
.intern-home-iconbox { width:39px; height:39px; color:#23547d; background:#eaf1f7; }
.intern-home-link strong,.intern-home-link small { display:block; }
.intern-home-link strong { font-size:17px; line-height:1.28; }
.intern-home-link small { margin-top:4px; color:#526a80; font-size:13px; line-height:1.45; }
.intern-home .intern-home-link>.intern-home-icon { margin-left:auto; width:17px; height:17px; color:#587894; }
.intern-home-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:22px 0 0; }
.intern-home-actions h2,.intern-home-more h2 { color:#173e60; margin:0; padding:0; border:0; font-size:17px; }
.intern-home-actions h2 { font-size:15px; }
.intern-home-actions a { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; min-height:37px; box-sizing:border-box; color:#173e60; border:1px solid #c9d8e6; border-radius:7px; background:#fff; font-size:13px; font-weight:600; text-decoration:none; }
.intern-home-actions .intern-home-icon { width:16px; height:16px; }
.intern-home .shell-stats:empty { display:none!important; }
.intern-home.intern-home-ready .shell-stats:not(:empty) { margin-top:26px; }
.intern-home-more { margin-top:28px; }
.intern-home-more>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin-top:12px; }
.intern-home-more .intern-home-link { padding:12px 14px; border:1px solid #d5e0eb; border-radius:8px; background:#fff; }
.intern-home a:focus-visible { outline:3px solid #3174ac; outline-offset:-3px; border-radius:6px; }
@media(max-width:670px) {
    .intern-home-tabs { gap:2px; margin-bottom:12px; }
    .intern-home-tabs a { padding:9px 8px; gap:5px; font-size:13px; }
    .intern-home-panel { grid-template-columns:1fr; min-height:0; }
    .intern-home-feature { padding:18px; }
    .intern-home-art { display:none; }
    .intern-home-feature p { max-width:none; }
    .intern-home-destinations { padding:0 14px; }
    .intern-home-destinations .intern-home-link { gap:12px; padding:17px 0; }
    .intern-home-more>div { grid-template-columns:1fr; }
    .intern-home-actions { gap:8px; margin-top:18px; }
    .intern-home-actions h2 { width:100%; }
}
