/* ======================================================
    CSS by INTENSIVSTATION 2026
   ======================================================	*/


/* 
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Orbitron:wght@400..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Orbitron:wght@400..900&display=swap');

@import url("font.css");
@import url("grid.css");

:root {
    color-scheme: light dark;
    --main-color: #35165d;
}

body {
    /* font-size: 1rem; */
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1rem);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: light-dark(black, #f0f0f0);
    background-color: light-dark(white, black);
    padding: 0;
    margin: 0;
}

a,
a:visited {
    color: light-dark(#000, #f0f0f0);
    text-decoration: none;
    border-bottom: 2px solid cyan;
    transition: 0.3s;
}

a:hover {
    background: cyan;
    color: #000;
}

header,
footer {
    background: var(--main-color);
}

header {
    font-family: "Orbitron", sans-serif;

    p {
        letter-spacing: 0.1rem;
        margin: 0;
        font-weight: 700;
        font-size: 1.25rem;
        hyphens:  none;
    }

    a,
    a:visited {
        color: white;
    }
}

footer {
    color: #deded9;

    a,
    a:visited {
        color: #f0f0f0;
        margin: 0 10px;   
    }

    a:hover {
        color: #000;
    }
}
 /* --------- selection --------- */
::selection {
    background: light-dark(#551a8b, #C71585);
    color: white;
}

/* --------- Horizontal Ruler --------- */
 hr {
     border: 0;
     border-bottom: 2px solid light-dark(var(--main-color), #323232);
     margin: 50px 0;
 }

 /* --------- Buttons --------- */
 button {
     display: inline-block;
     color: #000;
     background-color: cyan;
     text-transform: uppercase;
     letter-spacing: .5px;
     cursor: pointer;
     padding: 0.4rem 1.5rem;
     line-height: 1.5;
     border: none;
     margin: 0 0 5px;
     font: inherit;
     transition: background-color .3s ease, color .3s ease;
     box-shadow: 3px 3px 0 light-dark(#000, #323232);

 }

 button a,
 button a:visited {
     color: #000;
 }

 button:hover {
     background-color: var(--main-color);
    color: #fff;
 }


/* ---------------- nobullet List ---------------- */
ul.nobullet {
    padding: 0 0 0 20px;
    margin: 0 0 20px;
}

ul.nobullet li {
    list-style-type: none;
    line-height: 180%;
}

ul.nobullet li:before {
    content: "– ";
    display: inline-block;
    width: 20px;
    margin: 0 0 0 -20px;
}

/* ---------------- keyterms List ---------------- */
ul.keyterms {
    border-top: 1px solid light-dark(black, #f0f0f0);
    padding: 0;
    margin: 0 0 25px;
}

ul.keyterms li {
    list-style-type: none;
    border-bottom: 1px solid light-dark(black, #f0f0f0);
    line-height: 180%;
    display: table;
    width: 100%;
    padding: 5px 0;
}

ul.keyterms li span {
    display: block;
    font-weight: 600;
}

@media screen and (min-width : 601px) {
    ul.keyterms li span {
        width: 250px;
        display: table-cell;
    }
}

ol {
    padding: 0 0 0 20px;
    margin: 0 0 20px;

    li {
        line-height: 180%;
    }
}
/* ---------------- Manual only  ---------------- */
pre {
    position: relative;
    padding: 20px;
    margin: 0 0 20px;
    font-size: 1.1rem;
    color: light-dark(#000, #f0f0f0);
    background-color: light-dark(#EFEFEF, #323232);
    font-family: "Roboto Mono", monospace;
    white-space: pre-wrap;
}

/* Code copy functionality */
pre.code-copyable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

pre.code-copyable::after {
    content: 'Click to copy';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    opacity: 0;
    color: light-dark(#666, #999);
    transition: opacity 0.2s ease;
}

pre.code-copyable:hover {
    opacity: 0.9;
}

pre.code-copyable:hover::after {
    opacity: 1;
}

pre.code-copied {
    background-color: cyan !important;
    color: #000 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

code {
    font-size: 1.1rem;
    line-height: 150%;
    font-family: "Roboto Mono", monospace;
    color: light-dark(black, #f0f0f0);
    background-color: light-dark(#EFEFEF, #323232);
}

.uebung {
    font-weight: bold;

    img {
        vertical-align: middle;
    }
}

/* ---------------- copy-button  ---------------- */
.copy-button {
    position: absolute;
    right: 5px;
    top: 5px;
    text-align: right;

    button {
        margin: 0 0 5px;
        padding: 5px;
        text-transform: uppercase;
        font-size: 0.8rem;
    }
}

/* ---------------- startseite  ---------------- */
.start {
    h3 {
        font-family: "Orbitron", sans-serif;
        font-size: 1.5rem;
    }
}

.navi {
    h3 {
        font-family: "Orbitron", sans-serif;
        font-size: 1.5rem;
        padding:  0 5px;
    }
    .col:not(.center){
            border: 1px solid light-dark(#000, #999);
            padding: 20px;
            box-shadow: 3px 3px 0  light-dark(#000, #999);
        background-color: light-dark(white, black);
    }
  
    ul{
        list-style-type: none;
        margin: 0;
        padding: 0;
        }
        
    a{
        display: block;
        padding: 10px 5px;
        border-bottom: 1px solid #999;
        font-size: 1.1rem;
        
        &:hover{
            background: yellow;
        }
    }
}
/* -------- BG-images ----------*/

.dotted {
    background-image: radial-gradient(var(--main-color) 1px, transparent 0);
    background-size: 8px 8px;
}
/* ---------------- Progress-Bar ---------------- */
.progress{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(45deg, cyan, indigo, cyan);
  z-index: 9999;
}

/* Scroll-driven Version (modern) */
@supports (animation-timeline: scroll(root)) {
  .progress{
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes grow{
    to { transform: scaleX(1); }
  }
}
/* Fallback (kein Scroll-Timeline Support) */
@supports not (animation-timeline: scroll(root)) {
  .progress{
    transform: scaleX(1);
    opacity: .25;
  }
}

/* Reduced Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    .progress{
    animation: none !important;
    transform: scaleX(1);
    opacity: .25;
  }
}
/* ---------------- codePen ---------------- */
iframe {
    margin-bottom: 50px;
}