/* =========================================================
   style.css – Slider + Work-Grid + Teaching/Allgemein
   ========================================================= */

/* ---------- Root Variablen ---------- */
:root {
  --gap: clamp(16px, 3vw, 32px);
  --maxw: 1400px;

  --c-text: #232323;
  --c-muted: #666666;
  --c-bg-card: #f7f7f7;
  --c-link: #007acc;
  --c-link-rgb: 0, 122, 204; /* für rgba-Dunkelung */


  --header-h: 72px;   
  --footer-h: 120px; 
  --footer-h-mobile: 60px;

}

/* ---------- Fonts ---------- */

/* outfit-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/outfit-v14-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/outfit-v14-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/outfit-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/outfit-v14-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/outfit-v14-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ---------- Reset & Basics ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  color: var(--c-text);
  background: #fff;
  overflow-y: auto;
}


@media (min-width: 768px) {
  html,
  body {
    font-size: 18px;
  }
}

/* Body auf Slider-Seite per Klasse scrollfrei machen */
body.deck {
  overflow: hidden;
}

/* ---------- Globale Typo ---------- */
h2 {
  font-size: 24px;
  font-weight: 300;
  color: rgb(111, 111, 111);
}


@media (min-width: 768px) {
  h2 {
    font-size: 32px;
  }
}

p {
  line-height: 1.5em;
}


/* =========================================================
   HEADER
   ========================================================= */

/* (Altes direktes header-Tag könntest du entfernen, wir nutzen .site-header überall)
   Belassen, falls noch auf anderen Seiten verwendet. */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 2rem;
  background-color: #fff;
  color: var(--c-text);
  height: var(--header-h);
  box-shadow: 0 -4px 15px 6px rgba(0, 0, 0, 0.44);
}

header h1 {
  font-size: 21px;
  font-weight: 300;
}

/* Gemeinsamer Site-Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header nav a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: 400;
}


.brand a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
.site-navigation {
  font-weight: 400;
  display: flex;
  gap: 1.4rem;
}


.site-navigation a.mobile-link {
  display: none;
}


/* Mobile default: nav zu */
@media (max-width: 989px) {
  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg, #fff);
    flex-direction: column;
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .2s ease;
    border-bottom: 1px solid rgba(0,0,0,.08);
    z-index: 10;
  }
  .site-navigation a {
    line-height: 34px;
  }

  .site-navigation a.mobile-link {
    display: block;
  }


  /* Offen */
  .site-navigation.is-open {
      max-height: 380px;
      padding: 10px 2rem 14px;

  }
}

/* Desktop: Button weg, Nav inline */
@media (min-width: 990px) {
  .menu-button { display: none; }
}

/* Burger-Button */
.menu-button {
  width: 40px;
  height: 22px;
  position: relative;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.menu-button .menu-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}

.menu-bar-top    { top: 0; }
.menu-bar-middle { top: 50%; transform: translateY(-50%); }
.menu-bar-bottom { bottom: 0; }

/* Offener Zustand (per Klasse auf Button) */
.menu-button.is-open .menu-bar-top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-button.is-open .menu-bar-middle {
  opacity: 0;
}
.menu-button.is-open .menu-bar-bottom {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Utility für Screenreader-Only (falls du brauchst) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}


/* Deck-Seite: Header fixieren */
body.deck .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   SLIDER / DECK
   ========================================================= */

.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.deck .slider {
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h) - var(--footer-h));
  overflow: hidden;
}

@media (max-width: 767px) {
  body.deck .slider {
    margin-top: var(--header-h);
    height: calc(100vh - var(--header-h) - var(--footer-h-mobile));
    overflow: hidden;
  }
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 1rem;
  overflow-y: auto;
  background: #f7f7f7;
}

@media (min-width: 768px) {
  .slide {
    padding: 2rem;
  }
}


.main-area {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .main-area {
    margin-top: 30px;
  }
}

.video-container {
  width: 100%;
  overflow: hidden;
  height: fit-content;
  border-radius: 6px;
  -webkit-box-shadow: 0px -1px 23px -9px rgba(0,0,0,0.4);
     -moz-box-shadow: 0px -1px 23px -9px rgba(0,0,0,0.4);
          box-shadow: 0px -1px 23px -9px rgba(0,0,0,0.4);
}


@media (min-width: 768px) {
  .video-container {
    border-radius: 24px;
  }
}



.text-container {
  width: 100%;
  padding: 24px 1rem;
}



@media (min-width: 768px) {
  .text-container {
    padding: 48px 0;
  }
}


/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--c-link);
  text-decoration: underline;
}
.breadcrumb .sep {
  opacity: .5;
}


video {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  video {
    border-radius: 24px;
  }
}



.main-text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5em;
  font-weight: 400;
}

@media (min-width: 768px) {
  .main-text {
    margin-top: 1.5rem;
  }
}


.main-text p {
  margin-bottom: 1.5em;
}

/* Projekt-Detail-Tabelle */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0 1rem 0;
}

.detail-table th,
.detail-table td {
  padding: 0.75rem 0;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.detail-table th {
  width: 25%;
  font-weight: 500;
  background: #f7f7f7;
}

/* Desktop Layout für Slides */
@media (min-width: 1400px) {
  .main-area {
    flex-direction: row;
  }

  .text-container {
    order: 1;
    width: 30%;
    padding-top: 0;
    padding-right: 48px;
  }

  .video-container {
    order: 2;
    width: 70%;
  }
}


/* ---------- Video skeleton ---------- */
.video-container {
  position: relative;
}

.video-container video {
  opacity: 0;
  transition: opacity .25s ease;
  display: block;
}

/* Shimmer layer */
.video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #e9e9e9;
  background-image: linear-gradient(90deg, #e9e9e9 0%, #f5f5f5 40%, #e9e9e9 80%);
  background-size: 200% 100%;
  animation: shimmer 2.2s infinite linear;
  z-index: 1;
}


@media (min-width: 768px) {
.video-container::before {
    border-radius: 24px;
  }
}

/* Hide skeleton when loaded */
.video-container.is-loaded::before {
  opacity: 0;
  animation: none;
  pointer-events: none;
  transition: opacity .25s ease;
}

.video-container.is-loaded video {
  opacity: 1;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}



/* Responsive Tabelle */
@media (max-width: 600px) {
  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }

  .detail-table tr {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
  }

  .detail-table th {
    padding: 0.5rem;
  }

  .detail-table td {
    padding: 0.5rem;
    border: none;
  }

  .detail-table td a {
    color: var(--c-link);
    text-decoration: underline;
  }
}

  /* ------- Meta-List (statt Tabelle) ------- */
  .meta-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1.5rem;
    row-gap: .6rem;
    margin: 2rem 0 0;
    font-size: 0.85rem;
    line-height: 1.265rem;
    align-items: start;
    align-content: start;
  }

  .teaching-meta {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .meta-list dt,
  .meta-list dd {
    align-self: start;     /* ensure individual items don’t override it */
  }

  .meta-list dt {
    font-weight: 400;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }

  .meta-list dd {
    margin: 0;
  }

.icon {
  margin-right: .4rem;
  font-size: .9em;
  opacity: .85;
  vertical-align: -0.1em;
  display: none!important;
}


/* =========================================================
   WORK-GRID (Startseite)
   ========================================================= */

.hero {
  max-width: var(--maxw);
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.hero h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  color: #333333;
}

.hero p {
  margin-top: 1rem;
  line-height: 2;
}

.hero a {
  color: var(--c-link);
  text-decoration: underline;
}


.work-intro {
  margin-top: 96px!important;
}

.work-intro h2 {
  margin-bottom: 24px;
}

.work-grid {
  max-width: var(--maxw);
  margin: 2rem auto 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

@media (min-width: 1200px) {
  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--gap);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .card {
    border-radius: 16px;
  }
}


.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 1rem 1.25rem 0.25rem;
  font-size: 20px;
  font-weight: 400;
}

.meta {
  margin: 0 1.25rem 0.5rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}

.teaser {
  margin: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444444;
}




.reference-topic {
    margin-bottom: 64px;
}

.reference-topic h4 {
    margin-bottom: 16px;
    font-weight: bold;
}

.reference-detail { 
    display: none;
    font-size: 16px;
    line-height: 26px;
    padding: 24px;
    background-color: #f9f9f9;
}

.reference-label { 
    width: 100%;
    background-color: transparent;
    text-align: left;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid #191919;
    padding: 16px;
    transition: 0.3s ease-in-out;
}

.reference-item:first-of-type { 
    border-top: 1px solid #191919;
    margin-top: 24px;
}


.reference-label:hover,
.reference-label.active {
  background: var(--c-bg-card);
} 


.reference-label .fa {
    margin-left: 32px;
    font-size: 28px;
 }





/* =========================================================
   FOOTER (Top = Slider-Nav; Bottom = Info schwarz)
   ========================================================= */

/* Sticky bottom for non-deck pages */
body:not(.deck) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Wrapper */
.site-footer {
  margin-top: auto;
}

/* ----- TOP (Slider-Nav & Back) ----- */
.footer-top {
  display: none;
  background: #fafafa;
  border-top: 1px solid #e3e3e3;
  padding: 0.75rem 2rem;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}



@media (min-width: 480px) {
  .footer-top {
    padding: 0.75rem 2rem;
    justify-content: center;
  }
}



.footer-top button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  background: var(--c-link);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.footer-top button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#progress {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.back-overview {
  color: var(--c-link);
  text-decoration: underline;
  white-space: nowrap;
}

/* ----- BOTTOM (Black Info) ----- */
.footer-bottom {
  background: #000;
  color: #fff;
  padding: 1.25rem 2rem;
}


 @media (max-width: 767px) {
  .footer-bottom {
    display: none;
  }
 }



.footer-bottom a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.footer-left {
  white-space: nowrap;
}

.footer-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.contact-links,
.legal-links {
  white-space: nowrap;
}

/* Deck-Seite: Footer fix + top-part sichtbar */
body.deck .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 25;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

body.deck .footer-top {
  display: flex;
}

/* ---------- Mobile Footer ---------- */
@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
  }

  /* Reihenfolge: top (nav), back, then info blocks already vertical */
}

/* =========================================================
   ACCESSIBILITY HELPERS
   ========================================================= */

.visually-hidden-focusable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden-focusable:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  z-index: 9999;
}




/* ---------- Generic sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 4rem auto 6rem;
  padding: 0 2rem;
}

.section-headline {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  color: #333;
  margin-bottom: 1.25rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .5rem;
}



/* ---------- Grid helper ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px,1fr));
  gap: var(--gap);
  margin-top: 2rem;
}

#skills .grid-2 {
  display: grid;
  gap: 1.5rem; /* oder dein gewünschter Abstand */
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}


/* Bei weniger Platz: 1 Spalte */
@media (max-width: 720px) {
  #skills .grid-2 {
    grid-template-columns: 1fr;
  }
}


/* ---------- Flat cards ---------- */
.card-flat {
  background: var(--c-bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

#experience .card-flat,
#teaching .card-flat,
#education .card-flat,
#more .card-flat {
  margin-top: 2rem;
}
 
.card-flat ul {
  margin-left: 1rem;
  font-size: 0.9em;
  line-height: 2em;
}

.card-flat h4 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-link);
  font-weight: 600;
}

.checklist strong {
  font-weight: 600;
}

/* ---------- Meta list reuse ---------- */
.teaching-meta dt {
  color: var(--c-muted);
  font-weight: 400;
}
.teaching-meta dd {
  margin-bottom: .6rem;
}


#education .detail-table {
  margin-top: 1rem;
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  background: var(--c-link);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  border: 2px solid var(--c-link);
  margin-top: 1rem;
}
/* Hover-/Focus-Zustand für den primären Button */
.btn:hover,
.btn:focus {
  background-color: rgba( var(--c-link-rgb), 0.85 ); /* leicht abdunkeln */
  opacity: 0.95;
  outline: none;
}

/* Link-Button bleibt unverändert */
.btn-link {
  color: var(--c-link);
  text-decoration: underline;
  font-size: 0.95rem;
}

/* Outline-Variante */
.btn.outline {
  display: inline-block;
  background-color: transparent;
  color: var(--c-link);
  border: 2px solid var(--c-link);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* Hover-/Focus-Zustand für Outline */
.btn.outline:hover,
.btn.outline:focus {
  background-color: var(--c-link);
  color: #fff;
  outline: none;
}



/* Responsive tweaks */
@media (max-width: 600px) {
  .section {
    margin-bottom: 3rem;
  }
}


.legal-section p {
  margin-bottom: 2rem;
}