/* =====================================================================
   isiomedia — style.css
   Alle Farben, Abstände, Radien zentral in :root (DSGVO: keine Externals)
   ===================================================================== */

/* ---- Inter Variable Font lokal (alle Gewichte 100–900, DSGVO-konform) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2'),
       url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2'),
       url('fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
}

:root {
  /* Farben — Werte aus den Mockups */
  --bg:            #f0f0f3;
  --surface:       #ffffff;
  --surface-2:     #f6f6f9;
  --ink:           #16171c;
  --ink-soft:      #3d4047;
  --muted:         #71757e;
  --muted-2:       #9a9ea6;
  --line:          #e6e6ec;
  --line-2:        #ececf1;

  --accent:        #0151f9;
  --accent-ink:    #0040d4;
  --accent-tint:   #e0efff;
  --accent-tint-2: #f0f7ff;

  --label-bg:      rgba(20, 21, 26, .62);
  --label-ink:     #ffffff;

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Display-Schrift für Hero-Titel — zum Testen hier wechseln:
     Option A (dünn, geometrisch):  'Helvetica Neue', Helvetica, Arial, sans-serif
     Option B (editorial, serifenlos leicht):  system-ui, -apple-system, sans-serif
     Option C (elegant, Serif):  Georgia, 'Palatino Linotype', serif            */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Radien */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Abstände */
  --gap: 16px;
  --pad: 40px;
  --sidebar-w: 264px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(20,21,26,.05);
  --shadow-md: 0 8px 30px rgba(20,21,26,.08);
  --shadow-lg: 0 30px 80px rgba(20,21,26,.22);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------------------------------- Reset --------------------------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Icons */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sichtbarer Fokus überall (A11y) */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-Link */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ------------------------------- Brand/Logo ------------------------------- */
.brand { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: .14em; color: var(--ink); }
.brand-accent { color: var(--accent); }
.brand-sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.brand--logo { display: block; }
.brand-logo { display: block; width: 100%; height: auto; max-width: 200px; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

/* ------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn .ico { width: 16px; height: 16px; stroke-width: 2; }
.btn-outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--muted-2); }
.btn-dark { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-dark:hover { background: #000; }

/* ================================ LAYOUT ================================= */
.layout { min-height: 100vh; }

/* -------------------------------- Sidebar -------------------------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--line);
  z-index: 60;
}
.sidebar-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 30px 22px 26px;
}
.sidebar .brand { margin: 6px 6px 30px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px 11px 18px; border-radius: var(--r-sm);
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  position: relative; overflow: hidden;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 2px 2px 0; background: transparent;
  transition: background .2s var(--ease), top .2s var(--ease), bottom .2s var(--ease);
}
.nav-item .ico { color: var(--muted); transition: color .15s var(--ease); }
.nav-item:hover { background: var(--surface-2); }
.nav-item.is-active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent); font-weight: 600;
  animation: navComboIn .2s var(--ease);
}
.nav-item.is-active::before {
  background: var(--accent);
  top: 15%; bottom: 15%;
  box-shadow: 1px 0 8px color-mix(in srgb, var(--accent) 40%, transparent);
}
.nav-item.is-active .ico { color: var(--accent); }
@keyframes navComboIn {
  from { background: transparent; transform: translateX(-4px); opacity: .6; }
  to   { background: color-mix(in srgb, var(--accent) 10%, transparent); transform: translateX(0); opacity: 1; }
}

.lang-switch { display: flex; gap: 6px; margin: 18px 6px 0; font-size: 13px; font-weight: 600; }
.lang-switch a { padding: 4px 8px; border-radius: var(--r-xs); color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--ink); }

.sidebar-foot { margin-top: auto; padding: 18px 6px 0; }
.social { display: flex; gap: 16px; margin-bottom: 16px; }
.social a { color: var(--ink); display: inline-flex; }
.social .ico { width: 19px; height: 19px; }
.social a:hover { color: var(--accent); }
.copy { font-size: 11px; line-height: 1.5; color: var(--muted-2); }

/* ----------------------------- Mobile topbar ----------------------------- */
.mobilebar {
  display: none;
  position: sticky; top: 0; z-index: 55;
  align-items: center; justify-content: space-between;
  padding: 14px 18px; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand--bar .brand-name { font-size: 20px; }
.brand--bar .brand-logo { max-width: 160px; }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.scrim { position: fixed; inset: 0; background: rgba(20,21,26,.42); z-index: 58; }

/* --------------------------------- Main --------------------------------- */
.main {
  margin-left: var(--sidebar-w);
  padding: 26px var(--pad) 0;
  max-width: 1380px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 8px; }

/* Lang-Bar + Theme-Toggle (Topbar & Mobilebar) */
.lang-bar {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-sm); overflow: hidden;
}
.lang-btn {
  padding: 7px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: transparent; border: 0;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn[aria-current="true"] { background: var(--surface-2); color: var(--ink); }
.lang-btn:hover:not([aria-current="true"]) { color: var(--ink-soft); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); box-shadow: var(--shadow-sm);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted-2); }

.mobilebar-right { display: flex; align-items: center; gap: 8px; }

.hero { margin: 14px 2px 48px; max-width: 820px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 300;
  line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }
.hero-sub { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 560px; }

/* ------------------------------ Filterleiste ----------------------------- */
.filterbar-wrap { position: relative; }
.filterbar {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin: 0 2px 26px;
}
.filter-pill {
  padding: 9px 17px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.filter-pill:hover { border-color: var(--muted-2); }
.filter-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ===================== KATEGORIE-INTRO ===================================== */
.cat-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--accent);
  margin-bottom: 26px;
  opacity: 1;
  transition: opacity .18s var(--ease);
}
.cat-intro.is-out { opacity: 0; }
.cat-intro.is-global { border-left: none; padding-left: 0; }

/* ===================== MASONRY-FEED (Grid-Span-Ansatz) ==================== */
.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  grid-auto-rows: 8px;            /* Basis-Einheit; JS berechnet span je Kachel */
  align-items: start;
  min-height: 80vh;               /* Reserviert Platz vor JSON-Load → reduziert CLS */
  padding-bottom: 56px;
}
.feed-loading { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }
.feed-item { grid-row-end: span 40; }   /* Default bis JS rechnet */
.feed-item.is-out { opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .17s var(--ease), transform .17s var(--ease); pointer-events: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.feed-item.is-in { animation: cardIn .28s var(--ease) both; }

.card {
  position: relative; display: block;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(20,21,26,.10);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-media { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-img, .card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 12px; border-radius: var(--r-xs);
  background: var(--label-bg); color: var(--label-ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: .01em;
  backdrop-filter: blur(4px);
}
.card-play {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: rgba(20,21,26,.55); color: #fff; backdrop-filter: blur(4px);
}
.card-play .ico { width: 16px; height: 16px; }

/* Progressive Enhancement: natives Masonry nur wo stabil (Safari Mitte 2026).
   JS erkennt Support und überspringt dann die span-Berechnung. */
@supports (grid-template-rows: masonry) {
  .feed { grid-template-rows: masonry; grid-auto-rows: auto; }
  .feed-item { grid-row-end: auto; }
}

/* ============================== FOOTER-BAND ============================== */
.band {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center;
  margin-top: 34px; padding: 26px 30px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.band-left { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
.portrait { width: 120px; height: 120px; border-radius: var(--r-md); flex: none; }
.band-text { display: flex; flex-direction: column; gap: 8px; }
.band-claim { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.band-sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.services li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 20px 12px; border-right: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; list-style: none; }
.svc-ico { color: var(--ink-soft); }
.svc-ico .ico { width: 26px; height: 26px; stroke-width: 1.4; }

/* ============================== SITE-FOOTER ============================== */
.site-footer {
  margin-top: auto; padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-size: 11px; color: var(--muted-2); margin: 0; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 11px; color: var(--muted-2); }
.footer-nav a:hover { color: var(--muted); }

/* ========================== SCROLL-TO-TOP ============================ */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: var(--r-pill); color: var(--muted);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), color .15s var(--ease);
  cursor: pointer;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { color: var(--ink); }

/* ========================== IMAGE ZOOM OVERLAY ====================== */
.img-zoom-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.90);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: zoomFadeIn .15s var(--ease);
}
@keyframes zoomFadeIn { from { opacity: 0 } to { opacity: 1 } }
.img-zoom-content {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 96vw; max-height: 96vh;
}
.img-zoom-content img {
  max-width: 100%; max-height: calc(96vh - 36px);
  object-fit: contain; user-select: none;
  border-radius: var(--r-md);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.img-zoom-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: none;
  border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer;
  transition: background .15s;
}
.img-zoom-close:hover { background: rgba(255,255,255,.22); }
.img-zoom-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: none;
  border-radius: 50%; color: #fff; cursor: pointer;
  transition: background .15s;
}
.img-zoom-prev { left: 16px; }
.img-zoom-next { right: 16px; }
.img-zoom-nav:hover { background: rgba(255,255,255,.26); }
.img-zoom-counter {
  color: rgba(255,255,255,.65); font-size: 12px; pointer-events: none;
  font-family: inherit; letter-spacing: .04em;
}
.modal-main > img.zoomable { cursor: zoom-in; }

/* ================================ MODAL ================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 30px;
  background: rgba(18,19,24,.55); backdrop-filter: blur(3px);
  animation: overlayIn .2s var(--ease);
  overscroll-behavior: none;
}
@keyframes overlayIn { from { opacity: 0; } }
.modal {
  width: min(1080px, 100%); max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px);
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalIn .26s var(--ease);
  outline: none;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-2); flex: none;
}
.modal-back {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 10px; border-radius: var(--r-pill);
  background: transparent; border: 0; font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.modal-back:hover { background: var(--surface-2); }
.modal-head-right { display: flex; align-items: center; gap: 10px; }
.modal-newtab { padding: 9px 15px; font-size: 13.5px; }

.share-wrap { position: relative; }
.share-popover {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  min-width: 188px; padding: 6px;
  animation: modalIn .15s var(--ease);
}
.share-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; width: 100%; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; text-align: left; white-space: nowrap;
}
.share-option:hover { background: var(--surface-2); }
.share-option .ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); }
.modal-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.modal-x:hover { background: var(--surface-2); }

.modal-body {
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 0;
  overflow: hidden; min-height: 0;
}

/* Galerie-Seite */
.modal-gallery {
  display: grid; grid-template-columns: 1fr 108px; gap: 14px;
  padding: 22px; min-height: 0; overflow: hidden;
}
.modal-main {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2);
  align-self: start;
  padding: 16px;
}
.modal-main > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 262px);
  object-fit: contain;
  object-position: top center;
}
.modal-main video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 192px);
  object-fit: contain;
}
.modal-thumbs {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
}
.thumb {
  position: relative; flex: none; width: 88px; aspect-ratio: 1 / 1;
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface-2); padding: 0;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }
.thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20,21,26,.35); color: #fff;
}
.thumb-play .ico { width: 18px; height: 18px; }
.thumb-web {
  position: absolute; top: 5px; right: 5px;
  background: var(--accent); color: #fff; border-radius: 4px;
  padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  line-height: 16px;
}

/* Kein Thumbstrip wenn nur ein Medium */
.modal-gallery.no-thumbs { grid-template-columns: 1fr; }
.modal-gallery.no-thumbs #modal-thumbs { display: none; }

/* Website-Preview-Frame */
.modal-main.has-webseite {
  display: block; overflow: visible; background: transparent;
  padding: 0;
}
.modal-gallery.has-webseite-demo { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.webseite-wrap {
  width: 100%; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
}
.webseite-frame-wrap { width: 100%; overflow: hidden; position: relative; }
.webseite-iframe { border: none; display: block; position: absolute; top: 0; left: 0; }

/* Info-Seite */
.modal-info {
  padding: 28px 30px; overflow-y: auto; min-height: 0;
  border-left: 1px solid var(--line-2);
}
.modal-eyebrow { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.modal-title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.modal-desc { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Webseite-Link im Info-Panel */
.modal-web-preview { margin-top: 14px; }
.modal-cta { margin-top: 10px; }
.modal-web-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; transition: opacity .18s;
}
.modal-web-link:hover { opacity: .75; }

.rule { border: 0; border-top: 1px solid var(--line-2); margin: 26px 0; }
.modal-h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.overview { display: grid; gap: 16px; margin-bottom: 26px; }
.ov-row { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.ov-ico { color: var(--muted); margin-top: 1px; }
.ov-ico .ico { width: 20px; height: 20px; stroke-width: 1.7; }
.ov-k { font-size: 12px; color: var(--muted-2); }
.ov-v { font-size: 14.5px; font-weight: 600; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-soft); }

.cta { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.cta .ico { width: 18px; height: 18px; }

body.modal-open { overflow: hidden; overscroll-behavior: none; }

/* ============================== RESPONSIVE ============================== */

/* Mittleres Desktop → 2 Spalten */
@media (max-width: 1180px) {
  .feed { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --pad: 26px; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg); border-right: 0;
  }
  .sidebar.is-open { transform: translateX(0); }
  .mobilebar { display: flex; }
  .main { margin-left: 0; padding-top: 18px; padding-bottom: 24px; }
  .topbar { display: none; }
  .feed { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; gap: 0; }
  .services { border-left: 0; border-top: 1px solid var(--line); }

  /* Modal gestapelt — einheitlicher Scroll (display:block vermeidet flex/min-height Konflikte) */
  .modal { max-height: 100vh; max-height: 100dvh; overflow-y: auto; display: block; overscroll-behavior-y: contain; }
  .modal-head { position: sticky; top: 0; z-index: 2; background: var(--surface);
    display: flex; align-items: center; justify-content: space-between; }
  .modal-body { display: block; }
  .modal-gallery { display: block; padding: 16px; }
  .modal-main { display: block; height: auto; overflow: visible; padding: 14px; }
  .modal-main > img { width: 100%; height: auto; max-height: 44vh; object-fit: contain; }
  .modal-main video { width: 100%; height: auto; max-height: 44vh; object-fit: contain; }
  .modal-thumbs {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 10px 0 4px; padding-right: 0;
  }
  .thumb { width: 68px; height: 68px; }
  .modal-info { border-left: 0; padding: 18px 18px 32px; }
  /* Sticky CTA unten */
  .cta {
    position: sticky; bottom: 0;
    margin: 14px -18px -32px; width: calc(100% + 36px);
    border-radius: 0; padding: 16px;
    box-shadow: 0 -8px 24px rgba(20,21,26,.10);
  }
}

/* Webseite-Preview Mobile — Mindesthöhe als Fallback wenn applyScale zu früh feuert */
@media (max-width: 900px) {
  .webseite-frame-wrap { min-height: 220px; }
}

/* Mobile */
@media (max-width: 560px) {
  :root { --pad: 16px; --gap: 12px; }
  .card-label { display: none; }
  .feed { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .filterbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px;
    scrollbar-width: none; }
  .filterbar::-webkit-scrollbar { display: none; }
  .filter-pill { flex: none; }
  .filterbar-wrap::after {
    content: ''; position: absolute; right: -16px; top: 0; bottom: 26px;
    width: 48px; pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg));
  }
  .band { padding: 20px 18px; gap: 0; }
  .band-left { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .portrait { width: 64px; height: 64px; border-radius: var(--r-sm); }
  .band-claim { font-size: 17px; }
  .band-sub { font-size: 13px; }
  .services {
    grid-template-columns: repeat(4, 1fr); border-left: 0;
    border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
  }
  .services::-webkit-scrollbar { display: none; }
  .services li { min-width: 80px; padding: 14px 8px; gap: 8px; font-size: 11.5px; }
  .svc-ico .ico { width: 20px; height: 20px; }
  .site-footer { flex-direction: column; align-items: center; gap: 8px; }
  .modal-overlay { padding: 0; }
  .modal { border-radius: 0; max-height: 100vh; max-height: 100dvh; }
  .modal-newtab { display: none; }
  .modal-head { padding: 10px 12px; }
  .back-detail { display: none; }
  .modal-share span { display: none; }
}

/* Platzhalter-Stil (Portrait / fehlende Bilder) */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 10px, rgba(0,0,0,0) 10px 20px),
    linear-gradient(135deg, #d9dbe2, #c3c6d0);
  display: grid; place-items: center;
}
.ph span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  color: rgba(20,21,26,.5); letter-spacing: .04em; }

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =================== BEFORE / AFTER SLIDER =================== */
.compare-wrap {
  position: relative;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
  line-height: 0;
  background: var(--surface-2);
}
.compare-base {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 262px);
}
.compare-top {
  position: absolute;
  top: 0; left: 0;
  /* Dimensionen per JS nach Bildload gesetzt */
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}
.compare-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--split, 50%);
  transform: translateX(-50%);
  width: 3px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 14px rgba(0,0,0,.35);
  pointer-events: none;
  will-change: left;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.compare-knob .ico { width: 18px; height: 18px; stroke-width: 2; }
.compare-label {
  position: absolute; bottom: 14px;
  padding: 5px 11px; border-radius: var(--r-xs);
  background: var(--label-bg); color: var(--label-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(4px); pointer-events: none;
  line-height: 1.4;
}
.compare-label-l { left: 14px; }
.compare-label-r { right: 14px; }

/* ====================== REFERENZ-BILD ======================== */
.referenz-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.referenz-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 262px);
  object-fit: contain;
  object-position: top center;
}
.referenz-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(20, 21, 28, 0.72);
  color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  pointer-events: none;
  line-height: 1;
}
.thumb-referenz {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  background: rgba(20,21,28,.75);
  color: rgba(255,255,255,.85);
  font-size: 9px; font-weight: 700; letter-spacing: .05em;
  padding: 2px 5px; border-radius: 3px;
  pointer-events: none; line-height: 1.4;
}

/* ========================= DARK MODE ========================= */
[data-theme="dark"] {
  --bg:            #16171c;
  --surface:       #1e1f27;
  --surface-2:     #252733;
  --ink:           #eeeef2;
  --ink-soft:      #bfc2cc;
  --muted:         #8a8d97;
  --muted-2:       #575a65;
  --line:          #252730;
  --line-2:        #1e1f27;
  --label-bg:      rgba(240,240,243,.10);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.35);
  --shadow-md:     0 8px 30px rgba(0,0,0,.45);
  --shadow-lg:     0 30px 80px rgba(0,0,0,.65);
  /* isiomedia Blue tint im Dark Mode */
  --accent-tint:   #001660;
  --accent-tint-2: #000e40;
}
[data-theme="dark"] .filter-pill {
  background: var(--surface-2);
  border-color: #383b47;
}
[data-theme="dark"] .nav-item.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
[data-theme="dark"] .lang-bar,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .btn-outline {
  background: var(--surface-2);
  border-color: #383b47;
}
[data-theme="dark"] .sidebar {
  background: #09090b;
  border-right-color: #1e1f27;
}
[data-theme="dark"] .mobilebar {
  background: rgba(22,23,28,.92);
}
[data-theme="dark"] .modal-overlay {
  background: rgba(8,9,12,.65);
}

/* ====================== AKZENTFARBEN ====================== */
[data-accent="violet"] {
  --accent:        #7118ee;
  --accent-ink:    #5e12cc;
  --accent-tint:   #ede8fd;
  --accent-tint-2: #f5f1ff;
}
[data-theme="dark"][data-accent="violet"] {
  --accent-tint:   #1e0d42;
  --accent-tint-2: #140930;
}

[data-accent="green"] {
  --accent:        #15bf72;
  --accent-ink:    #10a660;
  --accent-tint:   #d6f8eb;
  --accent-tint-2: #edfdf6;
}
[data-accent="orange"] {
  --accent:        #f97316;
  --accent-ink:    #e86810;
  --accent-tint:   #ffedd5;
  --accent-tint-2: #fff7ed;
}
[data-accent="blue"] {
  --accent:        #3b82f6;
  --accent-ink:    #2563eb;
  --accent-tint:   #dbeafe;
  --accent-tint-2: #eff6ff;
}

/* Tints im Dark Mode pro Akzentfarbe */
[data-theme="dark"][data-accent="green"] {
  --accent-tint:   #0c2d1e;
  --accent-tint-2: #071d12;
}
[data-theme="dark"][data-accent="orange"] {
  --accent-tint:   #2c1a08;
  --accent-tint-2: #1c1005;
}
[data-theme="dark"][data-accent="blue"] {
  --accent-tint:   #0f1f42;
  --accent-tint-2: #09142a;
}

/* ==================== THEME SWITCHER UI ==================== */
.theme-switcher {
  margin: 16px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theme-mode-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  width: 100%; text-align: left;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.theme-mode-btn:hover { border-color: var(--muted-2); color: var(--ink); }
.theme-mode-btn .ico { color: var(--muted); flex-shrink: 0; }

.accent-swatches {
  display: flex; gap: 8px; padding: 0 2px; align-items: center;
}
.swatch {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c);
  border: 2.5px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: transform .15s var(--ease), outline-color .15s var(--ease);
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.18); }
.swatch.is-active {
  outline-color: var(--ink);
  transform: scale(1.1);
}

/* ==================== UNTERSEITEN (Über / Kontakt) ==================== */

/* Subpage-Hero: Text links, Bild rechts */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 14px 2px 44px;
}
.page-hero-text { display: flex; flex-direction: column; gap: 0; }
.page-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px); font-weight: 300;
  line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin: 0;
}
.page-hero-img {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
}
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-img .ph { width: 100%; height: 100%; }

/* Über-Seite */
.about-section { max-width: 760px; margin-bottom: 44px; }
.about-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 6px; display: block; }
.about-section-h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 20px; line-height: 1.3; }
.about-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; margin-bottom: 36px; }
.service-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.service-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; display: block; }
.service-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.service-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.about-approach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; margin-bottom: 36px; }
.approach-item { display: flex; gap: 14px; align-items: flex-start; }
.approach-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.approach-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.approach-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.about-body { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.about-body p { font-size: 16px; line-height: 1.72; color: var(--ink-soft); margin: 0; }

.about-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.pillar {
  padding: 20px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.pillar-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 7px; }
.pillar-text { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

.about-note {
  padding: 16px 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0;
}

/* Kontakt-Seite */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px;
  align-items: start; max-width: 1100px; margin-bottom: 44px;
}
.contact-intro { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 26px; }
.contact-hints { display: flex; flex-direction: column; gap: 16px; }
.contact-hint {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--muted); line-height: 1.55;
}
.hint-ico { width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }

/* Formular */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-label .req { color: var(--accent); margin-left: 2px; }
.form-field {
  appearance: none; -webkit-appearance: none;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface-2);
  font: inherit; font-size: 15px; color: var(--ink);
  outline: none; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.form-field::placeholder { color: var(--muted-2); }
textarea.form-field { resize: vertical; min-height: 128px; line-height: 1.55; }

.form-upload-label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1.5px dashed var(--line);
  border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 14px; color: var(--muted); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.form-upload-label:hover { border-color: var(--muted-2); background: var(--bg); }
.form-upload-label .ico { flex-shrink: 0; color: var(--muted-2); }
.form-upload-label input[type="file"] {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.form-dsgvo {
  margin: 18px 0 20px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 12.5px; color: var(--muted); line-height: 1.55;
}
.form-required-note { font-size: 12px; color: var(--muted); text-align: right; margin: 0 0 14px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--accent);
}
.form-check a { color: var(--accent); }
.btn-submit { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

/* Footer Legal-Leiste */
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-legal a:hover { color: var(--ink); }

/* Legal-Seiten (Impressum / Datenschutz / Projektbedingungen) */
.legal-content {
  max-width: 740px;
  margin-bottom: 44px;
}
.legal-content h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  margin: 36px 0 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 15px; font-weight: 700;
  margin: 24px 0 8px; color: var(--ink);
}
.legal-content p {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
  margin: 0 0 12px;
}
.legal-content a { color: var(--accent); }
.legal-content ul {
  list-style: disc; padding-left: 22px;
  margin: 0 0 14px;
}
.legal-content ul li {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
  margin-bottom: 4px;
}
.legal-stand {
  display: inline-block; margin-bottom: 32px;
  font-size: 12.5px; color: var(--muted);
  padding: 6px 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}

/* Responsive Unterseiten */
@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-img { aspect-ratio: 16 / 7; }
  .about-pillars { grid-template-columns: repeat(2, 1fr); }
  .about-services { grid-template-columns: 1fr; }
  .about-approach { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 20px 18px; }
}
@media (max-width: 560px) {
  .page-title { font-size: 26px; }
  .about-pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==================== DATENSCHUTZ-MODAL ==================== */
.dsgvo-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 800;
  background: rgba(20, 21, 26, .55);
  overflow-y: auto;
  padding: 40px 16px;
}
.dsgvo-modal-overlay.is-open { display: block; }
.dsgvo-modal {
  background: var(--surface);
  border-radius: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 36px 40px;
  position: relative;
}
.dsgvo-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.dsgvo-modal-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0; }
.dsgvo-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 6px; border-radius: 8px;
  line-height: 0; transition: color .15s, background .15s; flex-shrink: 0;
}
.dsgvo-modal-close:hover { color: var(--ink); background: var(--surface-2); }
.dsgvo-modal-close svg { width: 20px; height: 20px; }
.dsgvo-link {
  display: inline; background: none; border: none; padding: 0;
  color: var(--accent); cursor: pointer; font: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.dsgvo-link:hover { color: var(--accent-ink); }
@media (max-width: 560px) {
  .dsgvo-modal { padding: 20px 18px 28px; }
  .dsgvo-modal-overlay { padding: 16px 8px; }
}

/* ===================== FORM-STATUS-BANNER ===================== */
.form-status {
  margin: 16px 0 0; padding: 14px 16px;
  border-radius: var(--r-md); font-size: 15px; line-height: 1.45;
  border: 1px solid var(--line);
}
.form-status.is-success {
  background: rgba(34, 153, 84, .10);
  border-color: rgba(34, 153, 84, .35);
  color: #1e7d45;
}
.form-status.is-error {
  background: rgba(200, 50, 50, .08);
  border-color: rgba(200, 50, 50, .32);
  color: #b23232;
}
