/* ==========================================================================
   Felix Cuts Films — Landingpage
   Ton: reduziert, technisch, JetBrains Mono durchgängig (siehe Logo-Paket).
   ========================================================================== */

/* Lokal gehostet statt über Google Fonts geladen — Google Fonts per CDN
   überträgt beim Seitenaufruf die IP-Adresse der Besucher an Google-Server,
   was ohne Einwilligung datenschutzrechtlich problematisch ist (siehe u.a.
   LG München I, Urt. v. 20.01.2022, Az. 3 O 17493/20). Eine Datei deckt alle
   drei genutzten Schnitte ab, da es sich um eine Variable-Font-Datei handelt. */
@font-face{
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

:root{
  --ink: #14231f;
  --paper: #fbfaf7;
  --white: #ffffff;

  --border: rgba(20,35,31,.14);
  --border-strong: rgba(20,35,31,.28);
  --muted: rgba(20,35,31,.58);
  --muted-2: rgba(20,35,31,.38);

  --col-w: 300px;
  --gap: 1px; /* Rasterlinien-Look wie im Wireframe */
  --content-max: 1040px; /* Seite wird ab hier zentriert, Rest bleibt weiß */

  color-scheme: light;
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
  margin: 0;
  height: 100%;
  background: var(--white); /* die weißen Balken links/rechts auf breiten Screens */
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,p{ margin: 0; }

.mono{ font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

.lbl{
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ph-inline{ color: var(--muted-2); }

/* ============================== Layout ============================== */

.page{
  display: flex; /* align-items:stretch (Standard) — Spalte und Hauptbereich gleich hoch, Footer schließen bündig ab */
  min-height: 100vh;
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--border); /* dünne Trennlinie zum weißen Rand */
}

/* ---- Linke Spalte ---- */
.col{
  width: var(--col-w);
  flex: none;
  border-right: 1px solid var(--border-strong);
  background: var(--paper);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.col-inner{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.blk{
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.logo-blk{
  padding: 20px 22px 19px;
  text-align: center;
}

.wordmark{
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em; /* Markenvorgabe Logo-Paket */
}
.wordmark .sep{
  margin: 0 .55em;
  color: var(--muted-2);
}

.profile-blk{
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.profile-img{
  width: 84px;
  flex: none;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: center 20%; /* Gesicht bleibt im Ausschnitt, auch in sehr flachen Boxen (Mobile) */
}
.name{
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .01em;
}
.role{
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty; /* verhindert einzelne verwaiste Wörter am Zeilenende, egal wie breit die Spalte ist */
}

.plain-list li{
  font-size: 12px;
  line-height: 1.85;
}

.contact-mail{
  display: block;
  font-size: 13px;
  word-break: break-word;
}
.contact-mail:hover{ text-decoration: underline; }
.contact-ig{
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.contact-ig:hover{ color: var(--ink); }

/* ---- Terminbuchung ---- */
.booking-blk{ padding-bottom: 16px; }

.booking-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.booking-nav{ display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.nav-btn{
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
  color: var(--muted);
}
.nav-btn:hover{ color: var(--ink); }

.cal-weekdays{
  display: grid;
  grid-template-columns: repeat(7,1fr);
  text-align: center;
  font-size: 8px;
  margin-bottom: 2px;
}
.cal-weekdays span{ padding: 2px 0; }

.cal-days{
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px 0;
  margin-bottom: 12px;
}
.cal-days button{
  aspect-ratio: 1;
  width: 100%;
  max-width: 34px; /* verhindert riesige Kacheln, wenn die Spalte (z.B. auf Mobile) sehr breit wird */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  border-radius: 3px;
  color: var(--ink);
}
.cal-days button.is-muted{ color: var(--muted-2); pointer-events: none; }
.cal-days button:hover:not(.is-muted){ background: var(--border); }
.cal-days button.is-selected{ background: var(--ink); color: var(--paper); }
.cal-days span.pad{ visibility: hidden; }

.book-cta{
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--ink);
  padding: 8px;
  font-size: 11px;
  border-radius: 3px;
  transition: background .15s ease, color .15s ease, opacity .15s ease, border-color .15s ease;
}
.book-cta:hover{ background: var(--ink); color: var(--paper); }
.book-cta:disabled{
  border-color: var(--border-strong);
  color: var(--muted-2);
  opacity: .55;
  cursor: not-allowed;
}
.book-cta:disabled:hover{ background: none; color: var(--muted-2); }

/* ---- Blog-Widget (linke Spalte, füllt den Freiraum über DE/EN) ---- */
.blog-widget{
  display: flex;
  flex-direction: column;
  flex: 1; /* nimmt den Restplatz oberhalb von .col-foot ein, wie vom Nutzer gewünscht */
  min-height: 64px;
}
.blog-widget .lbl a{ color: inherit; }
.blog-widget .lbl a:hover{ color: var(--ink); }
.blog-widget-post{
  display: block;
  margin-top: auto;
  margin-bottom: auto;
  text-decoration: none;
}
.blog-widget-post:hover .blog-widget-title{ text-decoration: underline; }
.blog-widget-title{
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.blog-widget-date{
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.blog-widget-empty{
  margin-top: auto;
  margin-bottom: auto;
  font-size: 12px;
  color: var(--muted-2);
}

.col-foot{
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--border); /* gleiche Farbe/Stärke wie die rechte Seite (main-foot, von der letzten Kartenreihe) */
}
.lang-toggle{ font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.lang-toggle:hover{ color: var(--ink); }
.impressum-link:hover{ color: var(--ink); }

/* ---- Rechte Seite ---- */
.main{
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh; /* gleich hoch wie die linke Spalte, damit beide Footer bündig abschließen */
  overflow: hidden;
}

.reel{
  position: relative;
  display: block;
  width: 100%;
  height: 20vh; /* nur noch Klick-Poster (Video läuft im Popup) — darf wieder kompakt sein */
  min-height: 150px;
  max-height: 220px;
  flex: none;
  border-bottom: 1px solid var(--border-strong);
  background: repeating-linear-gradient(45deg, rgba(20,35,31,.05) 0 10px, transparent 10px 20px);
  overflow: hidden;
  cursor: pointer;
}
.reel-poster{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}
.reel:hover .reel-poster{ transform: scale(1.02); filter: brightness(.92); }

.reel-play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20,35,31,.55);
  color: var(--paper);
  font-size: 20px;
  padding-left: 4px; /* optische Zentrierung des Dreiecks */
  transition: background .15s ease, transform .15s ease;
}
.reel:hover .reel-play{ background: rgba(20,35,31,.75); transform: translate(-50%,-50%) scale(1.08); }

.reel-overlay{
  position: absolute;
  left: 14px;
  bottom: 12px;
}
.reel-overlay .reel-count{
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  background: rgba(251,250,247,.85);
  padding: 4px 8px;
  border-radius: 3px;
}

.index-bar{
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px 20px;
  border-bottom: 1px solid var(--border-strong);
}
.index-controls{
  display: flex;
  align-items: center;
  gap: 18px;
}
.filters{
  display: flex;
  gap: 14px;
  font-size: 10.5px;
}
.filter{
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}
.filter:hover{ color: var(--ink); }
.filter.is-active{ color: var(--ink); border-bottom-color: var(--ink); }

.view-toggle{ display: flex; gap: 6px; }
.view-btn{
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  color: var(--muted-2);
  font-size: 12px;
}
.view-btn:hover{ color: var(--ink); }
.view-btn.is-active{ background: var(--border); color: var(--ink); }

.grid{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* kein eigener border-left: .col hat schon border-right an exakt der gleichen Stelle — sonst doppelte/dickere Linie */
  align-content: stretch; /* Extra-Höhe verteilt sich auf die Kartenreihen statt als leere Lücke zu stehen */
}
.grid.is-list{
  grid-template-columns: 1fr;
}

.card{
  cursor: pointer;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 120px;
  transition: background .15s ease;
}
/* letzte Spalte bekommt keinen eigenen border-right: die Seite hat dort schon eine Rahmenlinie (box-shadow um .page) — sonst doppelte/dickere Linie */
.card:nth-child(3n){ border-right: 0; }
.card:hover{ background: rgba(20,35,31,.03); }
.card.is-hidden{ display: none; }

.grid.is-list .card{
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border-right: 0; /* Liste ist einspaltig — jede Zeile ist "letzte Spalte" */
}
.grid.is-list .card-thumb-wrap{
  order: -1;
  width: 56px;
  height: 36px;
  flex: none;
  min-height: 0;
}
.grid.is-list .card-play{ display: none; } /* zu klein für das Icon in der Liste */
.grid.is-list .card-top{
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.grid.is-list .card-top .card-dur{ margin-left: auto; }
.grid.is-list .card-cat{ flex: none; width: 100px; text-align: right; }

.card-top{
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.card-num{ font-weight: 500; }
.card-dur{ color: var(--muted); font-size: 10px; }

.card-thumb-wrap{
  position: relative;
  flex: 1;
  min-height: 70px;
}
.card-thumb{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, rgba(20,35,31,.05) 0 6px, transparent 6px 12px);
  object-fit: cover; /* wirkt nur auf <img> — für den Platzhalter-Div ohne Wirkung, harmlos */
}

/* Kleines, dezentes Play-Symbol unten links auf jedem Thumbnail —
   signalisiert, dass sich dahinter ein Video verbirgt. */
.card-play{
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: var(--paper);
  font-size: 12px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); /* hält das Dreieck auch auf hellen Bildern lesbar — ganz ohne Kreis dahinter */
}

.card-cat{
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-foot{
  flex: none;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 20px; /* gleiches vertikales Padding wie .col-foot, damit beide Leisten bündig abschließen */
  /* kein eigener border-top: die letzte Kartenreihe hat schon border-bottom direkt darüber — sonst doppelte Linie */
}
.main-foot a:hover{ color: var(--ink); }
.main-foot span:last-child{ margin-left: auto; color: var(--muted-2); }

/* ============================== Responsive ============================== */

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  /* bei 2 Spalten ist Position 3 nicht mehr die letzte Spalte, sondern Position 2 (und 4, 6, ...) */
  .card:nth-child(3n){ border-right: 1px solid var(--border); }
  .card:nth-child(2n){ border-right: 0; }
}

@media (max-width: 760px){
  .page{ flex-direction: column; }
  .col{
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }
  .col-inner{ min-height: 0; }
  .main{ height: auto; max-height: none; overflow: visible; }
  .reel{ height: 46vw; min-height: 180px; }
  .grid{ flex: none; overflow-y: visible; grid-template-columns: repeat(2, 1fr); }
  .index-controls{ gap: 10px; }
}

@media (max-width: 460px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .profile-img{ width: 64px; }
}

/* ============================== Popups / Modals ============================== */

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(20,35,31,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.modal-overlay[hidden]{ display: none; }

.modal{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(20,35,31,.25);
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 13px;
  color: var(--muted);
  z-index: 2;
}
.modal-close:hover{ color: var(--ink); background: var(--border); }

/* ---- Projekt-Popup ---- */
.modal-project{
  max-width: 860px;
  transition: max-width .15s ease;
}
/* Hochkant-Video erkannt (siehe main.js) → schmaleres Popup, damit es nicht
   in einer riesigen Breitformat-Box mit viel Leerraum links/rechts hängt */
.modal-project.is-portrait{ max-width: 420px; }

.modal-media{
  position: relative;
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, rgba(20,35,31,.05) 0 10px, transparent 10px 20px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: aspect-ratio .15s ease;
}
.modal-project.is-portrait .modal-media{ aspect-ratio: 9/16; }

.modal-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* nie beschneiden — Hoch- wie Querformat komplett sichtbar */
  background: #000;
}
.modal-video[hidden]{ display: none; }
.modal-media-fallback{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.modal-info{ padding: 18px 22px; }
.modal-info-top{
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.modal-title{ font-size: 18px; margin-bottom: 6px; }

.modal-nav{
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.modal-nav-btn{ color: var(--muted); }
.modal-nav-btn:hover{ color: var(--ink); }
.modal-nav-btn:disabled{ opacity: .35; pointer-events: none; }

/* ---- Termin-Popup ---- */
.modal-booking{ max-width: 400px; padding: 22px; }
.modal-booking .modal-close{ top: 16px; right: 16px; }

.modal-booking-summary{
  margin: 14px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-size: 12px;
}

.modal-form{ display: flex; flex-direction: column; gap: 5px; }
.modal-form[hidden]{ display: none; }
.modal-form label{ margin-top: 10px; }
.modal-form label:first-of-type{ margin-top: 0; }

.modal-input{
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 8px 10px;
  resize: vertical;
}
.modal-input:focus{ outline: 2px solid var(--ink); outline-offset: 1px; }

select.modal-input{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%2314231f'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.modal-submit{
  margin-top: 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 10px;
  font-size: 12px;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.modal-submit:hover{ background: var(--ink); color: var(--paper); }

.modal-hint{
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted-2);
}
.modal-hint-error{ color: #b3261e; text-decoration: underline; cursor: pointer; }

.modal-submit:disabled{ opacity: .5; pointer-events: none; }

.modal-success{
  padding: 28px 4px 8px;
  text-align: center;
}
.modal-success-msg{
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 640px){
  .modal-project{ max-width: 100%; }
}

/* ==========================================================================
   Blog (blog/index.html + blog/<slug>.html) — wird von build-post.py erzeugt/
   aktualisiert. Bewusst auf Deutsch, wie Impressum/Datenschutz.
   ========================================================================== */
.blog-content{
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  line-height: 1.7;
  font-size: 13px;
}
.blog-content .back{ display: inline-block; margin-bottom: 32px; font-size: 11px; color: var(--muted); }
.blog-lang{ display: block; margin: -20px 0 32px; font-size: 11px; color: var(--muted); }
.blog-lang a{ text-decoration: underline; }
.blog-lang-current{ font-weight: 600; color: var(--ink); }
.blog-content h1{ font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.blog-content .stand{ font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.blog-content h2{ font-size: 16px; margin: 32px 0 8px; }
.blog-content h3{ font-size: 13px; margin: 24px 0 6px; font-weight: 600; }
.blog-content p{ margin: 12px 0; }
.blog-content ul, .blog-content ol{ margin: 12px 0; padding-left: 22px; }
.blog-content li{ margin: 4px 0; }
.blog-content a{ text-decoration: underline; }
.blog-content strong{ font-weight: 600; }
.blog-content blockquote{
  margin: 16px 0;
  padding-left: 14px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
}
.blog-content code{
  font-family: inherit;
  background: var(--border);
  padding: .1em .35em;
  border-radius: 3px;
  font-size: .92em;
}
.blog-content pre{
  background: var(--border);
  padding: 12px 14px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}
.blog-content pre code{ background: none; padding: 0; }
.blog-content img{ max-width: 100%; border-radius: 3px; margin: 16px 0; display: block; }
.blog-content hr{ border: none; border-top: 1px solid var(--border); margin: 30px 0; }

.blog-list{ list-style: none; margin: 24px 0 0; padding: 0; }
.blog-list li{ border-bottom: 1px solid var(--border); }
.blog-list a{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 2px;
  text-decoration: none;
}
.blog-list a:hover .blog-list-title{ text-decoration: underline; }
.blog-list-title{ font-size: 14px; }
.blog-list-date{ font-size: 11px; color: var(--muted); white-space: nowrap; }
.blog-list-empty{ font-size: 12px; color: var(--muted); margin-top: 20px; }
