/* ==========================================================================
   Apple-HIG Override — Fanvue Verzeichnis
   Grundlage: Apple Human Interface Guidelines (Typography, Layout, Color,
   Materials, Controls, Dark Mode, Accessibility).
   Wird nach style.css geladen und überschreibt nur Darstellung, nie Inhalte.
   ========================================================================== */

:root{
  color-scheme: dark;

  /* Typografie */
  --fvd-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
              "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Flächen (iOS-Dark-Palette) */
  --bg: #000000;
  --card: #1c1c1e;
  --card2: #2c2c2e;
  --card3: #3a3a3c;

  /* Text */
  --txt: #f5f5f7;
  --muted: rgba(235,235,245,.62);
  --muted2: rgba(235,235,245,.42);

  /* Linien */
  --line: rgba(84,84,88,.42);
  --line-strong: rgba(84,84,88,.68);

  /* Akzent */
  --acc: #0a84ff;
  --acc2: rgba(10,132,255,.85);
  --ok: #30d158;
  --warn: #ffd60a;

  /* Radien & Abstände */
  --r: 18px;
  --r-sm: 12px;
  --r-pill: 980px;
  --space: 8px;

  /* Bewegung */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 180ms;
}



*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility}
body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:var(--fvd-font);
  font-size:17px;
  line-height:1.47;
  letter-spacing:-.011em;
  font-variant-numeric:tabular-nums;
}
a{color:var(--acc); text-decoration:none; transition:color var(--dur) var(--ease)}
a:hover{text-decoration:none; color:var(--acc2)}
img{max-width:100%; display:block}

/* Fokus: sichtbar, aber ruhig (HIG Accessibility) */
:focus{outline:none}
:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(10,132,255,.55);
  border-radius:var(--r-sm);
}

.wrap{max-width:1240px; margin:0 auto; padding:0 24px}

/* ---------------------------------------------------------------- Kopfzeile */
.site-head{
  position:sticky; top:0; z-index:60;
  background:rgba(0,0,0,.72);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line);
}
.site-head .wrap{display:flex; align-items:center; gap:24px; height:52px}
.brand{
  font-size:17px; font-weight:600; letter-spacing:-.02em; color:var(--txt);
}
.brand em{font-style:normal; color:var(--muted)}
.site-head nav{
  margin-left:auto; display:flex; align-items:center; gap:22px;
  font-size:14px; letter-spacing:-.01em;
}
.site-head nav a{color:var(--muted)}
.site-head nav a:hover{color:var(--txt)}
.nav-cta{
  padding:7px 16px; border-radius:var(--r-pill);
  background:var(--acc); color:#fff !important; font-weight:500;
}
.nav-cta:hover{background:var(--acc2)}
.langsw, .themebtn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:32px; min-width:32px;
  border-radius:var(--r-pill); border:1px solid var(--line);
  background:transparent; color:var(--muted);
  font-size:12px; font-weight:500;
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.langbtn{padding:4px 9px; border-radius:var(--r-pill); font-size:12px; color:var(--muted)}
.langbtn.on{background:var(--card2); color:var(--txt)}

/* --------------------------------------------------------------------- Hero */
.hero{padding:64px 0 40px; text-align:center}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(32px, 4.6vw, 48px);
  line-height:1.06;
  font-weight:700;
  letter-spacing:-.025em;
}
.hero p{
  margin:0 auto 32px; max-width:620px;
  font-size:17px; line-height:1.5; color:var(--muted);
  letter-spacing:-.01em;
}
.hero .grad{color:var(--txt); background:none; -webkit-text-fill-color:currentColor}

/* Topbanner: ruhiger, gerundet, mit Scrim (Inhalte bleiben unverändert) */
.fvd-topbanner{margin:0 auto; max-width:1240px; padding:0 24px}
.fvd-topbanner img{
  width:100%; max-height:320px; object-fit:cover;
  border-radius:24px; border:1px solid var(--line);
}

/* ------------------------------------------------------------------ Formular */
.fsearch{
  background:var(--card); border:1px solid var(--line);
  border-radius:22px; padding:20px; max-width:880px; margin:0 auto;
}
.fsearch .row{display:flex; gap:10px; flex-wrap:wrap}
.fsearch .row + .row{margin-top:10px}
.fsearch input[type=text], .fsearch input[type=search], .fsearch select{
  background:var(--card2);
  border:1px solid var(--line);
  color:var(--txt);
  border-radius:var(--r-sm);
  min-height:44px;
  padding:10px 14px;
  font-family:inherit; font-size:16px; letter-spacing:-.01em;
  outline:none; flex:1; min-width:150px;
  transition:border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.fsearch input:focus, .fsearch select:focus{
  border-color:var(--acc); background:var(--card3);
  box-shadow:0 0 0 3px rgba(10,132,255,.18);
}
.fsearch .grow{flex:2.2; min-width:220px}
.chk{display:flex; align-items:center; gap:8px; min-height:44px; color:var(--muted); font-size:14px; padding:0 4px}

/* ------------------------------------------------------------------ Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 22px;
  border:0; border-radius:var(--r-pill);
  background:var(--acc); color:#fff;
  font-family:inherit; font-size:16px; font-weight:500; letter-spacing:-.01em;
  cursor:pointer;
  transition:background var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:hover{background:var(--acc2); text-decoration:none}
.btn:active{transform:scale(.98)}
.btn.ghost{
  background:transparent; color:var(--txt);
  border:1px solid var(--line-strong);
}
.btn.ghost:hover{background:var(--card2)}

/* -------------------------------------------------------------------- Stats */
.stats{
  display:grid; grid-template-columns:repeat(5, minmax(0,1fr));
  gap:12px; margin:40px 0 8px;
}
.stat{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); padding:18px 16px; text-align:center;
}
.stat b{display:block; font-size:24px; font-weight:600; letter-spacing:-.02em; line-height:1.2}
.stat span{display:block; margin-top:4px; font-size:13px; color:var(--muted); letter-spacing:-.005em}

/* --------------------------------------------------------------- Ergebniszeile */
.resline{
  display:flex; align-items:center; justify-content:space-between;
  margin:36px 0 18px; font-size:14px; color:var(--muted);
}

/* --------------------------------------------------------------------- Grid */
.grid{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr));
  gap:20px; margin:0 0 32px;
}

/* -------------------------------------------------------------------- Karten */
.cardwrap{position:relative}
.card{
  height:100%;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  transition:transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover{
  transform:translateY(-2px);
  border-color:var(--line-strong);
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}
.card > a{display:block; color:inherit}
.ava{
  width:100%; aspect-ratio:4/5; object-fit:cover;
  background:var(--card2);
}
.card .body{padding:14px 16px 16px}
.card .nm{
  font-size:16px; font-weight:600; letter-spacing:-.015em; color:var(--txt);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card .hd{
  margin-top:2px; font-size:13px; color:var(--muted2); letter-spacing:-.005em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card .meta{
  display:flex; align-items:center; gap:8px; margin-top:10px;
  font-size:12px; color:var(--muted);
}
.card .badges{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px}
.card .bio{
  margin-top:10px; font-size:13px; line-height:1.45; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.badge, .b4{
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 9px; border-radius:var(--r-pill);
  background:var(--card2); color:var(--muted);
  font-size:11px; font-weight:500; letter-spacing:.01em;
  border:1px solid var(--line);
}
.likes{color:var(--muted); font-size:12px}

/* Favoriten-Knopf: 44px Ziel (HIG) */
.favbtn{
  position:absolute; top:10px; right:10px; z-index:2;
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.18);
  color:#fff; font-size:15px; line-height:1;
  transition:background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.favbtn:hover{background:rgba(0,0,0,.62)}
.favbtn:active{transform:scale(.94)}

/* -------------------------------------------------------------------- Pager */
.pager{display:flex; align-items:center; justify-content:center; gap:8px; margin:8px 0 48px}
.pager a, .pager span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px; padding:0 16px;
  border-radius:var(--r-pill);
  border:1px solid var(--line); background:transparent;
  color:var(--muted); font-size:15px;
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pager a:hover{background:var(--card2); color:var(--txt)}
.pager .on, .pager [aria-current]{background:var(--card2); color:var(--txt); border-color:var(--line-strong)}

/* -------------------------------------------------------------------- Footer */
.site-foot{
  border-top:1px solid var(--line);
  padding:40px 0 56px; margin-top:24px;
  font-size:13px; color:var(--muted);
}
.site-foot a{color:var(--muted)}
.site-foot a:hover{color:var(--txt)}
.legal{margin-top:12px; font-size:12px; color:var(--muted2)}

/* ------------------------------------------------------------------ Responsiv */
@media (max-width:1180px){
  .grid{grid-template-columns:repeat(3, minmax(0,1fr))}
  .stats{grid-template-columns:repeat(3, minmax(0,1fr))}
}
@media (max-width:820px){
  body{font-size:16px}
  .wrap{padding:0 20px}
  .site-head nav{gap:14px; font-size:13px}
  .grid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px}
  .stats{grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px}
  .hero{padding:44px 0 28px}
  .fvd-topbanner{padding:0 20px}
  .fvd-topbanner img{max-height:220px; border-radius:18px}
}
@media (max-width:560px){
  .grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2, minmax(0,1fr))}
  .hero h1{font-size:30px}
  .site-head nav a:not(.nav-cta){display:none}
}

/* ------------------------------------------------------- Bewegung reduzieren */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important}
  .card:hover{transform:none}
}

/* Pills: höhere Spezifität, damit Theme-Pink nicht durchschlägt */
.card .badges .badge, .card .badges .b4, .card .badges .badge *,
.card .meta .badge, .card .meta .b4{
  background:rgba(255,255,255,.07); color:var(--muted);
  border:1px solid var(--line); border-radius:var(--r-pill);
  font-size:11px; font-weight:500; padding:3px 9px;
}
.card .meta .likes, .card .likes{color:var(--muted); font-size:12px; font-weight:400}
.card .meta .likes *, .card .likes *{color:inherit}

/* Mobile Kopfzeile: kein Umbruch, CTA bleibt rechts */
.site-head .wrap{flex-wrap:nowrap}
.brand{white-space:nowrap}
.site-head nav{flex-wrap:nowrap}
@media (max-width:560px){
  .brand{font-size:15px}
  .site-head .wrap{height:52px; gap:10px}
  .nav-cta{padding:6px 14px; font-size:13px}
  .fvd-topbanner{margin:12px auto 0}
}

/* Banner: feste Proportion verhindert Höhenkollaps und Layoutsprung */
.fvd-topbanner img{width:100%; height:auto; aspect-ratio:1280/512; object-fit:cover}
@media (max-width:820px){ .fvd-topbanner img{aspect-ratio:1280/560} }
