/* ==========================================================================
   harperscheidt.de – Frontend
   Four design worlds driven by CSS custom properties:
   mix (default) · travel (Reisen & Camping, istrischer Stil) · security (IT & Security) · bike (Bikepark)
   No external fonts or CDNs – system font stacks only (DSGVO-friendly).
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --f-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --f-mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --f-cond: "Bahnschrift", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif-condensed, sans-serif;

  --c-travel: #e8875a;  --c-travel-2: #3fb0bd;   /* Terrakotta-Dach & Adria */
  --c-sec: #00e0a4;     --c-sec-2: #38bdf8;
  --c-bike: #f2c200;    --c-bike-2: #e0531f;   /* Signalgelb der Trailschilder & Leogang-Rot */

  /* mix theme (default) */
  --bg: #0e0f13; --bg-2: #15171d; --surface: #181b22; --surface-2: #20242d;
  --text: #eef0f4; --muted: #9aa1ae; --border: #2a2f3a;
  --accent: #f4f4f5; --accent-2: var(--c-sec); --on-accent: #0e0f13;
  --f-display: var(--f-sans); --f-body: var(--f-sans);
  --display-weight: 800; --display-track: -0.035em; --display-transform: none;
  --radius: 18px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --card-skew: 0deg;
  --ease: cubic-bezier(.2,.7,.1,1);
  /* Seitenbreite passt sich dem Fenster an: Rand wächst mit, Obergrenzen nur für sehr große Monitore */
  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  --wrap: 1760px; --wrap-narrow: 1500px; --wrap-wide: 2400px;
  /* Bike-Welt (auch auf der Startseite gebraucht) */
  --dirt: #a8865a; --dirt-2: #6e5537; --moss: #4f6b34;
  --trail-green: #2f9e44; --trail-blue: #1c64d1; --trail-red: #d32630; --trail-black: #0d0d0d;
  /* feiner Schotter/Staub als Rauschen (inline-SVG, kein Fremdserver) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .52 0 0 0 0 .38 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='%23000'%3E%3Crect x='1' y='1' width='7' height='5' rx='1.2'/%3E%3Crect x='15' y='1' width='7' height='5' rx='1.2'/%3E%3Crect x='8' y='8' width='5' height='5' rx='1.2'/%3E%3Crect x='22' y='8' width='5' height='5' rx='1.2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- travel: Istrien – Kalkstein, Terrakotta-Dächer, Adria, Oliven ---------- */
.theme-travel {
  --bg: #f4eee2; --bg-2: #ece3d1; --surface: #fffcf6; --surface-2: #f6efe3;
  --text: #1d2b33; --muted: #5f6660; --border: #dfd3bd;
  --accent: #b24a26; --accent-2: #155e78; --on-accent: #fffcf6;
  --i-sea: #2a8c9b; --i-olive: #5d6b2e; --i-teran: #7a2a39; --i-roof: #c2603a; --i-stone: #e7dcc6;
  --f-display: var(--f-serif); --display-weight: 700; --display-track: -0.015em;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(40,50,60,.06), 0 18px 40px -22px rgba(21,94,120,.35);
}
/* ---------- security: terminal, mono, neon grid ---------- */
.theme-security {
  --bg: #060a12; --bg-2: #0a1020; --surface: #0c1424; --surface-2: #111c30;
  --text: #cfe0ee; --muted: #6f8aa3; --border: #18304a;
  --accent: #00ffaa; --accent-2: #38bdf8; --on-accent: #02140d;
  --f-display: var(--f-mono); --f-body: var(--f-sans); --display-weight: 700; --display-track: -0.02em;
  --radius: 6px; --radius-sm: 4px;
  --shadow: 0 0 0 1px rgba(0,255,170,.06), 0 20px 50px -25px rgba(0,255,170,.25);
}
/* ---------- bike: Bikepark real – Waldboden, Schotter, Trailschilder, Fotos ---------- */
.theme-bike {
  --bg: #11140f; --bg-2: #171b14; --surface: #1c2019; --surface-2: #252a21;
  --text: #f1efe6; --muted: #a9a794; --border: #33392c;
  --accent: #f2c200; --accent-2: #e0531f; --on-accent: #17140b;
  --f-display: var(--f-cond); --display-weight: 800; --display-track: .005em; --display-transform: uppercase;
  --radius: 8px; --radius-sm: 5px; --card-skew: 0deg;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -18px rgba(0,0,0,.75);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); text-transform: var(--display-transform); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--f-mono); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 1rem; }
.eyebrow { font: 600 .8rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 60ch; }
.empty { padding: 3rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* decorative page background per theme */
.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 1; transition: opacity .6s; }
.theme-mix .bg-deco {
  background:
    radial-gradient(40vw 40vw at 8% -5%, color-mix(in srgb, var(--c-travel) 18%, transparent), transparent 70%),
    radial-gradient(35vw 35vw at 95% 10%, color-mix(in srgb, var(--c-sec) 14%, transparent), transparent 70%),
    radial-gradient(45vw 30vw at 60% 110%, color-mix(in srgb, var(--c-bike) 10%, transparent), transparent 70%);
}
.theme-travel .bg-deco {
  background-color: var(--bg);
  background-image:
    radial-gradient(55vw 45vw at 0% -10%, rgba(242,179,107,.28), transparent 70%),          /* Abendsonne */
    radial-gradient(50vw 40vw at 105% 105%, rgba(42,140,155,.16), transparent 70%);        /* Adria */
  overflow: hidden;
}
/* Polaroid-Collage echter Reisefotos (Rovinj, Pula, Kap Kamenjak, Motovun, Piran, IJsselmeer …) */
.polaroids { position: absolute; inset: -3vh -2vw; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, 1fr); place-items: center; gap: 1vw; }
.polaroid { margin: 0; width: clamp(150px, 19vw, 280px); padding: 10px 10px 0; background: #fbf8f1; box-shadow: 0 1px 2px rgba(60,45,25,.25), 0 14px 30px -12px rgba(60,45,25,.45);
  transform: rotate(var(--r, -3deg)) translate(var(--x, 0), var(--y, 0)); filter: sepia(.12) saturate(.95); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #ddd5c4; }
.polaroid figcaption { font: 400 clamp(.85rem, 1.1vw, 1.1rem)/2.4 "Segoe Print", "Bradley Hand", "Comic Neue", "Chalkboard SE", "Marker Felt", cursive; color: #3c3a33; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(255,248,220,.55); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(var(--t, 2deg)); }
.polaroid { position: relative; }
.polaroid:nth-child(1)  { --r: -6deg; --x: 8%;  --y: 12%; }
.polaroid:nth-child(2)  { --r: 4deg;  --x: -6%; --y: -4%; --t: -4deg; }
.polaroid:nth-child(3)  { --r: -2deg; --x: 10%; --y: 16%; }
.polaroid:nth-child(4)  { --r: 7deg;  --x: -12%; --y: 2%; --t: 5deg; }
.polaroid:nth-child(5)  { --r: 3deg;  --x: 14%; --y: -6%; }
.polaroid:nth-child(6)  { --r: -5deg; --x: -4%; --y: 10%; --t: -3deg; }
.polaroid:nth-child(7)  { --r: 6deg;  --x: 6%;  --y: -10%; }
.polaroid:nth-child(8)  { --r: -8deg; --x: -10%; --y: 6%; --t: 4deg; }
.polaroid:nth-child(9)  { --r: -3deg; --x: 12%; --y: 4%; }
.polaroid:nth-child(10) { --r: 5deg;  --x: -8%; --y: -8%; --t: -5deg; }
.polaroid:nth-child(11) { --r: -6deg; --x: 4%;  --y: 8%; }
.polaroid:nth-child(12) { --r: 3deg;  --x: -14%; --y: -2%; }
/* Schleier, damit Text auf dem Hintergrund lesbar bleibt */
.theme-travel .bg-deco::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,238,226,.45), rgba(244,238,226,.78) 20%, rgba(244,238,226,.78) 80%, rgba(244,238,226,.45)); }
@media (max-width: 760px) { .polaroids { grid-template-columns: repeat(3, 1fr); } .polaroid:nth-child(n+10) { display: none; } }
/* Dachziegel-Kante (kupa kanalica) oben an der Seite */
.theme-travel .site-header { border-bottom: 0; }
.theme-travel .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, var(--i-roof) 0 6.5px, transparent 7px) 0 0 / 15px 9px repeat-x; opacity: .9; }
.theme-security .bg-deco {
  background:
    linear-gradient(rgba(0,255,170,.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(0,255,170,.045) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(60vw 40vw at 80% -10%, rgba(56,189,248,.14), transparent 70%),
    var(--bg);
}
.theme-security .bg-deco::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.theme-bike .bg-deco {
  background:
    radial-gradient(70vw 45vw at 15% -10%, rgba(120,150,80,.16), transparent 70%),   /* Licht durchs Blätterdach */
    radial-gradient(60vw 40vw at 100% 110%, rgba(168,134,90,.14), transparent 70%),  /* Trail-Staub */
    var(--bg);
}
/* Polaroid-Collage echter MTB-Fotos, abgedunkelt wie Fotos an der Hüttenwand */
.theme-bike .bg-deco { overflow: hidden; }
.theme-bike .polaroid { background: #e9e4d8; filter: sepia(.15) saturate(.9) brightness(.92); box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 34px -14px rgba(0,0,0,.8); }
.theme-bike .polaroid figcaption { color: #2b2a24; }
.theme-bike .polaroid::before { background: rgba(230,215,170,.5); }
.theme-bike .bg-deco::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,20,15,.7), rgba(17,20,15,.86) 20%, rgba(17,20,15,.86) 80%, rgba(17,20,15,.7)), var(--grain);
  background-blend-mode: normal, overlay; }
/* Gemischte Collage (Startseite, Galerie, Links, Seiten ohne Topic): Fotos aus allen drei Welten im Polaroid-Stil,
   jedes Foto mit dem Klebestreifen seiner Welt, darüber ein dunkler Schleier mit den drei Akzentfarben */
.theme-mix .bg-deco { overflow: hidden; }
.theme-mix .polaroid { background: #f1ede4; filter: saturate(.9) brightness(.9); box-shadow: 0 1px 2px rgba(0,0,0,.55), 0 18px 34px -14px rgba(0,0,0,.85); }
.theme-mix .polaroid figcaption { color: #2b2a24; }
.theme-mix .pol-travel::before { background: color-mix(in srgb, var(--c-travel) 55%, rgba(255,248,220,.4)); }
.theme-mix .pol-security { background: #e6eaee; filter: grayscale(.2) brightness(.88); }
.theme-mix .pol-security::before { background: color-mix(in srgb, var(--c-sec) 45%, rgba(255,255,255,.3)); }
.theme-mix .pol-bike { background: #e9e4d8; filter: sepia(.12) saturate(.9) brightness(.88); }
.theme-mix .pol-bike::before { background: color-mix(in srgb, var(--c-bike) 50%, rgba(230,215,170,.4)); }
.theme-mix .bg-deco:has(.polaroids)::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40vw 40vw at 8% -5%, color-mix(in srgb, var(--c-travel) 16%, transparent), transparent 70%),
    radial-gradient(35vw 35vw at 95% 10%, color-mix(in srgb, var(--c-sec) 12%, transparent), transparent 70%),
    radial-gradient(45vw 30vw at 60% 110%, color-mix(in srgb, var(--c-bike) 10%, transparent), transparent 70%),
    linear-gradient(90deg, rgba(14,15,19,.74), rgba(14,15,19,.88) 20%, rgba(14,15,19,.88) 80%, rgba(14,15,19,.74)); }

/* ---------- buttons, chips, flashes ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.3em; border-radius: 999px;
  background: var(--b); color: var(--on-accent); border: 2px solid var(--b);
  font: 700 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--b); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: .5em .9em; font-size: .82rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.theme-security .btn { border-radius: var(--radius-sm); font-family: var(--f-mono); text-transform: lowercase; }
.theme-security .btn::before { content: "> "; }
.theme-bike .btn { border-radius: 4px; font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; font-weight: 800;
  background: linear-gradient(180deg, #ffd21a, #e6b400); border-color: #b88f00; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 14px -8px rgba(0,0,0,.8); }
.theme-bike .btn:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 22px -10px rgba(242,194,0,.55); }
.theme-bike .btn-ghost { background: rgba(0,0,0,.25); color: var(--text); border-color: var(--border); box-shadow: none; }
.theme-bike .btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(0,0,0,.35); }
.theme-travel .btn { border-radius: 10px; letter-spacing: .01em; }
.theme-travel .btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.icon-btn { background: none; border: 1px solid var(--border); color: var(--text); width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }

.chip { display: inline-flex; align-items: center; gap: .35em; font: 700 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .5em .8em; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; border: 1px solid var(--border); }
.chip-travel { background: #b24a26; color: #fffcf6; border-color: transparent; }
.chip-security { background: #02140d; color: var(--c-sec); border-color: color-mix(in srgb, var(--c-sec) 40%, transparent); }
.chip-bike { background: linear-gradient(180deg, #ffd21a, #e6b400); color: #17140b; border: 1px solid #a98400; border-radius: 3px; font-family: var(--f-cond); font-size: .8rem; letter-spacing: .06em;
  box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.chip-bike::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8, #0006); }
.badge { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 800; }

.flashes { padding-top: 1rem; display: grid; gap: .5rem; }
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.flash-ok { border-color: #2fbf71; } .flash-err { border-color: #e5484d; } .flash-warn { border-color: #f5a524; }
.flash-ok::before { content: "✓ "; color: #2fbf71; } .flash-err::before { content: "✖ "; color: #e5484d; } .flash-warn::before { content: "! "; color: #f5a524; font-weight: 900; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; view-transition-name: site-header;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 800 1.15rem/1 var(--f-display); letter-spacing: var(--display-track); text-transform: var(--display-transform); }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark i { width: 9px; height: 22px; border-radius: 3px; transition: height .3s var(--ease), transform .3s; }
.brand-mark .d1 { background: var(--c-travel); } .brand-mark .d2 { background: var(--c-sec); height: 16px; align-self: end; } .brand-mark .d3 { background: var(--c-bike); }
.brand:hover .brand-mark i { transform: translateY(-2px); } .brand:hover .d2 { height: 22px; }
.theme-travel .brand-mark .d2, .theme-travel .brand-mark .d3 { opacity: .35; }
.theme-security .brand-mark .d1, .theme-security .brand-mark .d3 { opacity: .3; }
.theme-bike .brand-mark .d1, .theme-bike .brand-mark .d2 { opacity: .3; }
.theme-bike .brand-mark i { border-radius: 2px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; align-items: center; }
.main-nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: .45em; padding: .55em .8em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--muted); transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.nav-topic i { width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.nav-travel i { background: var(--c-travel); } .nav-security i { background: var(--c-sec); } .nav-bike i { background: var(--c-bike); }
.nav-topic.active.nav-travel { box-shadow: inset 0 -2px 0 var(--c-travel); } .nav-topic.active.nav-security { box-shadow: inset 0 -2px 0 var(--c-sec); } .nav-topic.active.nav-bike { box-shadow: inset 0 -2px 0 var(--c-bike); }
.nav-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 .3rem 0 .9rem; }
.nav-search input { background: none; border: 0; color: var(--text); width: 4.5rem; padding: .5rem 0; font: inherit; font-size: .9rem; outline: none; transition: width .3s var(--ease); }
.nav-search input:focus { width: 11rem; }
.brand { flex: none; } .main-nav { min-width: 0; } .main-nav ul { gap: 0; }
.nav-search button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: 0 .4rem; }
.main-nav a.nav-admin { flex: none; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.main-nav a.nav-admin:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.main-nav a.nav-admin svg { transition: transform .5s var(--ease); }
.main-nav a.nav-admin:hover svg { transform: rotate(60deg); }
.nav-admin-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-security .main-nav a.nav-admin { border-radius: 4px; }
.theme-bike .main-nav a.nav-admin { border-radius: 6px; }
/* Effekte-Schalter oben im Kopfbereich (zusätzlich zum Knopf im Footer) */
.header-fx { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin-left: -.8rem; padding: 0;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: border-color .2s, opacity .2s, filter .2s; }
.header-fx:hover, .header-fx:focus-visible { border-color: var(--accent); }
.header-fx[aria-pressed="false"] { filter: grayscale(1); opacity: .55; }
.header-fx[aria-pressed="false"]::after { content: ""; position: absolute; width: 1.5rem; height: 2px; background: var(--muted); transform: rotate(-45deg); border-radius: 2px; }
.header-fx { position: relative; }
.theme-security .header-fx { border-radius: 4px; }
.theme-bike .header-fx { border-radius: 6px; }
/* am PC: Knopf in der Navigation zwischen Suchfeld und Zahnrad; am Handy: Knopf in der Kopfzeile neben dem Menü-Knopf */
.header-fx-nav { margin-left: 0; }
.header-fx-bar { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.theme-security .main-nav a { font-family: var(--f-mono); font-size: .85rem; border-radius: 4px; }
.theme-bike .main-nav a { font-family: var(--f-cond); text-transform: uppercase; font-size: .92rem; letter-spacing: .03em; border-radius: 6px; padding: .55em .65em; }

/* ---------- hero: mix triptych ---------- */
.hero-mix { padding: clamp(3rem, 8vw, 6.5rem) 0 2rem; }
.hero-mix-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.mega { font-size: clamp(3rem, 10vw, 8.5rem); line-height: .92; letter-spacing: -.055em; margin: 0 0 1.5rem; }
.mega span { display: inline-block; background-clip: text; -webkit-background-clip: text; color: transparent; }
.mega span:nth-child(1) { background-image: linear-gradient(100deg, var(--c-travel), var(--c-travel-2)); }
.mega span:nth-child(2) { background-image: linear-gradient(100deg, var(--c-sec), var(--c-sec-2)); font-family: var(--f-mono); letter-spacing: -.07em; font-weight: 700; }
.mega span:nth-child(3) { background-image: linear-gradient(100deg, var(--c-bike), var(--c-bike-2)); font-family: var(--f-cond); text-transform: uppercase; letter-spacing: -.01em; }
.triptych { display: flex; gap: 14px; height: clamp(360px, 58vh, 620px); }
.panel { position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  transition: flex .7s var(--ease), transform .5s var(--ease); box-shadow: var(--shadow); }
.triptych:hover .panel { flex: .8; }
.triptych .panel:hover, .triptych .panel:focus-visible { flex: 2.1; color: #fff; }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.panel:hover > img { transform: scale(1.06); }
.panel-pattern { position: absolute; inset: 0; z-index: -1; }
.panel-travel { background: linear-gradient(170deg, #f2b36b, #d0643c 45%, #155e78 78%, #0e3f52); }
.panel-travel > img { object-position: 50% 40%; }
.panel-travel .panel-pattern { background: linear-gradient(180deg, transparent 35%, rgba(8,30,40,.82)); }
.panel-security { background: radial-gradient(120% 80% at 30% 10%, #0f2a40, #050910 70%); font-family: var(--f-mono); }
.panel-security .panel-pattern { background: linear-gradient(180deg, transparent 40%, rgba(2,8,14,.85)),
  linear-gradient(rgba(0,255,170,.12) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(0,255,170,.12) 1px, transparent 1px) 0 0 / 28px 28px; }
.panel-bike { background: #1c2019; font-family: var(--f-cond); }
.panel-bike > img { object-position: 50% 60%; filter: saturate(1.08) contrast(1.05); }
.panel-bike .panel-pattern { background: linear-gradient(180deg, rgba(10,12,8,.15) 30%, rgba(10,12,8,.88)), var(--grain); background-blend-mode: normal, soft-light; }
.panel-mix { background: linear-gradient(160deg, #333, #111); }
.panel-num { position: absolute; top: 1.2rem; left: 1.4rem; font: 700 .8rem/1 var(--f-mono); letter-spacing: .2em; opacity: .75; }
.panel-content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.2rem, 2.5vw, 2rem); display: grid; gap: .45rem; }
.panel-icon { font-size: 2rem; }
.panel strong, .panel .panel-title { font-size: clamp(1.4rem, 2.4vw, 2.3rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.panel-travel strong, .panel-travel .panel-title { font-family: var(--f-serif); }
.panel-bike strong, .panel-bike .panel-title { text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.7rem, 3vw, 2.8rem); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.panel em { font-style: normal; opacity: .85; max-width: 32ch; }
.panel-cta { font-weight: 700; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.panel:hover .panel-cta, .panel:focus-visible .panel-cta { opacity: 1; transform: none; }
.panel-security .panel-cta { color: var(--c-sec); } .panel-bike .panel-cta { color: var(--c-bike); } .panel-travel .panel-cta { color: #ffd9b8; }

/* ---------- topic heroes ---------- */
.topic-hero { position: relative; padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.topic-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.topic-hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .95; margin-bottom: 1.2rem; }
.topic-desc { max-width: 62ch; }
.topic-stats { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.topic-stats b, .topic-stats .stat-num { color: var(--text); font-size: 1.2rem; margin-right: .2em; }
/* Hügelstadt mit Campanile über der Adria (Rovinj, Motovun, Grožnjan …) */
.hero-travel { min-height: clamp(420px, 70vh, 680px); display: flex; align-items: flex-end; padding-bottom: clamp(4rem, 8vw, 6rem); }
.hero-travel .topic-hero-img { opacity: 1; object-position: 50% 64%; }
.hero-travel::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(244,238,226,.94) 0%, rgba(244,238,226,.78) 30%, rgba(244,238,226,.1) 58%, transparent 70%),
              linear-gradient(180deg, transparent 75%, rgba(244,238,226,.45) 100%); }
.hero-travel .topic-hero-inner > * { max-width: 40rem; }
@media (max-width: 760px) { .hero-travel::before { background: linear-gradient(180deg, rgba(244,238,226,.3) 0%, rgba(244,238,226,.9) 55%, rgba(244,238,226,.96) 100%); } }
.hero-travel::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: -1;
  background: linear-gradient(180deg, var(--i-sea), var(--accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15 0 15-8 30-8s15 8 30 8 15-8 30-8 15 8 30 8v12H0z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 120px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15 0 15-8 30-8s15 8 30 8 15-8 30-8 15 8 30 8v12H0z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 120px 100% repeat-x;
  animation: adria 14s linear infinite; }
@keyframes adria { to { -webkit-mask-position: 120px 0; mask-position: 120px 0; } }
.hero-travel h1 { color: var(--accent-2); }
.hero-travel h1::after { content: ""; display: block; width: 140px; height: 10px; margin-top: .35em; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 40px 10px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 40px 10px repeat-x; }
.hero-travel .eyebrow { color: var(--i-olive); }
.hero-security h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); color: var(--accent); text-shadow: 0 0 24px rgba(0,255,170,.35); }
.hero-security .eyebrow { color: var(--accent-2); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.caret { display: inline-block; width: .6em; height: 1.1em; background: var(--accent); vertical-align: text-bottom; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--accent-2); transform: translate(2px, 0); clip-path: inset(0 0 60% 0); animation: glitch 3.2s infinite steps(2); opacity: .8; }
.glitch::after { color: #ff3b6b; transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); animation: glitch 2.7s infinite steps(2) reverse; opacity: .7; }
@keyframes glitch { 0%, 88%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 90% { transform: translate(3px, -1px); clip-path: inset(20% 0 50% 0); } 93% { transform: translate(-3px, 2px); clip-path: inset(60% 0 10% 0); } 96% { transform: translate(2px, 1px); clip-path: inset(40% 0 30% 0); } }
/* Bike-Hero: echtes Foto, Bergkamm unten, gelbes Startschild wie in Leogang */
.hero-bike { min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end; padding-bottom: clamp(5rem, 10vw, 8rem); color: #fff; }
.hero-bike .topic-hero-img { opacity: 1; object-position: 50% 45%; filter: saturate(1.05) contrast(1.04); animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-bike::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,10,6,.3) 0%, rgba(8,10,6,.05) 35%, rgba(8,10,6,.62) 78%, rgba(8,10,6,.8) 100%),
              linear-gradient(90deg, rgba(8,10,6,.65), transparent 65%); }
.hero-bike::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: -1; background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V44l60-10 40 6 50-18 30 8 44-22 26 10 38-14 30 12 22-6 40 18 46-8 34 12 52-24 28 14 36-6 44 20 40-12 30 6 56-20 34 10 48-4 40 16 52-10 34 8 46-14 36 12 40-6 60 14 54-8 46 10V70z' fill='%23000'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V44l60-10 40 6 50-18 30 8 44-22 26 10 38-14 30 12 22-6 40 18 46-8 34 12 52-24 28 14 36-6 44 20 40-12 30 6 56-20 34 10 48-4 40 16 52-10 34 8 46-14 36 12 40-6 60 14 54-8 46 10V70z' fill='%23000'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.hero-bike .topic-hero-inner { position: relative; }
.hero-bike .lead, .hero-bike .topic-desc { color: rgba(255,255,255,.88); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.hero-bike .topic-stats { color: rgba(255,255,255,.75); } .hero-bike .topic-stats b, .hero-bike .topic-stats .stat-num { color: #fff; }
.shred { font-size: clamp(2.2rem, 10vw, 8.8rem) !important; hyphens: auto; overflow-wrap: anywhere; letter-spacing: -.005em; line-height: .88 !important; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 10px 40px rgba(0,0,0,.55); }
/* gelbes Trailschild (Start-Schild der Lines & Trails) */
.trail-sign { display: inline-grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: center; padding: .55rem .8rem .5rem; border-radius: 4px;
  background: linear-gradient(180deg, #ffd21a, #e9b800); color: #141209; font-family: var(--f-cond); text-transform: uppercase; line-height: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.15) inset, 0 10px 24px -10px rgba(0,0,0,.8); position: relative; }
.trail-sign::before, .trail-sign::after { content: ""; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #777 60%, #333); }
.trail-sign::before { left: 5px; } .trail-sign::after { right: 5px; }
.trail-sign .ts-arrow { grid-row: span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; background: #141209; color: #ffd21a; border-radius: 3px; font-size: 1.1rem; }
.trail-sign b { font-size: 1.15rem; letter-spacing: .04em; }
.trail-sign small { font-size: .72rem; letter-spacing: .08em; opacity: .8; }
.hero-credit { position: absolute; right: .9rem; bottom: .6rem; z-index: 1; font-size: .7rem; color: rgba(255,255,255,.65); text-shadow: 0 1px 4px #000; }
.hero-credit a { color: inherit; }

/* topic strips on the home page */
.topic-strip { position: relative; }
.strip-travel { isolation: isolate; overflow: hidden; }
.strip-travel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,22,30,.8) 16%, rgba(10,22,30,.8) 84%, var(--bg) 100%); }
.strip-security { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c-sec) 7%, transparent), transparent); }
.strip-bike { isolation: isolate; overflow: hidden; }
.strip-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.strip-bike::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(14,16,11,.84) 16%, rgba(14,16,11,.84) 84%, var(--bg) 100%); }
.strip-travel h2 { font-family: var(--f-serif); color: #ffd9b8; }
.strip-security h2 { font-family: var(--f-mono); color: var(--c-sec); }
.strip-bike h2 { font-family: var(--f-cond); text-transform: uppercase; color: #fff; }
.strip-bike h2 span { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .2em; border-radius: 4px; background: linear-gradient(180deg, #ffd21a, #e6b400); font-size: .8em; vertical-align: .08em; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.card { display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .chip { position: absolute; top: .9rem; left: .9rem; }
.card-ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.card-body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body time { font: 600 .75rem/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.card-body h3 { margin: .2rem 0 .1rem; font-size: 1.28rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.more { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--accent); }
.more i { display: inline-block; transition: transform .3s var(--ease); font-style: normal; }
.card:hover .more i { transform: translateX(5px); }
/* per-world card flavours (also on the mixed home page) */
.card-travel .card-body h3 { font-family: var(--f-serif); }
.card-security .card-body h3 { font-family: var(--f-mono); font-size: 1.1rem; letter-spacing: -.02em; }
.card-bike .card-body h3 { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .01em; font-size: 1.42rem; }
.card-bike .card-media img { filter: saturate(1.06) contrast(1.04); }
.card-bike .card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)), var(--grain); background-blend-mode: normal, soft-light; opacity: .55; }
/* Karten als Polaroids: weißer Rahmen, leicht schief, beim Hover gerade */
.theme-travel .card { position: relative; overflow: visible; background: #fffdf8; border: 0; border-radius: 3px; padding: 12px 12px 0;
  box-shadow: 0 1px 2px rgba(60,45,25,.18), 0 18px 36px -18px rgba(60,45,25,.5); transform: rotate(var(--r, -1deg)); }
.theme-travel .card:nth-child(3n+2) { --r: .8deg; } .theme-travel .card:nth-child(3n) { --r: -.5deg; }
.theme-travel .card:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 1px 2px rgba(60,45,25,.18), 0 26px 46px -18px rgba(60,45,25,.55); }
.theme-travel .card::before { content: ""; position: absolute; top: -10px; left: 50%; z-index: 2; width: 84px; height: 22px; margin-left: -42px; background: rgba(255,246,214,.7); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-2deg); }
.theme-travel .card-media { border-radius: 1px; aspect-ratio: 4 / 3.2; }
.theme-travel .card-media img, .theme-travel .card-ph-photo { filter: saturate(1.05) contrast(1.02); }
.theme-travel .card-body { padding: 1rem .4rem 1.3rem; }
.theme-travel .card-body time { font-family: "Segoe Print", "Bradley Hand", "Comic Neue", cursive; letter-spacing: 0; font-size: .85rem; }
.theme-travel .more { color: var(--accent-2); }
.theme-security .card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.theme-security .card::before { content: "● ● ●"; display: block; padding: .5rem .9rem; font-size: .55rem; letter-spacing: .3em; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.theme-security .card:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 40px -10px rgba(0,255,170,.45); }
.theme-security .more::before { content: "$ "; color: var(--muted); }
.theme-bike .card { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
/* Reifenspur als Trenner zwischen Foto und Text */
.theme-bike .card-body { position: relative; padding-top: 1.45rem; }
.theme-bike .card-body::before { content: ""; position: absolute; left: 1.35rem; right: 1.35rem; top: .5rem; height: 7px; background: var(--dirt); opacity: .35;
  -webkit-mask: var(--tread) 0 0 / 14px 7px repeat-x; mask: var(--tread) 0 0 / 14px 7px repeat-x; }
.theme-bike .card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 24px 50px -22px rgba(0,0,0,.9); }
.theme-bike .more { text-transform: uppercase; font-family: var(--f-cond); letter-spacing: .06em; font-size: 1rem; }
.card-ph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.7); }
.price { font: 800 1.3rem/1 var(--f-display); color: var(--accent); margin-top: auto; }

/* gallery cards */
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }
.gcard { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.gcard:hover img { transform: scale(1.08) rotate(.5deg); }
.gcard > span { position: absolute; inset: auto 0 0 0; padding: 1.2rem 1.3rem; display: grid; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.gcard strong, .gcard .gcard-title { font: 800 1.35rem/1.1 var(--f-display); text-transform: var(--display-transform); }
.gcard em { font-style: normal; opacity: .8; font-size: .9rem; }
.gcard:hover { color: #fff; }

/* link cards */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.linkcard { display: flex; gap: .9rem; align-items: center; padding: .95rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.linkcard:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.favicon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); overflow: hidden; }
.favicon img { width: 30px; height: 30px; object-fit: contain; }
.favicon b, .favicon .fav-letter { font: 800 1.2rem/1 var(--f-display); color: #222; }
.linkcard-body { display: grid; min-width: 0; }
.linkcard-body strong, .linkcard-body .lc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkcard-body em { font-style: normal; color: var(--muted); font-size: .88rem; }
.linkcard-body small { font: 500 .75rem/1.6 var(--f-mono); color: var(--muted); opacity: .8; }
.theme-security .favicon { border-radius: 4px; } .theme-bike .favicon { border-radius: 4px; }
/* Linkkarte mit Screenshot der Webseite */
.linkcard-shot { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: var(--radius); }
.linkcard-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.linkcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.linkcard-shot:hover .linkcard-media img { transform: scale(1.04); }
.linkcard-row { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem 1rem; min-width: 0; }
.linkcard-shot .favicon { width: 38px; height: 38px; border-radius: 10px; margin-top: -2.1rem; position: relative; border: 3px solid var(--surface); box-sizing: content-box; }
.linkcard-shot .favicon img { width: 24px; height: 24px; }
.linkgrid:has(.linkcard-shot) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.link-cat span { font-size: 1.1em; }
.cat-icon { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -.2em; border-radius: 4px; }
.theme-travel .linkcard-shot { border-top: 0; padding-top: 9px;
  background: radial-gradient(circle at 50% 0, var(--i-roof) 0 6.5px, transparent 7px) 0 0 / 15px 9px repeat-x, var(--surface); }
.theme-travel .linkcard-shot .linkcard-media { margin: 0 8px; border-radius: 50% 50% 8px 8px / 26px 26px 8px 8px; border: 0; }
.theme-security .linkcard-shot { border-radius: 6px; } .theme-security .linkcard-shot .linkcard-media { filter: saturate(.85); }
.theme-bike .linkcard-shot { border-radius: 0; }
/* Kartengröße (Einstellungen → Linkliste): Groß = Standard oben, Mittel = kompakte Kacheln, Klein = Bild links neben dem Text */
.linkgrid:has(.linkcard-medium) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .9rem; }
.linkcard-medium .linkcard-row { gap: .6rem; padding: .6rem .75rem .75rem; }
.linkcard-medium .favicon { width: 28px; height: 28px; border-radius: 8px; margin-top: -1.5rem; border-width: 2px; }
.linkcard-medium .favicon img { width: 18px; height: 18px; }
.linkcard-medium .favicon b, .linkcard-medium .favicon .fav-letter { font-size: .9rem; }
.linkcard-medium .linkcard-body strong, .linkcard-medium .linkcard-body .lc-title { font-size: .95rem; }
.linkcard-medium .linkcard-body em { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linkcard-medium .linkcard-body small { font-size: .7rem; }
.linkgrid:has(.linkcard-small) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem; }
.linkcard-shot.linkcard-small { flex-direction: row; align-items: center; gap: .75rem; padding: .5rem .7rem .5rem .5rem; border-radius: var(--radius-sm); }
.linkcard-small .linkcard-media { flex: none; width: 96px; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 6px; }
.linkcard-small .linkcard-row { flex: 1; gap: .5rem; padding: 0; }
.linkcard-small .favicon { width: 20px; height: 20px; border-radius: 5px; margin-top: 0; border: 0; box-shadow: none; position: static; }
.linkcard-small .favicon img { width: 16px; height: 16px; }
.linkcard-small .favicon b, .linkcard-small .favicon .fav-letter { font-size: .7rem; }
.linkcard-small .linkcard-body strong, .linkcard-small .linkcard-body .lc-title { font-size: .92rem; }
.linkcard-small .linkcard-body em { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkcard-small .linkcard-body small { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkcard-small:hover .linkcard-media img { transform: none; }
.theme-travel .linkcard-shot.linkcard-small { padding-top: .5rem; background: var(--surface); border-top: 1px solid var(--border); }
.theme-travel .linkcard-small .linkcard-media { margin: 0; border-radius: 6px; border: 1px solid var(--border); }
.theme-bike .linkcard-shot.linkcard-small, .theme-security .linkcard-shot.linkcard-small { border-radius: 4px; }
.filter-input, .search-big input { width: min(100%, 520px); padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; margin-top: .5rem; }
.link-group { margin-bottom: 2.5rem; } .link-group[hidden] { display: none; }
.search-big { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.results { list-style: none; padding: 0; display: grid; gap: 1.3rem; }
.results li { padding-bottom: 1.3rem; border-bottom: 1px solid var(--border); }
.results strong { font-size: 1.2rem; }

/* ---------- article ---------- */
.article { padding-bottom: 2rem; }
.article-head { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.article-head h1 { margin-top: 1rem; }
.meta { color: var(--muted); font-size: .92rem; font-family: var(--f-mono); }
.article-cover { margin: 0 auto 3rem; }
.article-cover img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose { font-size: clamp(1.02rem, .92rem + .28vw, 1.2rem); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; } .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 4px solid var(--accent); font-size: 1.25em; font-family: var(--f-display); color: var(--text); }
.prose pre { background: #0b0f17; color: #d5e3f0; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); overflow-x: auto; font: 14px/1.6 var(--f-mono); position: relative; border: 1px solid #1c2636; }
.prose pre.terminal { border-top: 28px solid #1a2332; }
.prose pre.terminal::before { content: "● ● ●"; position: absolute; top: -22px; left: 12px; font-size: 9px; letter-spacing: 4px; color: #5d6b80; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: .15em .4em; border-radius: 5px; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7em .8em; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 3em 0; }
.prose a { color: var(--accent); }
.prose .lead { color: var(--text); font-size: 1.3rem; }
.prose .callout { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent-2); }
.prose .callout-warn { border-left-color: #f5a524; } .prose .callout-tip { border-left-color: #2fbf71; }
.prose .align-center { text-align: center; } .prose .align-right { text-align: right; } .prose .align-justify { text-align: justify; }
.prose .img-left { float: left; clear: both; max-width: 45%; margin: .3em 1.5em 1em 0; } .prose .img-right { float: right; clear: both; max-width: 45%; margin: .3em 0 1em 1.5em; }
/* Bilder im Zeitungsstil: <figure class="img-left img-s"><img …><figcaption>…</figcaption></figure>  (Markdown: ![Text](bild.jpg){.img-left .img-s}) */
.prose figure { margin: 1.8em 0; }
.prose figure img { display: block; width: 100%; height: auto; }
.prose figcaption { margin-top: .5em; font-size: .82rem; line-height: 1.4; font-style: italic; color: var(--muted); }
.prose figure.img-left, .prose figure.img-right { width: 45%; margin-top: .3em; margin-bottom: 1em; }
.prose .img-xs { width: 26%; max-width: 26%; } .prose .img-s { width: 34%; max-width: 34%; } .prose .img-m { width: 46%; max-width: 46%; }
.prose h2, .prose h3, .prose h4, .prose table, .prose blockquote, .prose hr, .prose pre, .prose details, .prose .img-wide { clear: both; }
@media (max-width: 640px) {
  .prose .img-left, .prose .img-right { float: none; width: auto; max-width: 100%; margin: 1.4em 0; }
  .prose figure.img-left, .prose figure.img-right { width: 100%; }
}
.prose .img-wide { width: calc(100% + 10vw); max-width: 100vw; margin-left: -5vw; }
.prose .two-col { columns: 2; gap: 2.5rem; }
.prose details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.prose summary { cursor: pointer; font-weight: 700; }
.prose::after { content: ""; display: block; clear: both; }
.theme-travel .prose { font-family: var(--f-serif); font-size: clamp(1.08rem, .98rem + .3vw, 1.28rem); }
.theme-travel .prose > p:first-of-type:not(.lead)::first-letter { float: left; font-size: 3.6em; line-height: .85; padding: .05em .1em 0 0; color: var(--accent); font-weight: 700; }
.theme-travel .prose h2 { color: var(--accent-2); }
.theme-travel .prose h2::after { content: ""; display: block; width: 80px; height: 8px; margin-top: .3em; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 32px 8px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 32px 8px repeat-x; }
.theme-travel .prose blockquote { padding: .8em 1.2em; background: var(--i-stone); border-left: 4px solid var(--i-olive); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #2d3a2a; }
.theme-travel .prose a { color: var(--accent-2); }
.theme-travel .prose table th { background: var(--accent-2); color: #fffcf6; }
.theme-security .prose h2::before { content: "## "; color: var(--muted); font-weight: 400; }
.theme-security .prose h3::before { content: "### "; color: var(--muted); font-weight: 400; }
.theme-bike .prose h2 { padding-bottom: .35em; }
.theme-bike .prose h2::after { content: ""; display: block; width: 120px; height: 8px; margin-top: .35em; background: var(--accent);
  -webkit-mask: var(--tread) 0 0 / 16px 8px repeat-x; mask: var(--tread) 0 0 / 16px 8px repeat-x; }
.theme-bike .prose blockquote { border-left: 4px solid var(--accent); background: var(--surface); padding: .8em 1.2em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tags a { font: 600 .85rem/1 var(--f-mono); color: var(--muted); text-decoration: none; padding: .45em .7em; border: 1px solid var(--border); border-radius: 999px; }
.tags a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- gallery ---------- */
.gallery-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.gallery { --gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .7s var(--ease), filter .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: .8rem 1rem; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transform: translateY(8px); transition: .35s var(--ease); pointer-events: none; }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.layout-masonry { columns: 4 260px; column-gap: var(--gap); }
.layout-masonry figure { break-inside: avoid; margin-bottom: var(--gap); }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.layout-grid img { aspect-ratio: 1; object-fit: cover; height: 100%; }
.layout-grid figure:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.layout-carousel { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.layout-carousel figure { flex: 0 0 min(78vw, 720px); scroll-snap-align: center; }
.layout-carousel img { aspect-ratio: 16 / 10; object-fit: cover; }
.layout-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.4rem 1.6rem; padding: 1rem; }
.layout-stack figure { overflow: visible; background: none; transform: rotate(var(--r, -2deg)); transition: transform .4s var(--ease); }
.layout-stack figure:nth-child(even) { --r: 2.5deg; } .layout-stack figure:nth-child(3n) { --r: -1deg; }
.layout-stack figure a { padding: 10px 10px 34px; background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.layout-stack figure:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.layout-stack figcaption { position: static; opacity: 1; transform: none; background: none; color: #333; font-family: var(--f-serif); text-align: center; margin-top: -30px; padding: .3rem; }
.theme-bike .gallery figure { border-radius: 0; }
.theme-security .gallery figure { border-radius: 3px; outline: 1px solid var(--border); }
.theme-security .gallery figure:hover img { filter: saturate(1.2) contrast(1.1); }

/* scroll reveal effects (classes set by JS, so content stays visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .gallery[data-reveal-effect] [data-g-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease), clip-path .9s var(--ease); }
.js .gallery[data-reveal-effect="fade-up"] [data-g-reveal]:not(.in) { opacity: 0; transform: translateY(40px); }
.js .gallery[data-reveal-effect="fade"] [data-g-reveal]:not(.in) { opacity: 0; }
.js .gallery[data-reveal-effect="zoom-in"] [data-g-reveal]:not(.in) { opacity: 0; transform: scale(.8); }
.js .gallery[data-reveal-effect="blur-in"] [data-g-reveal]:not(.in) { opacity: 0; filter: blur(18px); transform: scale(1.05); }
.js .gallery[data-reveal-effect="flip-in"] { perspective: 1200px; }
.js .gallery[data-reveal-effect="flip-in"] [data-g-reveal]:not(.in) { opacity: 0; transform: rotateX(-70deg); transform-origin: top; }
.js .gallery[data-reveal-effect="slide-left"] [data-g-reveal]:not(.in) { opacity: 0; transform: translateX(80px); }
.js .gallery[data-reveal-effect="stagger-pop"] [data-g-reveal]:not(.in) { opacity: 0; transform: scale(.5) rotate(-6deg); }
.js .gallery[data-reveal-effect="stagger-pop"] [data-g-reveal] { transition-timing-function: cubic-bezier(.34,1.56,.64,1); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto auto; background: rgba(6,7,10,.94); color: #fff; opacity: 0; transition: opacity .35s; backdrop-filter: blur(8px); }
.lb.open { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; font: 600 .85rem/1 var(--f-mono); }
.lb-top button, .lb-nav { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 999px; cursor: pointer; height: 42px; min-width: 42px; padding: 0 .9rem; font-size: 1rem; }
.lb-top button:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-tools { display: flex; gap: .5rem; }
.lb-stage { position: relative; overflow: hidden; perspective: 1600px; }
.lb-slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 4.5rem; backface-visibility: hidden; }
.lb-slide img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; height: 56px; width: 56px; font-size: 1.4rem; padding: 0; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-caption { text-align: center; padding: .7rem 1rem 0; min-height: 2.2em; opacity: .9; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: .8rem 1rem 1rem; justify-content: center; scrollbar-width: none; }
.lb-thumbs button { flex: none; width: 64px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .5; cursor: pointer; background: #222; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.on { opacity: 1; border-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-progress { position: absolute; left: 0; top: 0; height: 3px; background: var(--accent); width: 0; z-index: 4; }
.lb.playing .lb-progress { animation: lbprog var(--interval, 5s) linear infinite; }
@keyframes lbprog { from { width: 0; } to { width: 100%; } }
@media (max-width: 700px) { .lb-slide { padding: 0 .5rem; } .lb-nav { display: none; } .lb-thumbs { justify-content: flex-start; } }

/* ---------- shop ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-top: clamp(3rem, 7vw, 5rem); }
.product-media img, .product-media .card-ph { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; position: relative; display: block; }
.price-big { font: 800 2.4rem/1 var(--f-display); color: var(--accent); margin: 1rem 0 .4rem; }
.buy-form { display: flex; gap: .7rem; margin: 1.5rem 0 1rem; }
.buy-form input { width: 5rem; }
input, textarea, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 1rem .5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cart-table input { width: 5rem; padding: .5rem; }
.cart-table tfoot th { font-size: 1.2rem; border: 0; }
.r { text-align: right !important; }
.inline { display: inline; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.checkout-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin: 0 0 1.2rem; display: grid; gap: 1rem; background: var(--surface); }
.checkout-form legend { font: 700 1rem/1 var(--f-display); padding: 0 .4rem; text-transform: var(--display-transform); }
.checkout-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.checkout-form .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.checkout-form .check input { margin-top: .35em; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.pay-options { display: grid; gap: .7rem; }
.pay-option { display: flex !important; grid-template-columns: none; align-items: center; gap: 1rem !important; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pay-logo { flex: none; width: 92px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #fff; font: 900 1.1rem/1 var(--f-sans); font-style: italic; }
.pay-paypal .pay-logo b { color: #003087; } .pay-paypal .pay-logo i { color: #009cde; }
.pay-wero .pay-logo { background: #1c1c1c; } .pay-wero .pay-logo b { color: #fff200; font-style: normal; letter-spacing: -.03em; font-size: 1.25rem; }
.pay-text { font-weight: 500; font-size: .9rem; color: var(--muted); }
.checkout-summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.checkout-summary ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.checkout-summary li, .checkout-summary .sum { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-summary .sum { border-top: 1px solid var(--border); padding-top: 1rem; font-size: 1.2rem; }
.license-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.license-list li { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.license-list code { font: 700 1rem/1 var(--f-mono); letter-spacing: .05em; }
.notfound .mega { background: linear-gradient(100deg, var(--c-travel), var(--c-sec), var(--c-bike)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-grid:has(> div:nth-child(5)) { grid-template-columns: 2fr repeat(4, 1fr); }
.footer-grid h3 a { color: inherit; opacity: 1; }
.footer-grid .footer-sub { margin-top: 1.4rem; }
.footer-grid h3 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a { text-decoration: none; color: var(--text); opacity: .85; }
.footer-grid a:hover { color: var(--accent); opacity: 1; }
.footer-grid .brand { margin-bottom: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.to-top { text-decoration: none; }

/* ---------- seasonal ---------- */
.season-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.season-banner { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .5rem 3rem; font-weight: 700; font-size: .9rem;
  background: linear-gradient(90deg, var(--c-travel-2), var(--c-bike-2), var(--c-travel-2)); background-size: 200% 100%; animation: bannerflow 8s linear infinite; color: #fff; }
.season-banner button { position: absolute; right: .8rem; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
@keyframes bannerflow { to { background-position: 200% 0; } }
[data-seasonal="christmas"] .season-banner { background-image: linear-gradient(90deg, #a4161a, #1b4332, #a4161a); }
[data-seasonal="halloween"] .season-banner { background-image: linear-gradient(90deg, #ff7518, #3c096c, #ff7518); }
[data-seasonal="easter"] .season-banner { background-image: linear-gradient(90deg, #f9a8d4, #a7f3d0, #fde68a, #f9a8d4); color: #333; }
[data-seasonal="easter"] .season-banner button { color: #333; }
[data-seasonal="newyear"] .season-banner { background-image: linear-gradient(90deg, #1e1b4b, #b8860b, #1e1b4b); }

/* ---------- Bike: Bikepark-Tafel (wie die Lift- & Trailtafel an der Talstation) ---------- */
.bp-board { background: linear-gradient(180deg, #3b3e44, #2c2f34); border: 1px solid #50545b; border-radius: 10px; padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -30px rgba(0,0,0,.9); color: #eceef1; position: relative; }
.bp-board::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }
.bp-board-head { text-align: center; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.bp-board-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; letter-spacing: .02em; }
.bp-board-head p { margin: .3rem 0 0; color: #b9bdc4; font: 500 .95rem/1.3 var(--f-sans); text-transform: none; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.1rem; }
.bp { background: #23262b; border: 1px solid #44484f; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.bp-photo { position: relative; aspect-ratio: 4 / 3; background: #1a1d17; overflow: hidden; margin: 0; }
.bp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bp:hover .bp-photo img { transform: scale(1.05); }
.bp-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .5rem .3rem; font-size: .62rem; line-height: 1.3; color: rgba(255,255,255,.75); background: linear-gradient(transparent, rgba(0,0,0,.7)); text-align: right; }
.bp-photo figcaption a { color: inherit; }
.bp-photo-none { display: grid; place-items: center; color: #9aa08f; font: 600 .8rem/1.3 var(--f-sans); text-align: center; padding: 1rem;
  background: repeating-linear-gradient(-35deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px), linear-gradient(160deg, #2b3a22, #151a12); }
.bp-photo-none span::before { content: "🌲"; display: block; font-size: 2rem; margin-bottom: .3rem; }
.bp-body { padding: .9rem 1rem 1.1rem; display: grid; gap: .55rem; }
.bp-name { display: grid; gap: .3rem; }
.bp-name strong { font: 800 1.3rem/1 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; }
.bp-name em { font: 600 .7rem/1 var(--f-mono); font-style: normal; color: #aab0b8; letter-spacing: .06em; text-transform: uppercase; }
.bp-meta { font-size: .85rem; color: #c3c7cd; margin: 0; }
.bp-lines { list-style: none; margin: 0; padding: .5rem .6rem; display: grid; gap: .28rem; background: #17191c; border-radius: 4px; font: 600 .82rem/1.15 var(--f-sans); }
.bp-lines li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .5rem; align-items: center; }
.bp-lines code { font: 800 .72rem/1 var(--f-cond); padding: .22em .35em; border-radius: 2px; text-align: center; color: #fff; background: var(--trail-black); border: 1px solid #555; }
.bp-lines .d-green code { background: var(--trail-green); border-color: transparent; }
.bp-lines .d-blue code { background: var(--trail-blue); border-color: transparent; }
.bp-lines .d-red code { background: var(--trail-red); border-color: transparent; }
.bp-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.bp-tags span { font: 700 .66rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: .4em .55em; border-radius: 3px; background: #33373d; color: #d6d9dd; }
.bp-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .78rem; color: #c3c7cd; }
.bp-legend i { display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -.05em; border-radius: 1px; }
.lg-green { background: var(--trail-green); } .lg-blue { background: var(--trail-blue); } .lg-red { background: var(--trail-red); } .lg-black { background: var(--trail-black); outline: 1px solid #666; }

/* Fotostreifen „Aus dem Sattel“ */
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
.photo-strip figure { margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); background: var(--surface); }
.photo-strip figure:nth-child(even) { aspect-ratio: 4 / 5; align-self: end; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-strip figure:hover img { transform: scale(1.05); }
.photo-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; font: 700 .95rem/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .03em; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.photo-credits { margin-top: 2.5rem; font-size: .72rem; color: var(--muted); }
.photo-credits a { color: inherit; }

/* ---------- view transitions between design worlds ---------- */
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; clip-path: circle(0% at 50% 0%); } to { opacity: 1; clip-path: circle(150% at 50% 0%); } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-110%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; max-height: calc(100vh - 70px); overflow: auto; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: .9em 1em; font-size: 1.05rem; }
  .nav-search input, .nav-search input:focus { width: 100%; }
  .main-nav a.nav-admin { width: auto; height: auto; padding: .9em 1em; justify-content: flex-start; gap: .6em; border-radius: 999px; }
  .nav-admin-label { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; }
  .header-fx-bar { display: inline-flex; order: 2; margin-left: auto; }
  .header-fx-nav { display: none; }
  .nav-toggle { order: 3; margin-left: 0; }
}
@media (max-width: 980px) {
  .triptych { flex-direction: column; height: auto; }
  .panel { min-height: 220px; } .triptych:hover .panel, .triptych .panel:hover { flex: 1; }
  .panel-cta { opacity: 1; transform: none; }
  .product-detail, .checkout { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .checkout-summary { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid, .footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1fr; }
  .layout-grid figure:nth-child(7n+1) { grid-column: auto; grid-row: auto; }
  .prose .img-left, .prose .img-right { float: none; max-width: 100%; margin: 1em 0; }
  .prose .two-col { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-g-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .season-canvas { display: none; }
}
@media print {
  .site-header, .site-footer, .season-canvas, .season-banner, .bg-deco { display: none !important; }
  body { background: #fff; color: #000; }
}
.prose pre .copy-btn { position: absolute; top: .5rem; right: .5rem; font: 600 .7rem/1 var(--f-mono); padding: .45em .7em; border-radius: 6px; border: 1px solid #2a3547; background: #131b28; color: #9fb3c8; cursor: pointer; opacity: 0; transition: opacity .2s; }
.prose pre:hover .copy-btn, .prose pre .copy-btn:focus { opacity: 1; }

/* ---------- Download-Bereich ---------- */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); }
.dl-hero .eyebrow a { color: inherit; text-decoration: none; } .dl-hero .eyebrow a:hover { color: var(--accent); }
.dl-hero h1 { margin: 0 0 .8rem; }
.dl-hero-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.dl-hero-img img { display: block; width: 100%; height: auto; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font: 600 .9rem/1.4 var(--f-mono); color: var(--muted); margin: 1.2rem 0; }
.dl-ver { color: var(--accent); }
.dl-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.dl-actions .btn small { font-weight: 500; opacity: .75; }
.dl-section { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 0; }
.dl-files { display: grid; gap: .7rem; }
.dl-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dl-file.is-primary { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.dl-file-name { font-weight: 700; word-break: break-word; }
.dl-file-info { color: var(--muted); font: .85rem var(--f-mono); text-align: right; }
.dl-sha { grid-column: 1 / -1; font: .74rem/1.4 var(--f-mono); color: var(--muted); word-break: break-all; user-select: all; }
.dl-release { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .7rem; }
.dl-release summary { cursor: pointer; padding: .9rem 1.2rem; font-family: var(--f-mono); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dl-release[open] summary { border-bottom: 1px solid var(--border); }
.dl-release > .prose, .dl-release > .dl-rel-files { padding: 0 1.2rem; }
.dl-release > .prose { padding-top: .6rem; font-size: .95rem; }
.dl-rel-files { list-style: none; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .9rem; }
@media (max-width: 900px) { .dl-hero { grid-template-columns: 1fr; } .dl-file { grid-template-columns: 1fr; } .dl-file-info { text-align: left; } }

/* ==========================================================================
   IT & Security: echte Fotos (Wikimedia Commons), Polaroid-Collage, Untermenü, IT-Tools
   ========================================================================== */
/* Polaroid-Collage im Hintergrund – Firewalls, Router, Betriebssysteme, Hacker. Dunkler Schleier + Neon-Raster darüber */
.theme-security .bg-deco { overflow: hidden; }
.theme-security .polaroid { background: #e9edf0; filter: grayscale(.25) contrast(1.06) brightness(.9);
  box-shadow: 0 1px 2px rgba(0,0,0,.6), 0 18px 36px -14px rgba(0,0,0,.9), 0 0 0 1px rgba(0,255,170,.08); }
.theme-security .polaroid img { background: #1a2230; }
.theme-security .polaroid figcaption { color: #1d2733; }
.theme-security .polaroid:nth-child(12) figcaption { font-family: var(--f-mono); font-size: .8rem; letter-spacing: -.02em; }
.theme-security .polaroid::before { background: rgba(0,255,170,.28); box-shadow: 0 0 10px rgba(0,255,170,.25); }
.theme-security .bg-deco:has(.polaroids)::after {
  background:
    linear-gradient(rgba(0,255,170,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(0,255,170,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px),
    radial-gradient(60vw 40vw at 80% -10%, rgba(56,189,248,.12), transparent 70%),
    linear-gradient(90deg, rgba(6,10,18,.74), rgba(6,10,18,.89) 22%, rgba(6,10,18,.89) 78%, rgba(6,10,18,.74));
  mix-blend-mode: normal; }

/* Hero mit Serverraum-Foto */
.hero-security { min-height: clamp(420px, 66vh, 640px); display: flex; align-items: flex-end; }
.hero-security .topic-hero-img { opacity: .6; object-position: 50% 40%; filter: saturate(.65) contrast(1.12) brightness(.8); animation: kenburns 30s ease-in-out infinite alternate; }
.hero-security::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
              linear-gradient(90deg, rgba(6,10,18,.95) 0%, rgba(6,10,18,.8) 38%, rgba(6,10,18,.25) 75%),
              linear-gradient(180deg, rgba(6,10,18,.2) 0%, transparent 40%, var(--bg) 100%); }
.hero-security .topic-hero-inner > * { max-width: 46rem; }
.hero-security .hero-credit { color: rgba(207,224,238,.6); }

/* Startseite: Foto im Panel und im Themenstreifen */
.panel-security > img { filter: saturate(.6) contrast(1.1) brightness(.75); }
.strip-security { isolation: isolate; overflow: hidden; }
.strip-security:has(.strip-photo)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px), linear-gradient(180deg, var(--bg) 0%, rgba(4,10,18,.86) 16%, rgba(4,10,18,.86) 84%, var(--bg) 100%); }
.strip-security .strip-photo { filter: saturate(.6) brightness(.8); }

/* Karten mit Ersatzfoto */
.card-security .card-ph-photo, .theme-security .card-media img { filter: saturate(.8) contrast(1.05); }
.card-security .card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(2,8,14,.55)), repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }

/* Fotostreifen „Aus dem Serverraum“ */
.photo-strip-sec figure { border-radius: var(--radius); outline: 1px solid var(--border); }
.photo-strip-sec img { filter: saturate(.85) contrast(1.05); }
.photo-strip-sec figure:hover { outline-color: var(--accent); box-shadow: 0 0 40px -12px rgba(0,255,170,.5); }
.photo-strip-sec figcaption { font: 600 .82rem/1.25 var(--f-mono); text-transform: none; letter-spacing: 0; color: var(--accent); background: linear-gradient(transparent, rgba(2,8,14,.92)); }
.photo-strip-sec figcaption::before { content: "> "; color: var(--muted); }

/* ---------- Untermenü (Dropdown) ---------- */
.main-nav li.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { flex: none; width: 1.5rem; height: 2.2rem; margin-left: -.55rem; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 4px; }
.sub-toggle::before { content: ""; display: block; width: .42rem; height: .42rem; margin: 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.sub-toggle:hover { color: var(--text); }
.has-sub.open > .sub-toggle::before { transform: translateY(1px) rotate(-135deg); }
.main-nav .subnav { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 330px; max-width: min(460px, 92vw); max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: .15rem; margin: 0; padding: .45rem; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.main-nav li.has-sub.sub-right > .subnav { left: auto; right: 0; }
.main-nav li.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }   /* Brücke für die Maus */
/* aufklappbare Gruppen im Dropdown: Kategorie › Unterkategorie › … und IT-Tools */
.main-nav .sub-row { display: flex; align-items: stretch; gap: .15rem; }
.main-nav .sub-row > a { flex: 1; min-width: 0; }
.sub-group-toggle { flex: none; width: 2.3rem; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm); }
.sub-group-toggle::before { content: ""; display: block; width: .42rem; height: .42rem; margin: 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.sub-group-toggle:hover, .sub-group-toggle:focus-visible { color: var(--text); background: var(--surface-2); }
.sub-group.open > .sub-row > .sub-group-toggle::before { transform: translateY(1px) rotate(-135deg); }
.main-nav .subnav-sub { display: none; gap: .1rem; margin: .1rem 0 .3rem 1.45rem; padding: 0 0 0 .45rem; list-style: none; border-left: 1px solid var(--border); }
.main-nav .sub-group.open > .subnav-sub { display: grid; }
.main-nav .subnav-sub a { padding: .45rem .6rem; }
.main-nav .subnav-sub a > span:first-child { width: 1.3rem; font-size: .95rem; }
.main-nav .subnav-sub b, .main-nav .subnav-sub .sn-name { font-size: .92em; }
.theme-security .main-nav .subnav-sub { border-left-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav, .has-sub.open > .subnav { opacity: 1; visibility: visible; transform: none; }
.main-nav .subnav a { display: flex; align-items: flex-start; gap: .7rem; width: 100%; padding: .6rem .75rem; border-radius: var(--radius-sm); white-space: normal; }
.main-nav .subnav a > span:first-child { flex: none; width: 1.6rem; text-align: center; font-size: 1.05rem; line-height: 1.3; }
.main-nav .subnav b, .main-nav .subnav .sn-name { display: block; color: var(--text); font-weight: 700; }
.main-nav .subnav small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; line-height: 1.3; font-family: var(--f-body); }
.main-nav .subnav a:hover, .main-nav .subnav a.active { background: var(--surface-2); }
.theme-security .main-nav .subnav { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: 0 0 0 1px rgba(0,255,170,.06), 0 24px 50px -20px rgba(0,0,0,.8), 0 0 40px -20px rgba(0,255,170,.35); }
.theme-security .main-nav .subnav a.active b, .theme-security .main-nav .subnav a.active .sn-name { color: var(--accent); }
@media (max-width: 1240px) {
  .main-nav li.has-sub { flex-wrap: wrap; }
  .main-nav li.has-sub > a { flex: 1; }
  .sub-toggle { width: 3rem; height: 3rem; margin: 0; }
  .main-nav .subnav { position: static; width: 100%; min-width: 0; padding: 0 0 .4rem 1rem; background: none; border: 0; box-shadow: none !important; transform: none; display: none; opacity: 1; visibility: visible; }
  .main-nav li.has-sub::after { display: none; }
  .main-nav .subnav { max-height: none; overflow: visible; }
  .sub-group-toggle { width: 3rem; }
  .has-sub.open > .subnav, .has-sub:has(a.active) > .subnav { display: grid; }
}

/* ---------- IT-Tools ---------- */
.tools-head h1 { font-size: clamp(2.4rem, 7vw, 5rem); color: var(--accent); text-shadow: 0 0 24px rgba(0,255,170,.3); }
.tools-head .eyebrow { color: var(--accent-2); text-transform: none; letter-spacing: 0; font-size: .85rem; overflow-wrap: anywhere; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.6rem; }
.tool-tabs a { font: 600 .85rem/1 var(--f-mono); padding: .65em 1em; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); background: var(--surface); }
.tool-tabs a:hover { color: var(--text); border-color: var(--accent); }
.tool-tabs a.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }
.tool-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 260px; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(120% 90% at 20% 0%, #0f2a40, var(--surface) 70%); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.tool-card-sm { min-height: 170px; }
.tool-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.6) brightness(.6); transition: transform 1s var(--ease); }
.tool-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,10,18,.1), rgba(6,10,18,.92)), repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px); }
.tool-card:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -10px rgba(0,255,170,.45); transform: translateY(-4px); }
.tool-card:hover > img { transform: scale(1.06); }
.tool-card-body { display: grid; gap: .3rem; padding: 1.3rem 1.4rem; }
.tool-card strong, .tool-card .tool-title { font: 700 1.35rem/1.1 var(--f-mono); color: var(--accent); }
.tool-card em { font-style: normal; color: var(--muted); }
.tool-icon { font-size: 1.6rem; }

.tool-panel { margin-top: 1rem; }
.tool-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1.3rem; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.tool-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.tool-form .grow { flex: 1 1 320px; }
.tool-form input, .tool-form select, .tool-form textarea { font-family: var(--f-mono); font-size: .92rem; }
.ssl-form select { min-width: 15rem; }
.cert-form { display: grid; align-items: stretch; }
.cert-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.cert-form legend { font: 700 .9rem/1 var(--f-mono); color: var(--accent); padding: 0 .4rem; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.drop { padding: 1rem; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: var(--radius-sm); background: rgba(0,255,170,.025); }
.drop input[type=file] { padding: .5rem; background: var(--bg-2); }
.drop input[type=file]::file-selector-button { font: 600 .8rem var(--f-mono); margin-right: .8rem; padding: .45rem .8rem; border-radius: 4px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.privacy-note { margin: 0; }
[data-pass-fields][hidden] { display: none; }

.ssl-result { padding-top: 2rem; }
.ssl-summary { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.4rem; }
.ssl-summary h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); overflow-wrap: anywhere; }
.ssl-summary p { margin: .3rem 0 0; overflow-wrap: anywhere; }
.grade { flex: none; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 12px; font: 800 2.8rem/1 var(--f-mono); color: #02140d; background: var(--accent); box-shadow: 0 0 40px -6px currentColor; }
.grade-a { background: #00e0a4; color: #02140d; box-shadow: 0 0 40px -8px #00e0a4; }
.grade-b { background: #9be15d; color: #0d1a05; box-shadow: 0 0 40px -8px #9be15d; }
.grade-c { background: #f5b83d; color: #1f1402; box-shadow: 0 0 40px -8px #f5b83d; }
.grade-f { background: #ff3b6b; color: #fff; box-shadow: 0 0 40px -8px #ff3b6b; }
.check-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .45rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-left-width: 3px; }
.chk-sym { flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; font: 800 .8rem/1 var(--f-mono); }
.chk-ok { border-left-color: #00e0a4 !important; } .chk-ok .chk-sym { background: #00e0a4; color: #02140d; }
.chk-warn { border-left-color: #f5b83d !important; } .chk-warn .chk-sym { background: #f5b83d; color: #1f1402; }
.chk-bad { border-left-color: #ff3b6b !important; } .chk-bad .chk-sym { background: #ff3b6b; color: #fff; }
.chk-info { border-left-color: var(--accent-2) !important; } .chk-info .chk-sym { background: var(--accent-2); color: #021018; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.2rem; margin-bottom: 1.6rem; }
.term-box { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem 1.2rem; min-width: 0; }
.term-box h3 { font: 700 .95rem/1 var(--f-mono); color: var(--accent); margin: 0 0 1rem; text-transform: none; }
.term-box h3::before { content: "## "; color: var(--muted); font-weight: 400; }
.tls-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tls-table th, .tls-table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--border); }
.tls-table thead th { font: 600 .72rem/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tls-table tbody th { font-family: var(--f-mono); white-space: nowrap; }
.pill { display: inline-block; padding: .3em .6em; border-radius: 4px; font: 700 .75rem/1 var(--f-mono); white-space: nowrap; }
.pill-ok { background: rgba(0,224,164,.15); color: #00e0a4; } .pill-bad { background: rgba(255,59,107,.15); color: #ff6b8e; }
.pill-warn { background: rgba(245,184,61,.15); color: #f5b83d; } .pill-info { background: rgba(56,189,248,.12); color: var(--accent-2); }
.kv { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .45rem 1rem; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fp { letter-spacing: -.02em; user-select: all; }
.chain-title { font-family: var(--f-mono); font-size: 1.15rem; margin: 2rem 0 1rem; }
.chain { list-style: none; margin: 0 0 1.6rem; padding: 0 0 0 1.4rem; position: relative; display: grid; gap: .7rem; }
.chain::before { content: ""; position: absolute; left: .45rem; top: 1rem; bottom: 1rem; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .5; }
.chain-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.chain-item::before { content: ""; position: absolute; left: -1.25rem; top: 1.1rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.chain-item.is-expired { border-color: #ff3b6b; } .chain-item.is-expired::before { border-color: #ff3b6b; }
.chain-anchor { border-style: dashed; }
.chain-item summary { cursor: pointer; overflow-wrap: anywhere; }
.chain-item details[open] summary { margin-bottom: .9rem; }
.chain-item textarea { margin: .9rem 0 .6rem; }
.chain-role { display: inline-block; margin-right: .4rem; padding: .25em .5em; border-radius: 3px; font: 700 .68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); color: var(--accent-2); }
.pem-box summary, .cheat summary { cursor: pointer; font: 700 .95rem/1.2 var(--f-mono); color: var(--accent); }
.pem-box textarea { margin: 1rem 0 .7rem; }
.pem-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cheat pre { margin: 1rem 0 0; padding: 1rem; overflow-x: auto; background: #050910; border: 1px solid var(--border); border-radius: var(--radius-sm); font: .82rem/1.6 var(--f-mono); color: #b7f5dc; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-busy::after { content: ""; width: .9em; height: .9em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .5rem; } .ssl-summary { align-items: flex-start; } .grade { width: 4rem; height: 4rem; font-size: 2.1rem; } }

/* ---------- IT-Tool „IP & System-Info“ ---------- */
.flash-info { border-color: var(--accent-2, #38bdf8); } .flash-info::before { content: "i "; color: var(--accent-2, #38bdf8); font-weight: 900; }
.ip-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: 1.4rem; padding: 1.4rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(120% 160% at 0% 0%, rgba(0,255,170,.09), transparent 60%), color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.ip-hero-main { min-width: 0; }
.ip-hero-main p { margin: 0; }
.ip-hero-addr { font-size: clamp(1.4rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--accent); overflow-wrap: anywhere; text-shadow: 0 0 24px rgba(0,255,170,.35); }
.ip-hero-main .ip-hero-sub { margin-top: .45rem; }
.ip-hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.pill-lg { font-size: .85rem; padding: .55em .85em; white-space: normal; }
.ip-section { padding-top: 1.6rem; }
.ip-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 1.2rem; }
.ip-card h3 small { font-weight: 400; }
.ip-addr { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 .7rem; font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 700; }
.ip-value { min-width: 0; overflow-wrap: anywhere; }
.ip-verdict { margin: 0 0 1rem; }
.ip-card .kv { margin-bottom: 1.1rem; }
.ip-hints { margin: 0 0 .8rem; }
.ip-hints li, .ip-notes li { font-size: .9rem; overflow-wrap: anywhere; }
.ip-notes summary { cursor: pointer; font: 600 .85rem/1.2 var(--f-mono); color: var(--muted); }
.ip-notes[open] summary { margin-bottom: .7rem; }
.ip-notes .check-list { margin: 0; }
.ip-card.is-loading .ip-value::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .5em; vertical-align: -.1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.ip-card.is-missing { border-style: dashed; }
.ip-card.is-missing .ip-value { color: var(--muted); }
.ip-proto { margin: 1rem 0 0; }
.sys-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sys-grid .kv { grid-template-columns: minmax(7.5rem, max-content) 1fr; }
[data-sys].is-warn { color: #f5b83d; font-weight: 600; }
.hdr-table { margin-top: 1rem; }
.hdr-table th { width: 1%; padding-right: 1rem; color: var(--accent-2); vertical-align: top; white-space: nowrap; }
.hdr-table td { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 560px) { .sys-grid .kv { grid-template-columns: 1fr; } .hdr-table th { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .ip-card.is-loading .ip-value::after { animation: none; } }

/* ---------- IT-Tool „Crontab-Generator“ ---------- */
.cron-global { display: block; }
.cron-global fieldset, .cron-entry fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem 1.1rem; margin: 0; display: grid; gap: .9rem; min-width: 0; }
.cron-global legend, .cron-entry legend { font: 700 .85rem/1 var(--f-mono); color: var(--accent); padding: 0 .4rem; }
.cron-app label.check { display: block; font-weight: 500; font-size: .9rem; cursor: pointer; overflow-wrap: anywhere; }
.cron-app label.check input { margin-right: .45rem; vertical-align: -.1em; }
.cron-app code { overflow-wrap: anywhere; }
.cron-app label { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; min-width: 0; }
.cron-app input, .cron-app select, .cron-app textarea { font-family: var(--f-mono); font-size: .9rem; }
.cron-app [hidden] { display: none !important; }
.cron-entries-wrap { padding-top: 1.4rem; }
.cron-entries { display: grid; gap: 1.2rem; margin-bottom: 1rem; }
.cron-entry { background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(4px); padding: 1rem 1.2rem 1.2rem; transition: opacity .2s, border-color .2s; }
.cron-entry.is-off { opacity: .6; border-left-color: var(--muted); }
.cron-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-bottom: 1rem; }
.cron-entry-head .cron-desc { flex: 1 1 260px; width: auto; font-family: var(--f-body, inherit); font-weight: 600; }
.cron-active strong { color: var(--accent); }
.cron-entry-tools { display: flex; gap: .35rem; }
.cron-entry-tools .icon-btn { font-size: .95rem; display: grid; place-items: center; }
.cron-entry-tools .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.cron-entry-tools .icon-del:hover { border-color: #ff3b6b; color: #ff6b8e; }
.cron-entry-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.cron-app .row-2 { align-items: start; }
@media (max-width: 900px) { .cron-entry-body { grid-template-columns: 1fr; } }
.cron-when { grid-column: 1 / -1; }
.cron-when-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; }
.cron-when-row > label { flex: 0 1 auto; }
.cron-when-row > label:first-child { flex: 1 1 240px; }
.cron-when-row input[type=number] { width: 6rem; }
.cron-when-row input[type=time] { width: 8.5rem; }
.cron-days { display: flex; flex-wrap: wrap; gap: .4rem; }
.cron-app .day-chip { display: inline-flex; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip span { display: inline-block; min-width: 3rem; text-align: center; padding: .5em .8em; border: 1px solid var(--border); border-radius: var(--radius-sm); font: 700 .82rem/1 var(--f-mono); color: var(--muted); background: var(--bg-2); transition: all .15s; }
.day-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day-chip input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.cron-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.cron-fields label { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cron-fields input { text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--accent); padding: .6rem .3rem; }
.cron-human { margin: 0; font: 600 .92rem/1.4 var(--f-mono); color: var(--accent-2); }
.cron-human.is-bad { color: #ff6b8e; }
.cron-cmd { flex: 1 1 auto; }
.cron-what .row-2 .cron-cmd { grid-column: 1 / -1; }
.cron-what .row-2:has(.cron-user:not([hidden])) { grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); }
.cron-what .row-2:has(.cron-user:not([hidden])) .cron-cmd { grid-column: auto; }
.cron-more summary { cursor: pointer; font: 600 .82rem/1.3 var(--f-mono); color: var(--muted); }
.cron-more[open] summary { margin-bottom: .8rem; }
.cron-import { margin-top: 1rem; }
.cron-import textarea { width: 100%; margin-bottom: .8rem; }
.cron-output { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 1.2rem; align-items: start; padding-top: 1rem; }
.cron-pre { margin: 0 0 1rem; padding: 1rem 1.1rem; overflow-x: auto; background: #050910; border: 1px solid var(--border); border-radius: var(--radius-sm); font: .85rem/1.65 var(--f-mono); color: #b7f5dc; white-space: pre; tab-size: 4; min-height: 6rem; }
.cron-output .check-list { margin-bottom: 1rem; }
.cron-output .check-list li { font-size: .88rem; }
.cron-install { margin-top: .8rem; }
.cron-install code { overflow-wrap: anywhere; }
.cron-explain-list { display: grid; gap: .9rem; }
.cron-explain-item { padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.cron-explain-item.is-off { opacity: .6; }
.cron-explain-item h4 { margin: 0 0 .35rem; font-size: .92rem; color: var(--accent); overflow-wrap: anywhere; }
.cron-explain-item p { margin: 0 0 .5rem; font-size: .9rem; }
.cron-runs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cron-runs li { padding: .3em .55em; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.cron-explain-item .check-list { margin: .6rem 0 0; }
@media (max-width: 640px) {
  .cron-fields { gap: .35rem; }
  .cron-fields label { font-size: .6rem; letter-spacing: 0; }
  .cron-fields input { font-size: .9rem; padding: .55rem .1rem; }
  .cron-what .row-2:has(.cron-user:not([hidden])) { grid-template-columns: 1fr; }
}

/* ---------- Kategorien & Unterkategorien (Beiträge) ---------- */
.cat-crumbs { font: 600 .78rem/1.4 var(--f-mono); letter-spacing: .06em; color: var(--muted); margin: -.4rem 0 .8rem; }
.cat-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.cat-crumbs a:hover { color: var(--accent); }
.cat-crumbs [aria-current] { color: var(--text); }
.topic-hero .cat-crumbs { position: relative; z-index: 1; }
.cat-nav { display: grid; gap: .55rem; margin-top: 1.6rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.cat-chip { display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.cat-chip b { font: 700 .72rem/1 var(--f-mono); padding: .2em .5em; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--muted); }
.cat-chip:hover { border-color: var(--accent); }
.cat-chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cat-chip.active b { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: inherit; }
.cat-chips-sub { padding-left: .9rem; border-left: 2px solid var(--border); }
.cat-lvl-2 { margin-left: .9rem; } .cat-lvl-3 { margin-left: 1.8rem; } .cat-lvl-4 { margin-left: 2.7rem; } .cat-lvl-5 { margin-left: 3.6rem; }
@media (max-width: 600px) { .cat-lvl-2, .cat-lvl-3, .cat-lvl-4, .cat-lvl-5 { margin-left: 0; } }
.cat-more { font-style: normal; opacity: .55; margin-left: -.15em; }
.cat-chips-sub .cat-chip { font-size: .82rem; padding: .4em .8em; }
.theme-security .cat-chip { font-family: var(--f-mono); border-radius: 4px; font-size: .82rem; }
.theme-security .cat-chip::before { content: "./"; color: var(--accent); opacity: .7; }
.theme-security .cat-chip.active::before { color: inherit; }
.theme-bike .cat-chip { border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; font-family: var(--f-cond); }
.theme-travel .cat-chip { border-radius: 10px; }
.card-cat { font: 600 .72rem/1 var(--f-mono); color: var(--muted); margin-left: .5em; letter-spacing: .03em; }
.article-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.chip-sep { color: var(--muted); font-weight: 700; }
.chip-cat { text-transform: none; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .cat-chip { transition: none; } }

/* Bild-Icons aus der Icon-Bibliothek (Einstellungen › Emojis & Icons) – skaliert mit der Schrift wie ein Emoji */
.ico-img { display: inline-block; width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -.2em; border: 0; }
.panel-icon .ico-img { width: 1em; height: 1em; vertical-align: 0; }

/* ---------- Kontaktformular (/kontakt) ---------- */
.contact-head { max-width: var(--wrap-narrow, 1500px); }
.contact { display: grid; justify-items: start; }
.contact-card { width: 100%; max-width: 760px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 24px 60px -34px rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.contact-form { display: grid; gap: 1.1rem; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.1rem; }
.contact-grid .w-full { grid-column: 1 / -1; }
.contact-form .field { display: grid; gap: .4rem; align-content: start; }
.contact-form .field-label { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 600; font-size: .92rem; }
.contact-form .req { color: #ef4444; font-weight: 700; }
.field-input { position: relative; }
.field-input input { padding-right: 2.4rem; }
.field-state { position: absolute; right: .8rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -.525rem; border-radius: 50%; pointer-events: none; }
.field-help { color: var(--muted); font-size: .78rem; }
.field-error { color: #ef4444; font-size: .8rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select, .captcha.is-invalid input { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); background: color-mix(in srgb, #ef4444 6%, var(--surface)); }
.field.is-invalid .field-label, .field.is-invalid .check { color: #f87171; }
.field.is-invalid .field-state { background: #ef4444; }
.field.is-invalid .field-state::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 .7rem/1 var(--f-body); }
.field.is-valid input, .field.is-valid textarea, .field.is-valid select { border-color: color-mix(in srgb, #22c55e 65%, var(--border)); }
.field.is-valid .field-state { background: #22c55e; }
.field.is-valid .field-state::after { content: ""; position: absolute; left: .36rem; top: .2rem; width: .26rem; height: .52rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.field.is-checking .field-state { border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: pow-spin .8s linear infinite; }
.field.is-checking .field-error { color: var(--muted); font-weight: 500; }
.field.is-checking .field-error:empty { display: none; }
.contact-captcha-err { margin: 0; }
.contact-actions { align-items: center; gap: 1rem; justify-content: space-between !important; }
.contact-done-err .contact-check svg { stroke: #ef4444; }
.contact-done-mail .contact-check svg { stroke: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 10rem; line-height: 1.55; }
.contact-count { font: 500 .75rem/1 var(--f-mono); }
.contact-count.over { color: var(--accent-2); }
.contact-form .check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.contact-form .check input { margin-top: .3em; }
.contact-errors ul { margin: 0; padding-left: 1.1rem; }
.contact-actions { display: flex; justify-content: flex-end; }
.contact-actions .btn.is-busy { opacity: .75; cursor: progress; }

/* Proof-of-Work-Status */
.pow { display: flex; gap: .85rem; align-items: center; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px dashed var(--border); background: var(--surface-2); }
.pow-text { display: grid; gap: .15rem; }
.pow-text b { font-size: .9rem; }
.pow-text small { color: var(--muted); font-size: .78rem; }
.pow-icon { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); }
.pow[data-state=busy] .pow-icon, .pow[data-state=wait] .pow-icon { animation: pow-spin .8s linear infinite; }
.pow[data-state=ok] { border-style: solid; border-color: color-mix(in srgb, #22c55e 55%, var(--border)); }
.pow[data-state=ok] .pow-icon { border: 0; background: #22c55e; animation: none; position: relative; }
.pow[data-state=ok] .pow-icon::after { content: ""; position: absolute; left: .52rem; top: .3rem; width: .4rem; height: .75rem; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pow[data-state=fail] { border-color: color-mix(in srgb, #ef4444 55%, var(--border)); }
.pow[data-state=fail] .pow-icon { border-color: #ef4444; animation: none; }
@keyframes pow-spin { to { transform: rotate(360deg); } }

/* Bild-Captcha */
.captcha { display: grid; gap: .7rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.js .captcha-fallback:not(.show) { display: none; }
.captcha-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--border); background: #f5f5f5; max-width: 100%; height: auto; }
.captcha input[name=captcha] { max-width: 14rem; font-family: var(--f-mono); letter-spacing: .3em; text-transform: uppercase; }

/* Bestätigung */
.contact-done { text-align: center; display: grid; justify-items: center; gap: .4rem; }
.contact-done .form-actions { justify-content: center; margin-top: .8rem; }
.contact-check svg { width: 4.2rem; height: 4.2rem; fill: none; stroke: #22c55e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.contact-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: contact-draw .7s var(--ease) forwards; }
.contact-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: contact-draw .45s .55s var(--ease) forwards; }
@keyframes contact-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .contact-actions .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .field.is-checking .field-state, .pow-icon, .contact-check circle, .contact-check path { animation: none !important; stroke-dashoffset: 0; } }

/* ---------- Download-Button im Artikel (Download einem Beitrag zugeordnet) ---------- */
.article-dl { margin: 1.4rem auto; display: flex; flex-wrap: wrap; gap: .8rem; }
.article-dl-end { margin-top: 2.2rem; }
.dl-cta { --b: var(--accent); display: inline-flex; align-items: center; gap: .9rem; padding: .7rem 1.25rem .7rem .75rem; border-radius: 999px; text-decoration: none;
  color: var(--on-accent); background: linear-gradient(135deg, var(--b), color-mix(in srgb, var(--b) 72%, var(--accent-2)));
  box-shadow: 0 12px 28px -16px var(--b), 0 0 0 1px color-mix(in srgb, var(--b) 60%, transparent) inset; transition: transform .2s var(--ease), box-shadow .2s; }
.dl-cta:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 18px 34px -16px var(--b), 0 0 0 1px color-mix(in srgb, var(--b) 60%, transparent) inset; }
.dl-cta-icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: color-mix(in srgb, var(--on-accent) 16%, transparent); }
.dl-cta-icon svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dl-cta:hover .dl-cta-icon svg { animation: dl-bounce .7s var(--ease); }
.dl-cta-text { display: grid; gap: .2rem; line-height: 1.1; }
.dl-cta-text b { font: 700 1rem/1.1 var(--f-body); }
.dl-cta-text small { font: 500 .74rem/1 var(--f-mono); opacity: .82; letter-spacing: .02em; }
.theme-security .dl-cta { border-radius: var(--radius-sm); font-family: var(--f-mono); }
.theme-security .dl-cta-icon { border-radius: 4px; }
.theme-bike .dl-cta { border-radius: 6px; background: linear-gradient(180deg, #ffd21a, #e6b400); }
.theme-bike .dl-cta-text b { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .04em; font-size: 1.08rem; }
.theme-travel .dl-cta { border-radius: 12px; }
@keyframes dl-bounce { 40% { transform: translateY(3px); } 70% { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .dl-cta, .dl-cta:hover .dl-cta-icon svg { transition: none; animation: none; } }
.dl-articles { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* ---- SEO-Zusatztext & häufige Fragen (IT-Tools, Downloads) ---- */
.seo-extra .faq-list { display: grid; gap: .6rem; margin-top: 1rem; }
.faq-item { border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--surface, transparent) 70%, transparent); }
.faq-item summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 1rem .9rem; }
.faq-item .faq-answer > :first-child { margin-top: 0; }
.faq-item .faq-answer > :last-child { margin-bottom: 0; }

/* ---- ehemals <b>/<strong> (nur Optik, keine Betonung – weniger Fett-Tags für Suchmaschinen) ---- */
.panel-title, .gcard-title, .fav-letter, .lc-title, .sn-name, .stat-num, .tool-title { font-weight: 700; }
.gcard-title, .tool-title { display: block; }
.hero-mix-head .mega-sub { display: block; margin-top: .7em; font: 600 clamp(.85rem, 1.4vw, 1.05rem)/1.3 var(--f-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.strip-lead { max-width: 60ch; }

/* ---- Teilen-Leiste ---- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 1.6rem 0; font-size: .85rem; }
.share-label { color: var(--muted); font-weight: 600; margin-right: .2rem; }
.share-btn { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  background: transparent; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; line-height: 1.2; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.share-native { border-color: var(--accent); }
.footer-share { margin-top: 1.5rem; }
.footer-share .share-bar { margin: 0; justify-content: flex-start; }
.share-dl { margin: 1rem 0 0; }
