:root {
    --bg: #0D0F17;
    --card: #141b24;
    --card-hover: #1a2332;
    --text: #e8eaed;
    --text-secondary: #b4bcc8;
    --muted: #8b95a6;
    --accent: #6366f1;
    --accent-2: #06b6d4;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 8px;
}
  
* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

html, body {
    margin:0; 
    overflow-x:hidden; 
    font-family: "Archivo", Segoe UI, Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    background: var(--bg);
    background-attachment: fixed;
    color: var(--text);

}

body::-webkit-scrollbar {
    width: 0.5rem;
}
body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
body::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border: 5px;
}

/* Text Styles */

h1 {
    margin:.1rem 0; 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    background: linear-gradient(60deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    letter-spacing: 2px;
    font-size: 2em;
    font-weight: 800;
    color: var(--text); 
    margin-top: 40px;
    margin-bottom: 0px;
    padding: 0;
    text-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
    line-height: 1;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    word-break: break-word;
    hyphens: auto;
}

.visually-hidden {
    position:absolute;
    inline-size:1px;
    block-size:1px;
    overflow:hidden;
    /* clip:rect(0 0 0 0); */
    white-space:nowrap;
    clip-path:inset(50%);
  }

/* --- Header / Controls --- */
.controls {
    position:fixed;
    top:20vh;
    z-index:2;
    background: var(--bg);
    width: 100%; 
    display:grid; gap:.75rem;
    padding: .75rem 1rem 1rem;
    grid-template-areas:
      "title"
      "btns";
    justify-items:center;
    transition: all 0.5s ease-out;
  }
  
/* After a choice: animate to top and become "sticky header" */
body:has(#show-left:checked) .controls,
body:has(#show-right:checked) .controls {
    top: 0px; 
  }
  
body:has(#show-left:checked) .supertitle,
body:has(#show-right:checked) .supertitle {
    font-size: 0; visibility: hidden;
  }

body:has(#show-left:checked) .portrait,
body:has(#show-right:checked) .portrait {
    width: 0px; 
    height: 0px; 
    margin-bottom: 0px; 
    border: 0; 
}

/* Title Block */

.title-block {
    grid-area:title;
    text-align:center;
    line-height:1.2;
    width: 80vw;
}
  
.portrait {
    margin: 0 auto; 
    filter: grayscale(1); 
    width: 20vh; 
    height: 20vh; 
    border-radius: 125px; 
    border: 2px solid var(--accent); 
    background: url(images/martinjehle.png); 
    background-size: cover;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}
  
.supertitle {
    color: var(--text-secondary); 
    font-weight: 100;
    font-size: 1em;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    transform: all 0.75s;
}
        
.subtitle a {
    font-weight: 100;
    font-size: 1rem; 
    text-align: center;
    text-transform: uppercase;
    margin: 0; 
    padding: 0;
    text-decoration: none; 
    color: var(--text-secondary);
}

/* Bottom (original) buttons */
.btns {
    grid-area:btns;
    display:flex; gap:2.5rem;
  }
  
.btns label, .corner-btns label {
    padding: 0.5rem 1rem;
    background: linear-gradient(60deg, var(--accent), var(--accent-2));
    color: white;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
}

.btns label:focus-visible, .corner-btns label:focus-visible {
    outline:2px solid #000; 
    outline-offset:0px 20px 0px;
}

/* Corner buttons (hidden initially) */
.corner-btns {
    display:none;
    position:absolute; 
    inset:0; 
    pointer-events:none; /* container doesn't catch clicks */
}

.corner-btns label {
    position:absolute; 
    top:1rem; 
    pointer-events:auto; /* labels are clickable */
}

.corner-btns label[for="show-left"]  {
    left:0.5rem;
}

.corner-btns label[for="show-right"] {
    right:0.5rem;
}

/* Show corner set after a choice; hide original set */
.controls:has(#show-left:checked)  .corner-btns,
.controls:has(#show-right:checked) .corner-btns {
    display:block;
}

.controls:has(#show-left:checked)  .btns,
.controls:has(#show-right:checked) .btns {
    display:none;
}

/* Mutual hiding (both sets) */
.controls:has(#show-left:checked)  .corner-btns label[for="show-left"],
.controls:has(#show-right:checked) .corner-btns label[for="show-right"] {
    display:none;
}

/* --- Viewport & Panels --- */
.viewport {
    position:relative;
    width:100%;
    max-width:100%;
    padding: 0;
    overflow:hidden;
    height:0;
    visibility:hidden;
}

.panel {
    position:absolute;
    padding: 0.55rem;
    transform:translateX(-100%);
    opacity:0; pointer-events:none;
    transition:transform 420ms cubic-bezier(.22,1,.36,1), opacity 200ms ease; 
    will-change:transform;
  }
  
.panel.right {
    transform:translateX(100%);
}

.controls:has(#show-left:checked)  + .viewport,
.controls:has(#show-right:checked) + .viewport {
    height:auto;
    visibility:visible;
}

.controls:has(#show-left:checked)  + .viewport #panel-left,
.controls:has(#show-right:checked) + .viewport #panel-right {
    transform:translateX(0);
    opacity:1;
    pointer-events:auto;
    position:relative;
}

.card {
    max-width:1100px;
    width: 100%;
    margin: 0 auto;
    margin-top: 130px;
}








  article {
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), #141b24;
    color: var(--text-secondary);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(16px, 3vw, 32px);
    align-items: start;
    padding: 8px;
    container-type: inline-size; /* enables container query for ideal breakpoint */
    min-width: 0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
  }
  
  article p {margin: 0;}
  
article:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: #1a2332;
}

.article-media {
	margin: 10px;
}

  .article-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    transition: transform .6s;
    border: 1px solid var(--border);

  }

article:hover .article-media > img {
    transform: scale(1.05);
}

  .article-content {
    display: grid;
    align-content: center;
    gap: clamp(8px, 1.5vw, 16px);
    padding: clamp(4px, 1vw, 12px)
  }

  .article-content h3 {
      margin: 0;
      font-weight: 800;
      letter-spacing: 1px;
      line-height: 1.1;
      font-size: 1.5em;
      font-family: "Archivo";
      color: var(--text);
  }

  .data {
    color: var(--muted);
      font-weight: 600;
      font-family: "Archivo"; 
      font-size: clamp(16px, 1.5vw, 20px);
      display: flex;
    gap: 12px;
      flex-wrap: wrap;
  }

  .description {
    margin-top: 8px;
      opacity: .9;
      color: var(--text-secondary);
  }

  .tags {
    margin: .5rem 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .875rem;
    line-height: 1;
    white-space: nowrap;
  }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .75rem 1.25rem;
      font-size: .85rem;
      line-height: 1;
      font-weight: 600;
      user-select: none;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      color: white;
      border-radius: 8px;
      backdrop-filter: blur(8px);
      box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.2),       
      font-family: "Archivo";
    }

/* --- Table Styles --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    font: 400 15px/1.6 "Archivo", ui-sans-serif, system-ui;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

thead {
    position: sticky;
    top: 135px;
}

 thead th {
     position: sticky;
     top: 135px;
     z-index: 2;
     padding: 16px 20px;
     text-align: left;
     font: 700 .95rem/1 "Archivo", system-ui, sans-serif;
     letter-spacing: .01em;
     color: #fff;
     background: linear-gradient(135deg, var(--accent), rgba(99,102,241,.9));
     border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 16px 20px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    transition: background-color .2s ease;
}

tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.02);
}

tbody tr:hover td {
    background: rgba(255,255,255,.04);
}

 td a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-color: rgba(99,102,241,.5);
  transition: text-decoration-color .2s ease;
}

 td a:hover { text-decoration-color: var(--accent); }

 table:focus-visible,  td a:focus-visible {
  outline: none;
  border-radius: 8px;
}


footer {
position: fixed; bottom: 0; right: 0; height: 34px; color: var(--text-secondary); text-align: center; opacity: 0.7;
    width: 150px; 
    height: 34px; 
    line-height:34px; 
    display:block; }

footer a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8em;
    text-transform: uppercase;
    }
 
.impressum a {
    color: var(--text);
    text-decoration: none;
    }
    
/* Background (video + dark overlay), kept behind page content */
.video-bg {
    position: fixed; 
    inset: 0; 
    z-index: -100;
    }

.video-bg::after {
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,.35);
}

.video-bg > video {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    }
    
.controls:has(#show-left:checked)  .video-bg,
.controls:has(#show-right:checked) .video-bg {
    opacity: 0; 
    transition: all 0.5s;
}

/* Responsive */
@media (max-width: 780px) {
   th.col-genre,  td.col-genre,
   th.col-length,  td.col-length,  
   th.col-type,  td.col-type { display: none; }
}

@media (max-width: 600px) {
   th.col-role,  td.col-role,  th.col-type,  td.col-type { display: none; }
   td.col-title { font-weight: 600; }
   
}

@media (prefers-reduced-motion: reduce) {
    .panel {
        transition:none;
    }
}
 
@media (max-width: 700px) {
    .mobile {
        display: inline;
    }
    .desktop {
        display: none;
    }
    .corner-btns label {
        padding: 0.25rem; line-height: 1;
    }
    
    body:has(#show-left:checked) h1,
body:has(#show-right:checked) h1 {
    font-size: 1.5rem;
  }
}

@media (min-width: 701px) {
    .mobile {
        display: none;
    }
    .desktop {
        display: inline;
    }
}

@media (max-width: 600px) {
    article {
        grid-template-columns: 1fr;
    }

    .article-media, .article-content {
        width: 100%;
    }

    .article-media {
        margin: 0;                   
    }
}