/* =====================================================================
   style.css  -  Aussehen der Seite, nach deiner Charta v1.0
   Faustregel der Charta: 60 % Noir Encre, 30 % Gris Argent, 10 % Orange.
   Orange nur als Akzent (Knöpfe, Linien), nie als grosse Fläche.
   ===================================================================== */

/* ---------- 1. SCHRIFTEN ----------
   Die Dateien legst du selbst in den Ordner fonts/ (siehe LIESMICH.md).
   So werden keine Daten an Google geschickt (Datenschutz).
   Fehlen die Dateien, nimmt der Browser die Ersatzschriften unten. */
@font-face {
  font-family: 'Righteous';
  src: url('../fonts/Righteous-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Variable.woff') format('woff');
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

/* ---------- 2. FARBEN ----------
   Alle Farben der Charta an EINER Stelle. Ändern = überall geändert. */
:root {
  --orange:   #D84C21;  /* Orange Forge: Akzent, Knöpfe          */
  --gris:     #DCDEE5;  /* Gris Argent: helle Flächen, Linien    */
  --noir:     #0D0F14;  /* Noir Encre: Hintergrund, Text         */
  --braise:   #F08A63;  /* Braise: kleiner Text auf dunkel       */
  --rouille:  #A63717;  /* Rouille: kleiner Text auf hell        */
  --graphite: #2B303B;  /* Graphite: Karten auf dunkel           */
  --papier:   #F7F7F9;  /* Papier: sehr helle Flächen            */
  --blanc:    #FFFFFF;

  --font-title: 'Righteous', 'Trebuchet MS', system-ui, sans-serif;
  --font-text:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1280px;   /* maximale Breite des Inhalts */
}

/* ---------- 3. GRUNDLAGEN ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--papier);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 26px; }
p  { margin: 0 0 16px; }

/* Tastatur-Fokus gut sichtbar (Barrierefreiheit) */
:focus-visible { outline: 3px solid var(--braise); outline-offset: 3px; }

/* Container: zentriert, mit Rand links und rechts */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* ---------- 3b. DEKO-MOTIVE AUF DEN DUNKLEN ABSCHNITTEN ----------
   Zwei weisse Linienmotive (images/deco/deco-1.webp und deco-2.webp) liegen
   als Hintergrund hinter dem Inhalt der dunklen Abschnitte, mit 25 % Deckkraft.
   Im HTML bekommt ein Abschnitt die Klasse  "deco deco-a"  (Motiv 1)
   oder  "deco deco-b"  (Motiv 2). So wechseln sie sich ab.
   Stärke ändern: --deco-opacity (0 = unsichtbar, 1 = voll). */
:root { --deco-opacity: .25; }

.deco { position: relative; isolation: isolate; overflow: hidden; }
.deco::before {
  content: ''; position: absolute; inset: 0; z-index: -1;   /* hinter dem Inhalt */
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: var(--deco-opacity);
  pointer-events: none;                                      /* Klicks gehen durch */
}
.deco-a::before { background-image: url('../images/deco/deco-1.webp'); }
.deco-b::before { background-image: url('../images/deco/deco-2.webp'); }

/* ---------- 4. KOPFZEILE ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 15, 20, .94);
  border-bottom: 1px solid var(--graphite);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
/* Beim Klick auf einen Menüpunkt bleibt die Überschrift nicht unter der sticky Leiste hängen */
html { scroll-padding-top: 76px; scrollbar-gutter: stable; }
.header-menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.burger { display: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--font-title); font-size: 20px; letter-spacing: .04em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 16px; color: var(--gris); }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }

/* Sprachumschalter: der aktive Knopf ist gefüllt */
.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  font: 700 14px var(--font-text); letter-spacing: .08em;
  min-width: 44px; min-height: 44px;
  background: transparent; color: var(--gris);
  border: 2px solid var(--graphite); border-radius: 10px; cursor: pointer;
}
.lang-switch button:hover { border-color: var(--gris); }
.lang-switch button[aria-pressed="true"] { background: var(--gris); color: var(--noir); border-color: var(--gris); }

/* ---------- 5. WIEDERVERWENDBARE TEILE ---------- */
.eyebrow { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--braise); font-weight: 700; margin-bottom: 20px; }
.eyebrow-dark { color: var(--rouille); }          /* auf hellem Hintergrund */
.lead { font-size: 20px; color: var(--gris); max-width: 640px; }
.muted { color: var(--gris); font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 12px;
  font: 700 18px var(--font-text); text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--blanc); }
.btn-primary:hover { background: var(--rouille); }
.btn-outline { border-color: var(--gris); color: var(--papier); }
.btn-outline:hover { background: var(--gris); color: var(--noir); }

.text-link { color: var(--rouille); font-weight: 700; }
.text-link-light { color: var(--braise); font-weight: 700; }

/* Bild-Platzhalter ("slot"): zeigt das Bild, oder einen Hinweis, wenn es fehlt */
.slot { border-radius: 24px; overflow: hidden; background: var(--graphite); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 16px; gap: 4px; color: var(--gris); font-size: 15px; background: var(--graphite);
}
.placeholder b { font-size: 16px; color: var(--papier); word-break: break-all; }

/* ---------- 6. ABSCHNITTE ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-light { background: var(--gris); color: var(--noir); }
.section-paper { background: var(--papier); color: var(--noir); }

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.slot-hero { flex: 1 1 340px; min-width: 0; aspect-ratio: 4 / 5; background: none;}

/* Portfolio: Filterknöpfe + Raster */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.filters button {
  font: 700 16px var(--font-text); min-height: 44px; padding: 0 20px;
  background: var(--blanc); color: var(--noir);
  border: 2px solid var(--graphite); border-radius: 999px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); border-color: var(--noir); }

/* Raster: so viele Spalten wie passen, mindestens 260 px breit */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.work { margin: 0; }
.work button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--noir); border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.work button:hover img { transform: scale(1.03); }
.work figcaption { margin-top: 10px; font-weight: 700; font-size: 17px; }
.work.is-placeholder button { cursor: default; }
@media (prefers-reduced-motion: reduce) { .work img { transition: none; } html { scroll-behavior: auto; } }

/* Leistungen: Karten */
.cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.card { flex: 1 1 280px; min-width: 0; background: var(--graphite); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.card p { color: var(--gris); }
.price { margin: auto 0 0; font-family: var(--font-title); font-size: 30px; color: var(--braise) !important; padding-top: 16px; }

/* Manga + Über mich nebeneinander */
.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.two-col > .col { flex: 1 1 420px; min-width: 0; }
.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.manga-grid .slot, .manga-grid img { border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.badge { background: var(--gris); padding: 8px 16px; border-radius: 999px; font-size: 16px; }
.slot-about { aspect-ratio: 4 / 3; }

/* Kontaktformular */
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-weight: 500; font-size: 16px; }
.form input, .form textarea {
  font: 16px var(--font-text); color: var(--papier); background: var(--noir);
  border: 2px solid var(--graphite); border-radius: 10px; padding: 12px 14px;
}
.form input:focus, .form textarea:focus { border-color: var(--braise); outline: none; }
.form .btn { margin-top: 12px; }
.hp { position: absolute; left: -9999px; }       /* Honigtopf unsichtbar */

/* Footer */
.site-footer { border-top: 1px solid var(--graphite); color: var(--gris); font-size: 16px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px; }
.social { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
.main-nav a[hidden] { display: none; }

/* Lightbox (grosse Bildansicht) */
.lightbox { max-width: min(94vw, 1100px); max-height: 94vh; padding: 16px; border: 0; border-radius: 16px; background: var(--noir); color: var(--papier); }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lb-info { max-width: 640px; margin: 16px auto 4px; padding: 0 8px; }
.lb-info h3 { font-size: 28px; margin: 0 0 8px; }
.lb-info p, .lb-info .rich { margin: 0 0 8px; color: var(--gris); }
.lb-info .lb-cat { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--braise); font-weight: 700; }

/* Blätterleiste unter dem Portfolio-Raster */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.pager[hidden] { display: none; }
.pager button {
  width: 52px; height: 52px; font: 700 28px/1 var(--font-text);
  background: var(--noir); color: var(--blanc); border: 0; border-radius: 50%; cursor: pointer;
}
.pager button:hover:not(:disabled) { background: var(--graphite); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span { font-weight: 700; min-width: 8em; text-align: center; }
.lb-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  font-size: 28px; line-height: 1; background: var(--graphite); color: var(--papier);
  border: 0; border-radius: 50%; cursor: pointer;
}

/* ---------- LINKS IN DER BESCHREIBUNG (Grossansicht) ---------- */
.lb-info p a { color: var(--braise); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lb-info p a:hover { color: var(--blanc); }

/* ---------- FOOTER-LINK ZUM IMPRESSUM ---------- */
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-links a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--braise); }

/* ---------- IMPRESSUM / DATENSCHUTZ (legal.html) ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 48px); }
.legal-page h2 { font-size: clamp(22px, 3vw, 28px); margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--gris); line-height: 1.65; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--braise); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .back { display: inline-block; margin-bottom: 24px; }
.legal-page .todo { background: var(--graphite); border-left: 4px solid var(--orange); padding: 2px 8px; border-radius: 4px; }
.legal-page [data-lang-block][hidden] { display: none; }

/* ---------- BURGER-MENÜ (Tablet und Handy, bis 1024 px) ---------- */
@media (max-width: 1024px) {
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 48px; height: 48px; padding: 0; margin-left: auto;
    background: transparent; border: 2px solid var(--graphite); border-radius: 12px; cursor: pointer;
  }
  .burger:hover { border-color: var(--gris); }
  /* drei gleich lange Linien mit Abstand */
  .burger span { display: block; width: 24px; height: 3px; background: var(--gris); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .header-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px; margin: 0;
    background: var(--noir); border-bottom: 1px solid var(--graphite);
    padding: 8px 20px 24px; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-open .header-menu { display: flex; }
  .main-nav { flex-direction: column; flex-wrap: nowrap; gap: 0; font-size: 20px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--graphite); }
  .header-menu .lang-switch { justify-content: flex-start; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

/* ---------- LIGHTBOX: Zoom, Pfeile, Punkte, Icons ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }           /* Seite dahinter bleibt stehen */
.lightbox { overflow: auto; overscroll-behavior: contain; }
.lb-media { position: relative; }
.lb-stage { overflow: auto; max-height: 60vh; text-align: center; overscroll-behavior: contain; border-radius: 8px; }
.lb-stage img { max-width: 100%; max-height: 60vh; display: inline-block; vertical-align: top; cursor: zoom-in; }
.lb-stage.zoomed { cursor: zoom-out; }
.lb-stage.zoomed img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font: 700 30px/1 var(--font-text);
  background: rgba(13, 15, 20, .75); color: var(--blanc);
  border: 2px solid var(--graphite); border-radius: 50%; cursor: pointer;
}
.lb-nav:hover { background: var(--graphite); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-nav[hidden], .lb-dots[hidden], .lb-links[hidden] { display: none; }
.lb-stage.zoomed ~ .lb-nav { display: none; }
.lb-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.lb-dots button { width: 28px; height: 28px; padding: 0; background: transparent; border: 0; cursor: pointer; position: relative; }
.lb-dots button::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--graphite); }
.lb-dots button[aria-current="true"]::after { background: var(--orange); }
.lb-info .rich p:last-child { margin-bottom: 8px; }
.lb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--graphite); color: var(--gris); font-size: 16px; }

/* Icon-Knöpfe (Lightbox und Manga) */
.icon-links { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-links[hidden] { display: none; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--graphite); border: 2px solid var(--graphite);
}
.icon-link:hover { border-color: var(--orange); }
.icon-link img { width: 28px; height: 28px; }

/* Zähler "1/3" auf Kacheln mit mehreren Bildern */
.work button { position: relative; }
.work-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(13, 15, 20, .8); color: var(--blanc);
  font: 700 13px var(--font-text); letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}
.work-count[hidden] { display: none; }

/* Hinweis zum Wischen: nur auf Touch-Geräten */
.swipe-hint { display: none; text-align: center; color: var(--rouille); font-size: 15px; margin: -12px 0 16px; }
@media (pointer: coarse) { .swipe-hint:not([hidden]) { display: block; } }

/* Absätze in Texten (data-rich) */
.rich p { margin: 0 0 14px; }
.rich p:last-child { margin-bottom: 0; }
.col .rich { margin-bottom: 16px; }

/* Karte "Spontane Idee?" */
.card-idea { border: 2px dashed var(--orange); background: transparent; }
.card-idea .btn { margin-top: auto; align-self: flex-start; }
.card-idea p { margin-bottom: 20px; }

.lb-inquire { margin-top: 16px; }
.lb-inquire[hidden] { display: none; }
