/* videos.php (/video/<id>) - Layout im Stil des TechnikWiki (Timeless Skin):
   weisse Kopfzeile mit Logo und Farbbalken, Inhaltsbox mit 12px Radius und blauem Balken unten,
   IBM Plex Sans, Wikimedia-Palette, dunkle Fusszeile (Markup und Regeln 1:1 aus dem Wiki). */

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/skins/Timeless/resources/fonts/IBMPlex/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/skins/Timeless/resources/fonts/IBMPlex/IBMPlexSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --base100: #ffffff;
    --base90: #f8f9fa;
    --base80: #eaecf0;
    --base70: #c8ccd1;
    --base30: #72777d;
    --base20: #54595d;
    --text: #000000;
    --red-dark: #b32424;
    --green-dark: #14866d;
    --blue: #3366cc;
    --blue-bright: #eaf3ff;
    --blue-dark: #2a4b8d;
    --radius: 12px;
    --radius-small: 4px;
    --content-width: 900px;
}

html,
body {
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: 'IBM Plex Sans', 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text);
    background: var(--base30);
}

a {
    color: var(--blue);
    text-decoration: none;
}
a:visited {
    color: var(--blue-dark);
}
a:hover {
    text-decoration: underline;
}

/* Kopfzeile */
.tw-header {
    background: var(--base100);
    box-shadow: 0 3px 3px 2px rgba(0, 0, 0, 0.075), 0 0 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}
.tw-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.4em 1em;
    display: flex;
    align-items: center;
}
.tw-logo,
.tw-logo:visited {
    display: flex;
    align-items: center;
    gap: 0.6em;
    color: var(--text);
    font-variant: small-caps;
    font-size: 1.7em;
    line-height: 1;
}
.tw-logo:hover {
    text-decoration: none;
}
.tw-logo img {
    width: 44px;
    height: 44px;
}
.tw-colors {
    display: flex;
    height: 0.35em;
}
.tw-colors span {
    flex: 1;
}
.tw-colors .left {
    background: var(--red-dark);
}
.tw-colors .middle {
    flex: 0 1 var(--content-width);
    background: var(--blue-dark);
}
.tw-colors .right {
    background: var(--green-dark);
}

/* Inhalt */
.tw-content-container {
    background: var(--base90);
    border-bottom: solid 4px var(--green-dark);
    padding: 1.5em 1em 2em;
}
.tw-content {
    max-width: var(--content-width);
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--base100);
    border: solid var(--base80);
    border-width: 1px 1px 0.2em;
    border-bottom-color: var(--blue);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.02);
    padding: 1em 2em 2.5em;
}
.tw-breadcrumb {
    font-size: 0.9em;
    color: var(--base20);
    margin: 0;
}
h1,
h2 {
    font-weight: normal;
    line-height: 1.25;
    margin: 0.25em 0 0.5em;
}
h1 {
    font-size: 2em;
    border-bottom: solid 4px var(--blue);
}
h2 {
    font-size: 1.5em;
    border-bottom: solid 2px var(--base70);
    margin-top: 1.5em;
}

.tw-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    border-bottom: 0.2em solid var(--blue);
}
.tw-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tw-video-desc {
    margin: 1em 0;
}
.tw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin: 1em 0;
}
.tw-button,
.tw-button:visited {
    display: inline-block;
    padding: 0.4em 0.9em;
    border: 1px solid var(--base70);
    border-radius: var(--radius-small);
    background: var(--base90);
    color: var(--blue-dark);
}
.tw-button:hover {
    background: var(--blue-bright);
    border-color: var(--blue);
    text-decoration: none;
}
.tw-button-primary,
.tw-button-primary:visited {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--base100);
}
.tw-button-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* Alle Videos */
.tw-video-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2 18em;
    column-gap: 2em;
}
.tw-video-list li {
    break-inside: avoid;
    padding: 0.25em 0 0.25em 1.1em;
    position: relative;
}
.tw-video-list li::before {
    content: '\25B6\FE0E';
    position: absolute;
    left: 0;
    top: 0.45em;
    font-size: 0.7em;
    color: var(--base70);
}
.tw-video-list li.current {
    font-weight: 600;
}
.tw-video-list li.current::before {
    color: var(--blue);
}

/* Fusszeile 1:1 wie im Wiki (screen-common.less #mw-footer-container / #mw-footer, bootstrap.css img.footerIcon) */
#mw-footer-container {
    border-top: solid 1px var(--base20);
    box-shadow: inset 0 7px 2px -4px rgba(0, 0, 0, 0.1);
    color: var(--base100);
}
#mw-footer-container a {
    color: var(--blue-bright);
}
#mw-footer-container a:hover,
#mw-footer-container a:visited {
    color: var(--base90);
}
#mw-footer {
    max-width: var(--content-width);
    box-sizing: border-box;
    margin: auto;
    text-align: center;
    padding: 0.5em 1em 1em;
}
#mw-footer ul,
#mw-footer li {
    margin: 1em 0;
    list-style: none;
    padding: 0;
}
.visualClear {
    clear: both;
}
img.footerIcon {
    opacity: 1.0;
    vertical-align: middle;
}
img.footerIcon:hover {
    opacity: 0.7;
}

/* TOP-Button 1:1 wie im Wiki (bootstrap.css .twButtonTop) */
.twButtonTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background: none;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    opacity: 1;
}
.twButtonTop:hover {
    opacity: 0.5;
}

/* Handy: Inhalt eckig und randlos wie im Wiki */
@media (max-width: 850px) {
    .tw-content-container {
        padding: 0;
    }
    .tw-content {
        border-radius: 0;
        border-width: 0 0 0.2em;
        padding: 0.8em 1em 2em;
    }
    .tw-logo,
    .tw-logo:visited {
        font-size: 1.4em;
    }
    .tw-logo img {
        width: 36px;
        height: 36px;
    }
    h1 {
        font-size: 1.6em;
    }
    #mw-footer {
        padding: 0 0.45em;
    }
}
