/* ---------- Schriften (eigene AWK-Schriften, keine Fremdlizenz) ---------- */
@font-face { font-family: "AWK-Polvik"; font-weight: 700; font-display: swap;
  src: url("../fonts/awk-polvik-700.woff") format("woff"); }
@font-face { font-family: "AWK-Stelvor"; font-weight: 600; font-display: swap;
  src: url("../fonts/awk-stelvor-600.woff") format("woff"); }

/* ---------- Farben: links AWK-TECH, rechts AWK-GAMING ---------- */
:root {
  --tech-accent:   #ff6a3d;
  --tech-accent-2: #34e0d0;
  --game-cyan:     #00f0ff;
  --game-purple:   #b026ff;

  --bg:        #08090f;
  --ink:       #f2f3f5;
  --ink-dim:   #a3a8b8;
  --tech-img:  url("../images/header/tech-dunkel.webp");
  --game-img:  url("../images/header/gaming-dunkel.webp");
  --tech-tint: rgba(10, 11, 14, .55);
  --game-tint: rgba(6, 6, 17, .55);
  --icon-border: rgba(255, 255, 255, .16);
  --icon-bg:     rgba(255, 255, 255, .05);
  --logo-filter: brightness(1.22) contrast(1.22);
  --game-logo-filter: brightness(1.4) contrast(1.15);
  --tech-on-accent: #170a06;
  --card-bg:     rgba(12, 13, 20, .55);
  --card-border: rgba(255, 255, 255, .10);
  --menu-bg:     rgba(10, 11, 18, .94);
  --header-glass: rgba(8, 9, 15, .55);
  --logo-h-sm:   46px;

  --header-h: 104px;
  --header-h-sm: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
  --tech-accent:   #d9530b;
  --tech-accent-2: #0e8f82;
  --game-cyan:     #0099cc;
  --game-purple:   #9020dd;

  --bg:        #f4f4f2;
  --ink:       #17181c;
  --ink-dim:   #4f5563;
  --tech-img:  url("../images/header/tech-hell.webp");
  --game-img:  url("../images/header/gaming-hell.webp");
  --tech-tint: rgba(245, 243, 238, .45);
  --game-tint: rgba(245, 247, 250, .45);
  --icon-border: rgba(0, 0, 0, .16);
  --icon-bg:     rgba(255, 255, 255, .6);
  --tech-on-accent: #fff4ec;
  --card-bg:     rgba(255, 255, 255, .78);
  --card-border: rgba(255, 255, 255, .8);
  --menu-bg:     rgba(250, 250, 248, .96);
  --header-glass: rgba(250, 250, 248, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background .35s var(--ease), color .35s var(--ease);
}

/* =========================================================
   HEADER – links AWK-TECH, rechts AWK-GAMING, Mitte fließend
   ========================================================= */
.site-header {
  transition: height .35s var(--ease), box-shadow .35s var(--ease);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

/* zwei Hintergrund-Ebenen, die in der Mitte ineinander überblenden */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: opacity .35s var(--ease);
}
.site-header::before {            /* AWK-TECH */
  background-image: linear-gradient(var(--tech-tint), var(--tech-tint)), var(--tech-img);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 70%);
          mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 70%);
}
.site-header::after {             /* AWK-GAMING */
  background-image: linear-gradient(var(--game-tint), var(--game-tint)), var(--game-img);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 70%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 70%, #000 100%);
}

/* weiche Farbschleier: warm links, neon rechts */
.header-glow-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 140% at 0% 50%,   color-mix(in srgb, var(--tech-accent) 22%, transparent), transparent 70%),
    radial-gradient(60% 140% at 100% 50%, color-mix(in srgb, var(--game-purple) 24%, transparent), transparent 70%),
    radial-gradient(30% 120% at 50% 50%,  color-mix(in srgb, var(--tech-accent-2) 14%, transparent), transparent 70%);
}

/* Leuchtlinie unten: Orange → Türkis/Cyan → Lila */
.header-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--tech-accent) 15%,
    var(--tech-accent-2) 45%,
    var(--game-cyan) 55%,
    var(--game-purple) 85%,
    transparent 100%);
  opacity: .8;
}

/* ---------- Animation beim Scrollen ---------- */
body { padding-top: var(--header-h); }        /* Platz für den festen Header */
.header-glow-bg { transition: background-color .35s var(--ease); }
.header-line    { transition: opacity .35s var(--ease), box-shadow .35s var(--ease); }
.brand img      { transition: height .35s var(--ease), filter .3s var(--ease); }
.site-header.is-scrolled {
  height: var(--header-h-sm);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .65);
}
.site-header.is-scrolled .header-glow-bg { background-color: var(--header-glass); }
.site-header.is-scrolled .header-line {
  opacity: 1;
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--tech-accent-2) 45%, transparent);
}
.site-header.is-scrolled .brand img { height: var(--logo-h-sm); }
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-glow-bg, .header-line, .brand img { transition: none; }
}

.header-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
}

/* Logo AWK-TECH oben links */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  height: clamp(44px, 5vw, 64px);   /* kompaktes AWK-Zeichen */
  width: auto;
  filter: var(--logo-filter);
  transition: filter .3s var(--ease);
}
.brand:hover img {
  filter: var(--logo-filter) drop-shadow(0 2px 12px color-mix(in srgb, var(--tech-accent) 45%, transparent));
}

/* Navigation im Gaming-Stil */
.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(.8rem, 2vw, 2rem);
}
.main-nav a {
  position: relative;
  font-family: "AWK-Stelvor", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: .4rem .1rem;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tech-accent), var(--game-cyan), var(--game-purple));
  transition: width .28s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

/* Hell/Dunkel-Schalter */
.theme-toggle {
  width: 40px; height: 40px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--ink-dim);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.theme-toggle:hover {
  color: var(--game-cyan);
  border-color: var(--game-cyan);
  box-shadow: 0 0 14px color-mix(in srgb, var(--game-cyan) 35%, transparent);
}
.theme-toggle svg { width: 20px; height: 20px; }

/* Menü-Knopf (nur Handy) – gleiche Form wie der Hell/Dunkel-Schalter */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun  { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

/* =========================================================
   INHALT (Platzhalter, wird Stück für Stück gefüllt)
   ========================================================= */
main { min-height: 60vh; }

/* =========================================================
   ZWEITEILUNG – links AWK-TECH, rechts AWK-GAMING
   ========================================================= */
.split {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: clamp(1.2rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
/* Hintergründe wie im Header, in der Mitte weich überblendet */
.split-bg::before,
.split-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.split-bg::before {
  background-image: linear-gradient(var(--tech-tint), var(--tech-tint)), var(--tech-img);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 62%);
          mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 62%);
}
.split-bg::after {
  background-image: linear-gradient(var(--game-tint), var(--game-tint)), var(--game-img);
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 62%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 38%, #000 62%, #000 100%);
}
/* leuchtende Trennnaht in der Mitte */
.split-seam {
  position: absolute;
  top: 8%; bottom: 8%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--tech-accent) 20%,
              var(--tech-accent-2) 45%, var(--game-cyan) 55%, var(--game-purple) 80%, transparent);
  box-shadow: 0 0 24px 2px color-mix(in srgb, var(--tech-accent-2) 35%, transparent);
  opacity: .7;
}

.half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.2rem, 4vw, 4rem);
}
.half-card {
  width: min(560px, 100%);
  padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1.4rem, 3vw, 2.6rem);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.half-logo { display: block; margin: 0 auto 1.6rem; }
.half-logo img {
  display: block;
  width: min(440px, 100%);
  height: auto;
  margin: 0 auto;
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.half-logo:hover img { transform: scale(1.03); }

.kicker {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.half h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin-bottom: .9rem;
}
.half p { color: var(--ink-dim); margin-bottom: 1.2rem; }
.points {
  list-style: none;
  display: grid;
  gap: .55rem;
  text-align: left;
  width: fit-content;
  margin: 0 auto 1.8rem;
}
.points li { position: relative; padding-left: 1.7rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .7rem; height: .7rem;
  border-radius: 3px;
  transform: rotate(45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.7rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-host { display: block; margin-top: .8rem; font-size: .85rem; color: var(--ink-dim); }

/* kein Fokus-Rahmen beim Anklicken mit der Maus (Tastatur-Bedienung behält ihn) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---- AWK-TECH: Orange / Türkis, Bahnschrift ---- */
.half--tech { font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif; }
.half--tech .half-logo img { filter: var(--logo-filter); }
.half--tech .half-logo:hover img {
  filter: var(--logo-filter) drop-shadow(0 4px 22px color-mix(in srgb, var(--tech-accent) 55%, transparent));
}
/* dunkle Glanz-Plakette ohne Orange (in Hell und Dunkel gleich) */
.half--tech .kicker {
  position: relative;
  overflow: hidden;
  color: #eef0f4;
  background: linear-gradient(180deg, #2a2d36 0%, #14161c 55%, #0b0c10 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .6),
    0 4px 14px -4px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}
.half--tech .kicker::before {          /* Glanz oben */
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 1px;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.half--tech h2 span {
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.half--tech .points li::before { background: linear-gradient(135deg, var(--tech-accent), var(--tech-accent-2)); }
.half--tech .btn {
  background: var(--tech-accent);
  color: var(--tech-on-accent);
  box-shadow: 0 10px 26px -10px var(--tech-accent);
}
.half--tech .btn:hover { box-shadow: 0 14px 34px -8px var(--tech-accent); }

/* ---- AWK-GAMING: Cyan / Lila, AWK-Polvik + AWK-Stelvor ---- */
.half--gaming .half-logo img { filter: var(--game-logo-filter); }
.half--gaming .half-logo:hover img {
  filter: var(--game-logo-filter) drop-shadow(0 2px 16px color-mix(in srgb, var(--game-cyan) 55%, transparent));
}
.half--gaming .kicker {
  font-family: "AWK-Stelvor", system-ui, sans-serif;
  font-size: .85rem;
  color: var(--game-cyan);
  background: color-mix(in srgb, var(--game-cyan) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--game-cyan) 40%, transparent);
}
.half--gaming h2 {
  font-family: "AWK-Polvik", system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.75vw, 1.55rem);
  letter-spacing: .02em;
}
.half--gaming h2 span { white-space: nowrap; }
.half--gaming h2 span {
  background: linear-gradient(90deg, var(--game-cyan), var(--game-purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.half--gaming .points { font-family: "AWK-Stelvor", system-ui, sans-serif; font-size: 1.08rem; }
.half--gaming .points li::before {
  background: linear-gradient(135deg, var(--game-cyan), var(--game-purple));
  box-shadow: 0 0 10px color-mix(in srgb, var(--game-cyan) 60%, transparent);
}
.half--gaming .btn {
  font-family: "AWK-Polvik", system-ui, sans-serif;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: none;            /* Webadresse in normaler Schreibweise */
  background: linear-gradient(90deg, var(--game-cyan), var(--game-purple));
  color: #fff;
  box-shadow: 0 10px 26px -10px var(--game-purple);
}
.half--gaming .btn:hover {
  box-shadow: 0 0 22px color-mix(in srgb, var(--game-cyan) 55%, transparent),
              0 14px 34px -8px var(--game-purple);
}

/* =========================================================
   FOOTER – Impressum & Copyright von AWK-TECH
   ========================================================= */
.site-footer {
  position: relative;
  background:
    radial-gradient(50% 160% at 0% 100%,   color-mix(in srgb, var(--tech-accent) 12%, transparent), transparent 70%),
    radial-gradient(50% 160% at 100% 100%, color-mix(in srgb, var(--game-purple) 12%, transparent), transparent 70%);
}
.footer-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--tech-accent) 15%, var(--tech-accent-2) 45%,
    var(--game-cyan) 55%, var(--game-purple) 85%, transparent 100%);
  opacity: .5;
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: .9rem;
  color: var(--ink-dim);
}
.footer-inner a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-inner a:hover { color: var(--tech-accent); }

/* Handy */
/* Beim Zusammenschieben bleiben beide Hälften immer nebeneinander –
   Inhalte werden nur kompakter */
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; }
.half-card { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Beide Fenster gleich groß: gleiche Höhe, Logos im gleich hohen Rahmen,
   Button unten bündig */
.half-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.half-text {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.half-card .points { margin-bottom: 1.4rem; }
.half-card .btn { margin-top: auto; }
/* Logo-Rahmen in beiden Fenstern gleich groß (skaliert mit der Kartenbreite).
   Größenverhältnis wie auf den Original-Seiten: Schriftzug „AWK-TECH“ gleich
   hoch wie „AWK-GAMING“ -> Tech-Logo = 78,9 % der Gaming-Logo-Breite */
.half-logo {
  width: min(440px, 100%);
  aspect-ratio: 440 / 116;
  display: flex;
  align-items: center;
  justify-content: center;
}
.half-logo img { height: auto; max-height: none; }
.half--gaming .half-logo img { width: 100%; }
.half--tech   .half-logo img { width: 78.9%; }

@media (max-width: 900px) {
  .half { padding: 0 .7rem; }
  .half-card { padding: 1.4rem 1rem; border-radius: 16px; }
  .half-logo { margin-bottom: 1.1rem; }
  .kicker { font-size: .66rem; letter-spacing: .08em; padding: .25rem .6rem; }
  .half h2 { font-size: 1.2rem; }
  .half--gaming h2 { font-size: 1.05rem; }
  .half p, .points { font-size: .9rem; }
  .half--gaming .points { font-size: .98rem; }
  .btn { padding: .7rem 1.1rem; font-size: .85rem; }
  .half--gaming .btn { font-size: .72rem; }
}
/* =========================================================
   INFOBEREICHE unter den beiden Fenstern (bewusst ohne Symbole)
   ========================================================= */
.half-infos {
  flex: none;
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}
.info-tile {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.info-tile::before {                 /* Farbstrich oben statt Symbol */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
}
.info-tile--both::before   { background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-2), var(--game-cyan), var(--game-purple)); }
.info-tile--tech::before   { background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-2)); }
.info-tile--gaming::before { background: linear-gradient(90deg, var(--game-cyan), var(--game-purple)); }
.info-tile h3 {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  margin-bottom: .45rem;
}
.info-tile--gaming h3 { font-family: "AWK-Polvik", system-ui, sans-serif; font-size: .88rem; letter-spacing: .03em; }
.info-tile p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-dim);
}
.info-tile p + p { margin-top: .4rem; }
.info-tile a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.info-tile--tech a:hover   { color: var(--tech-accent); border-color: currentColor; }
.info-tile--gaming a:hover { color: var(--game-cyan);   border-color: currentColor; }
.info-tile .small { font-size: .8rem; }
.info-tile a { white-space: nowrap; }
.half .info-tile p { margin-bottom: 0; }

/* kleine Bildschirme: Info-Kacheln kompakter */
@media (max-width: 900px) {
  .info-tile { padding: .8rem .85rem; border-radius: 12px; }
  .info-tile h3 { font-size: .9rem; margin-bottom: .3rem; }
  .info-tile--gaming h3 { font-size: .78rem; }
  .info-tile p { font-size: .8rem; line-height: 1.45; }
  .info-tile .small { font-size: .72rem; }
  .half-infos { gap: 10px; margin-top: 10px; }
}
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) and (max-width: 760px) {
  .half-infos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) and (orientation: portrait) {
  .half-infos { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   PROJEKTE (direkt unter den Infos)
   ========================================================= */
html { scroll-behavior: smooth; }
#start, #infos, #kontakt, #projekte, .half--tech { scroll-margin-top: calc(var(--header-h-sm) + 14px); }
.projects { padding: clamp(1.2rem, 3vw, 2rem) clamp(14px, 3vw, 3rem) clamp(2rem, 5vw, 3.5rem); }
.projects-inner { max-width: 1260px; margin: 0 auto; }
.section-title {
  font-family: "AWK-Stelvor", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.2rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 2px;
  margin: .5rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-2), var(--game-cyan), var(--game-purple));
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.project-tile {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
}
.project-tile--empty {
  grid-column: 1 / -1;
  text-align: center;
  border-style: dashed;
  color: var(--ink-dim);
  font-size: .92rem;
}

/* =========================================================
   DOWNLOADS – Kundenbereich | Firmenbereich
   ========================================================= */
#downloads { scroll-margin-top: calc(var(--header-h-sm) + 14px); }
.downloads { padding: 0 clamp(14px, 3vw, 3rem) clamp(2rem, 5vw, 3.5rem); }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dl-area {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.3rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.dl-area::before {                       /* Farbstrich oben */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
}
.dl-area--kunden::before { background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-2), var(--game-cyan), var(--game-purple)); }
.dl-area--firma::before  { background: linear-gradient(90deg, #6b7280, #e5e7eb, #6b7280); }
.dl-area h3 {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  margin-bottom: .2rem;
}
.dl-lead { font-size: .85rem; color: var(--ink-dim); margin-bottom: .9rem; }
.dl-list { list-style: none; display: grid; gap: 8px; }
.dl-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: .65rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--card-bg) 60%, transparent);
}
.dl-list .dl-name { font-weight: 600; font-size: .9rem; }
.dl-list .dl-info { display: block; font-size: .75rem; color: var(--ink-dim); }
.dl-area .dl-btn {
  flex: none;
  padding: .4rem .8rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--card-border);
  background: var(--icon-bg);
  transition: border-color .2s, color .2s;
}
.dl-area--kunden .dl-btn:hover { color: var(--tech-accent); border-color: var(--tech-accent); }
.dl-area--firma  .dl-btn:hover { color: var(--ink); border-color: var(--ink-dim); }
.dl-list .dl-empty {
  justify-content: center;
  font-size: .85rem;
  color: var(--ink-dim);
  border-style: dashed;
  background: transparent;
}
@media (max-width: 860px) and (orientation: portrait) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dl-area { padding: 1rem 1rem .95rem; }
}

/* Seite füllt immer den ganzen Bildschirm (kein leerer Streifen unten) */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
.split { flex: 0 0 auto; }
/* Hintergrund läuft unten weich in die Projekte aus */
.split-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(80px, 14vh, 160px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

/* Touch-Geräte: beim Antippen bewegt sich nichts */
* { -webkit-tap-highlight-color: transparent; }
@media (hover: none), (max-width: 860px) {
  .half-card:hover, .half-card:active,
  .half-logo:hover img, .half-logo:active img,
  .btn:hover, .btn:active,
  .btn:hover .arrow, .btn:active .arrow { transform: none; }
  .half-card, .half-logo img, .btn, .btn .arrow { transition: none; }
}

/* Kurz-/Langtexte für Plakette */
.k-short { display: none; }

/* Handy: Fenster deutlich abgespeckt – nur Logo, Plakette, Überschrift, Button */
/* Kleines Design (Handy, Tablet hochkant, schmales PC-Fenster):
   Fenster untereinander – AWK-TECH oben, AWK-GAMING unten.
   In jedem Fenster: Logo links | Trenner | Texte rechts, linksbündig */
@media (max-width: 860px) and (orientation: portrait) {
  main { min-height: 0; }
  /* Bildschirm in zwei gleich hohe Bereiche teilen: oben Tech, unten Gaming */
  .split {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;   /* Fenster | Trenner | Fenster */
    align-content: center;
    padding: 1.6rem 0;
    row-gap: 1.1rem;
  }
  .half--tech   { order: 1; }
  .half--gaming { order: 3; }
  /* Hintergründe: Tech-Bild oben, Gaming-Bild unten, Übergang genau am Trenner */
  .split-bg::before {
    background-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 44%, transparent 56%);
            mask-image: linear-gradient(180deg, #000 0%, #000 44%, transparent 56%);
  }
  .split-bg::after {
    background-position: center bottom;
    -webkit-mask-image: linear-gradient(180deg, transparent 44%, #000 56%);
            mask-image: linear-gradient(180deg, transparent 44%, #000 56%);
  }
  /* Trenner zwischen den beiden Fenstern */
  .split-seam {
    order: 2;
    position: static;
    justify-self: center;
    width: min(600px, 90%);
    height: 2px;
    transform: none;
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--tech-accent) 15%,
                var(--tech-accent-2) 45%, var(--game-cyan) 55%, var(--game-purple) 85%, transparent);
    box-shadow: 0 0 14px 1px color-mix(in srgb, var(--tech-accent-2) 45%, transparent);
  }

  .half {
    justify-content: center;
    padding: 0 clamp(10px, 3vw, 24px);
  }
  .half-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    width: 100%;
    flex: 0 0 auto;           /* nur so hoch wie der Inhalt, mittig im Bereich */
    padding: clamp(.85rem, 2.5vw, 1.2rem) clamp(1rem, 3vw, 1.6rem);
    border-radius: 16px;
  }
  /* Logo oben links, groß */
  .half-logo {
    flex: none;
    width: min(320px, 78%);
    aspect-ratio: auto;
    margin: 0 0 .75rem;
    padding: 0;
    align-self: center;        /* Logo mittig oben */
    justify-content: center;
  }
  .half-logo img { margin: 0 auto; }
  /* AWK-TECH-Bild hat oben/unten viel Leerraum -> beim Anzeigen wegschneiden */
  .half--tech .half-logo img { margin-block: -5%; }
  .half-logo { margin-bottom: .5rem; }
  .half--gaming .half-logo img { width: 100%; }
  .half--tech   .half-logo img { width: 78.9%; }   /* Schriftzug gleich groß wie AWK-GAMING */
  /* Texte darunter, ebenfalls mittig */
  .half-text {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .points, .btn-host { display: none; }
  .half .kicker { display: none; }   /* kleine Ansicht ohne Plaketten */
  .kicker { font-size: .64rem; letter-spacing: .08em; padding: .28rem .75rem; margin-bottom: .55rem; }
  .half h2 { font-size: clamp(.95rem, 2.2vw, 1.1rem); margin-bottom: .25rem; overflow-wrap: normal; }
  .half--gaming h2 { font-size: clamp(.85rem, 2vw, 1rem); letter-spacing: 0; }
  .half p { font-size: clamp(.78rem, 1.8vw, .85rem); line-height: 1.4; margin-bottom: .55rem; }
  .half-card .btn { margin-top: 0; padding: .5rem 1rem; font-size: .78rem; border-radius: 9px; }
  .half--gaming .btn { font-size: .62rem; }
  .kicker, .btn { white-space: nowrap; overflow-wrap: normal; }
}
/* Handys: kurze Plakette */
@media (max-width: 520px) and (orientation: portrait) {
  .k-long { display: none; }
  .k-short { display: inline; }
  .kicker { font-size: .58rem; letter-spacing: .06em; padding: .24rem .6rem; }
  .half-card { padding: .85rem 1rem; }
  .half-logo { width: min(280px, 85%); margin-bottom: .45rem; }
}
/* ganz kleine Handys (iPhone 4s/5/SE 1. Gen, 320px) */
@media (max-width: 360px) and (orientation: portrait) {
  .half-text p { display: none; }
  .half h2 { margin-bottom: .7rem; }
  .half-card .btn { padding: .55rem .85rem; font-size: .75rem; }
  .half--gaming .btn { font-size: .6rem; }
}

/* Handy quer: kompakte Fenster wie mobil, aber nebeneinander */
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  :root { --header-h: 68px; --header-h-sm: 56px; --logo-h-sm: 36px; }
  .brand img { height: 44px; }
  main { min-height: 0; }
  .split {
    min-height: auto;
    align-content: center;
    padding: 1rem 0;
  }
  .half { padding: 0 .5rem; }
  .half:first-of-type { padding-left: 14px; }
  .half:last-of-type  { padding-right: 14px; }
  .half-card {
    max-width: 440px;
    padding: .85rem 1rem;
    border-radius: 16px;
    align-items: center;
    text-align: center;
  }
  .half-logo {
    width: min(260px, 80%);
    aspect-ratio: auto;
    margin: 0 auto .45rem;
  }
  .half-logo img { margin: 0 auto; }
  .half--gaming .half-logo img { width: 100%; }
  .half--tech   .half-logo img { width: 78.9%; margin-block: -5%; }
  .half .kicker, .points { display: none; }
  .half h2 { font-size: 1rem; margin-bottom: .25rem; }
  .half--gaming h2 { font-size: .88rem; letter-spacing: 0; }
  .half p { font-size: .8rem; line-height: 1.4; margin-bottom: .55rem; }
  .half-card .btn { margin-top: auto; padding: .5rem 1rem; font-size: .78rem; border-radius: 9px; white-space: nowrap; }
  .half-infos { width: min(440px, 100%); }
  .half--gaming .btn { font-size: .62rem; }
}

@media (max-width: 760px) {
  .footer-inner { flex-wrap: nowrap; justify-content: space-between; gap: 12px; padding-block: 14px; font-size: .78rem; white-space: nowrap; }
  /* Handy-Header: eine Zeile – Logo | Hell/Dunkel | Menü-Knopf */
  :root { --header-h: 68px; --header-h-sm: 56px; --logo-h-sm: 36px; }
  .site-header { overflow: visible; }
  .header-inner { padding-inline: 14px; gap: 10px; }
  .brand img { height: 44px; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: inline-grid; }

  /* aufklappendes Menü: kompaktes Feld rechts direkt unter dem Menü-Knopf */
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: auto;
    width: 200px;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--menu-bg);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
            backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .65);
  }
  .main-nav.is-open { display: block; animation: menu-auf .18s var(--ease); }
  @keyframes menu-auf { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .main-nav ul { flex-direction: column; gap: 0; padding: 4px 0; }
  .main-nav li + li { border-top: 1px solid var(--card-border); }
  .main-nav a {
    display: block;
    padding: 11px 18px;
    font-size: 15px;
  }
  .main-nav a::after { left: 18px; bottom: 6px; }
  .main-nav a:hover::after,
  .main-nav a.is-active::after { width: 32px; }
}


/* =========================================================
   UNTERSEITEN (z. B. downloads.html)
   ========================================================= */
.page {
  flex: 1 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) clamp(14px, 3vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.page-inner { width: 100%; max-width: 900px; margin: 0 auto; }
.page-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--ink-dim);
  text-decoration: none;
}
.page-back:hover { color: var(--ink); }
.page-title {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .3rem;
}
.page-lead { color: var(--ink-dim); margin-bottom: 1.4rem; }
.page .dl-area { padding: clamp(1rem, 3vw, 1.6rem); }
.page--wide .page-inner { max-width: 1260px; }
.dl-head {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-bottom: .2rem;
}

/* =========================================================
   DOWNLOADS: Knöpfe + Anmeldung (bereich.php)
   ========================================================= */
.dl-door { display: flex; flex-direction: column; align-items: flex-start; }
.dl-enter {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow .25s var(--ease), filter .2s;
}
.dl-area--kunden .dl-enter {
  color: #fff;
  background: linear-gradient(90deg, var(--tech-accent), var(--game-purple));
  box-shadow: 0 10px 24px -12px var(--game-purple);
}
.dl-area--firma .dl-enter {                 /* dunkel mit Glanz, wie die TECH-Plakette */
  color: #eef0f4;
  background: linear-gradient(180deg, #2a2d36 0%, #14161c 55%, #0b0c10 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -10px rgba(0, 0, 0, .7);
}
.dl-enter:hover { filter: brightness(1.1); }
.dl-enter:disabled { opacity: .5; cursor: not-allowed; }
.dl-note { margin-top: .6rem; font-size: .78rem; color: var(--ink-dim); }
.dl-note a { color: var(--ink); text-decoration: none; }
.dl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.dl-top .dl-note { margin: 0; }

.login-box { max-width: 520px; }
.login-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.login-row { display: flex; gap: 10px; }
.login-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--icon-bg);
  color: var(--ink);
  font: inherit;
}
.login-row input:focus-visible { outline: 2px solid var(--tech-accent-2); outline-offset: 1px; }
.login-msg { margin-top: .7rem; font-size: .85rem; color: var(--tech-accent); }
@media (max-width: 420px) {
  .login-row { flex-direction: column; }
}

/* Footer im Hochformat einzeilig: auf schmalen Handys ohne „Alle Rechte vorbehalten.“ */
@media (max-width: 560px) {
  .footer-inner .f-extra { display: none; }
}
@media (max-width: 340px) {
  .footer-inner { font-size: .72rem; }
}

/* =========================================================
   PROJEKTE – Gruppen und Kacheln (ohne Symbole)
   ========================================================= */
.project-group {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--ink-dim);
  margin: 1.6rem 0 .7rem;
}
.project-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project-tile {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.project-tile::before {                     /* Farbstrich oben */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
}
.project-tile--display::before { background: linear-gradient(90deg, var(--game-cyan), var(--game-purple)); }
.project-tile--route::before   { background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-2)); }
.project-tile--own::before     { background: linear-gradient(90deg, #6b7280, #e5e7eb, #6b7280); }
.project-tile h4 {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1.1rem;
  margin: .45rem 0 .35rem;
}
.project-tile p { font-size: .88rem; line-height: 1.55; color: var(--ink-dim); }
.project-tag {
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--card-border);
  background: var(--icon-bg);
}
.project-parts { list-style: none; margin-top: .6rem; display: grid; gap: .45rem; }
.project-parts li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.project-parts li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .45rem; height: .45rem;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--game-cyan), var(--game-purple));
}
.project-parts strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) and (orientation: portrait) {
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .project-tile { padding: 1rem; }
}

/* =========================================================
   HINTERGRUND: oberes Bild läuft unten aus, darunter gebürstetes Aluminium
   (warm links = AWK-TECH, kühl rechts = AWK-GAMING), sanft übergeblendet
   ========================================================= */
main { isolation: isolate; }
.split-fade { display: none; }
.split-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 220px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 220px), transparent 100%);
}
:root {
  --alu-img:  url("../images/hintergrund/hintergrund-alu.webp");
  --alu-veil: rgba(8, 9, 15, .18);
  --alu-warm: rgba(255, 106, 61, .16);
  --alu-cyan: rgba(0, 240, 255, .09);
  --alu-lila: rgba(176, 38, 255, .18);
}
:root[data-theme="light"] {
  --alu-veil: rgba(246, 246, 244, .84);
  --alu-warm: rgba(217, 83, 11, .12);
  --alu-cyan: rgba(0, 153, 204, .08);
  --alu-lila: rgba(144, 32, 221, .12);
}
.projects { position: relative; }
.projects::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -220px;                 /* reicht unter das auslaufende obere Bild */
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--alu-warm) 0%, transparent 42%, transparent 55%, var(--alu-cyan) 75%, var(--alu-lila) 100%),
    linear-gradient(var(--alu-veil), var(--alu-veil)),
    var(--alu-img) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 300px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 300px, #000 calc(100% - 40px), transparent 100%);
}
@media (orientation: portrait) and (max-width: 860px) {
  :root { --alu-img: url("../images/hintergrund/hintergrund-alu-hochformat.webp"); }
}
/* Kacheln ohne Plakette: Überschrift oben ohne Abstand */
.project-tile > h4:first-child { margin-top: .2rem; }

/* Unterseiten (Downloads, Kunden-/Firmenbereich): ebenfalls gebürstetes Alu, oben sanft eingeblendet */
.page { position: relative; }
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--alu-warm) 0%, transparent 42%, transparent 55%, var(--alu-cyan) 75%, var(--alu-lila) 100%),
    linear-gradient(var(--alu-veil), var(--alu-veil)),
    var(--alu-img) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 180px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 180px, #000 calc(100% - 40px), transparent 100%);
}
/* Fenster im Download-Bereich ohne farbigen Rand oben */
.dl-area::before { display: none; }
/* Info-Kacheln und Projekt-Kacheln ebenfalls ohne farbigen Rand oben */
.info-tile::before,
.project-tile::before { display: none; }

/* Linie unter „PROJEKTE“ so breit wie die Fenster darüber, an den Enden weich auslaufend */
.section-title::after {
  width: 100%;
  height: 2px;
  margin-top: .6rem;
  background: linear-gradient(90deg, transparent, var(--tech-accent) 15%, var(--tech-accent-2) 45%,
              var(--game-cyan) 55%, var(--game-purple) 85%, transparent);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--tech-accent-2) 35%, transparent);
}

/* AWK-GAMING-Knopf: Schrift wie beim AWK-TECH-Knopf – dunkel in der dunklen, hell in der hellen Ansicht */
.half--gaming .btn { color: var(--tech-on-accent); }

/* Kontakt-Kacheln: Symbole links neben Telefonnummer und E-Mail */
.half .info-tile p.contact-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
}
.half .info-tile p.contact-line + p.contact-line { margin-top: .25rem; }
.info-tile .ci {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 0;
  transition: background .2s, color .2s;
}
.info-tile .ci svg { width: 15px; height: 15px; }
.info-tile .ci-tel  { color: var(--tech-accent); }
.info-tile .ci-wa   { color: #25d366; }
.info-tile .ci-mail { color: var(--ink-dim); }
.info-tile--gaming .ci-mail { color: var(--game-cyan); }
.info-tile .ci:hover { background: var(--icon-bg); border-color: transparent; }
.info-tile--tech .ci-mail { color: var(--tech-accent-2); }
/* Text in den gleich breiten Knöpfen mittig */
.half-card .btn { justify-content: center; }
/* Platzhalter, damit E-Mail-Symbol unter dem WhatsApp-Symbol und die Adresse unter der Nummer steht */
.info-tile .ci-leer { visibility: hidden; }

/* AWK-TECH-Nummer: Auswahl Anrufen / WhatsApp */
.num-wahl { position: relative; display: inline-block; }
.num-knopf {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 40%, transparent);
}
.num-knopf:hover, .num-knopf[aria-expanded="true"] { color: var(--tech-accent); border-bottom-color: currentColor; }
.num-menue {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  min-width: 150px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .65);
}
.num-menue[hidden] { display: none; }
.num-menue a {
  padding: .5rem .7rem;
  border-radius: 7px;
  font-size: .85rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
}
.num-menue a:hover { background: var(--icon-bg); color: var(--tech-accent); }
.num-menue a[href^="https://wa.me"]:hover { color: #25d366; }
.half .info-tile { overflow: visible; }
/* geöffnete Auswahl liegt immer über den Nachbar-Kacheln */
.info-tile:has(.num-menue:not([hidden])) { z-index: 5; }

/* Handy hochkant mit zwei Kacheln nebeneinander: Kontaktzeilen kompakter, damit die E-Mail in die Kachel passt */
@media (max-width: 560px) and (orientation: portrait) {
  .info-tile { padding-inline: .7rem; }
  .half .info-tile p.contact-line { gap: 4px; font-size: .74rem; }
  .info-tile .ci { width: 18px; height: 18px; }
  .info-tile .ci svg { width: 13px; height: 13px; }
}
/* Auswahlfeld deckend, damit nichts durchscheint */
.num-menue { background: var(--bg); }

/* Drei Bereiche auf der Download-Seite: am PC nebeneinander */
.page .dl-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dl-area--privat .dl-enter {                /* helleres Graphit mit Glanz */
  color: #f2f3f5;
  background: linear-gradient(180deg, #4a505c 0%, #2a2e36 55%, #181a20 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 20px -10px rgba(0, 0, 0, .7);
}

/* Download-Karten ohne Beschreibung: Abstand zwischen Überschrift und Knopf */
.dl-door .dl-head { margin-bottom: .9rem; }

/* AWK-TECH-Kontakt wie AWK-GAMING: ein Symbol (Hörer + WhatsApp), gleiche Schrift und Größe */
:root { --wa-grund: #0d0f16; }
:root[data-theme="light"] { --wa-grund: #ffffff; }
.half--tech #kontakt p { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.num-wahl { display: inline-flex; align-items: center; gap: 6px; }
.info-tile .ci-kombi {
  padding: 0;
  background: none;
  cursor: pointer;
  color: var(--tech-accent);
}
.info-tile .ci-kombi svg { width: 19px; height: 19px; }

/* AWK Display: Handy/Tablet und ESP32 klar getrennt in zwei Kästen */
.project-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: .8rem;
}
.project-part {
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--card-bg) 70%, transparent);
}
.project-part h5 {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: .98rem;
  margin-bottom: .3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .5rem;
}
.project-part h5 span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.project-part > p { font-size: .84rem; margin-bottom: .2rem; }
.project-part .project-parts { margin-top: .45rem; gap: .3rem; }
.project-part--gemeinsam { grid-column: 1 / -1; }
.project-parts--zweispaltig { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; }
@media (max-width: 860px) and (orientation: portrait) {
  .project-split { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 420px) {
  .project-parts--zweispaltig { grid-template-columns: minmax(0, 1fr); }
}

/* Überschriften der AWK-TECH-Software in AWK-TECH-Orange */
.project-tile--route h4,
.project-tile--own h4 { color: var(--tech-accent); }
.project-tile--display > h4 { color: var(--tech-accent); }

/* Überschriften der Download-Bereiche in AWK-TECH-Orange */
.dl-head { color: var(--tech-accent); }

/* Info-Kacheln AWK-TECH: Überschriften orange */
.info-tile--tech h3 { color: var(--tech-accent); }
.info-tile--gaming h3 { color: var(--tech-accent); }
.page-title { color: var(--tech-accent); }
.section-title { color: var(--tech-accent); }
/* „AWK-TECH Software“ in derselben Schrift wie „PROJEKTE“, orange */
.project-group {
  font-family: "AWK-Stelvor", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tech-accent);
}

/* „AWK-TECH Software“ mit den drei Kacheln in einem Rahmen wie AWK Display */
.project-frame {
  margin-top: 14px;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.project-frame .project-group { margin: 0 0 .8rem; }
.project-frame .project-grid { gap: 12px; }
.project-frame .project-tile {                 /* innere Kästen wie „Handy & Tablet“ / „ESP32“ */
  padding: .9rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-bg) 70%, transparent);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: none;
}
.project-frame .project-tile h4 { font-size: 1rem; margin-top: 0; }
@media (max-width: 860px) and (orientation: portrait) {
  .project-frame { padding: 1rem; }
}
/* „AWK-TECH Software“ in derselben Schrift wie „AWK Display“ */
.project-frame .project-group {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  margin: .2rem 0 .8rem;
}

/* Hinweis unter den beiden Display-Kästen */
.project-note { margin-top: .8rem; font-size: .86rem; color: var(--ink-dim); }

/* kompakte Stichpunkte in den Software-Kästen */
.project-parts--kompakt { margin-top: .4rem; gap: .25rem; }
.project-parts--kompakt li { font-size: .84rem; line-height: 1.4; }
.project-frame .project-tile > p { margin-bottom: 0; }
/* Sternchen und Fußnote bei AWK Display */
.stern { color: var(--tech-accent); font-weight: 700; margin-left: 1px; }
.project-fussnote { margin-top: .5rem; font-size: .76rem; color: var(--ink-dim); opacity: .85; }

/* =========================================================
   AWK-DISPLAY-VORSCHAU (awk-display.html) + Knopf „Jetzt testen“
   ========================================================= */
.project-cta {
  margin-top: .9rem;
  color: var(--tech-on-accent);
  background: var(--tech-accent);
  box-shadow: 0 10px 24px -12px var(--tech-accent);
}
.dp-card { width: min(100%, 560px); margin: .4rem auto 0; }
.dp-device {
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: #0d1013;
  box-shadow: 0 22px 52px -24px color-mix(in srgb, var(--game-cyan) 55%, transparent);
}
.dp-device canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #0d1013; border-radius: 6px; }
.dp-skins { display: flex; align-items: center; gap: 8px; }
.dp-skins[hidden] { display: flex; visibility: hidden; }
.dp-skins button {
  flex: none;
  width: 48px; min-height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--icon-bg);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
@media (hover: hover) { .dp-skins button:hover { border-color: var(--tech-accent); color: var(--tech-accent); } }
@media (pointer: coarse) { .dp-skins button { width: 60px; min-height: 50px; font-size: 28px; } }
.skin-name { flex: 1; text-align: center; color: var(--ink-dim); font-size: .9rem; }
.skin-name strong { color: var(--ink); }
.skin-change { animation: skinIn .28s ease-out; }
@keyframes skinIn { from { opacity: .25; } to { opacity: 1; } }

.dp-intro { text-align: center; max-width: 820px; margin: 2rem auto 0; }
.dp-intro h2 { font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.15; margin-bottom: .6rem; }
.dp-intro p { color: var(--ink-dim); max-width: 62ch; margin: 0 auto; }
.dp-wireless {
  max-width: 760px;
  margin: 1.4rem auto 0;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--game-cyan) 45%, transparent);
  background: color-mix(in srgb, var(--game-cyan) 8%, transparent);
  color: var(--ink-dim);
  font-size: .92rem;
}
.dp-wireless strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .2rem; }
.dp-panel { margin-top: 1.4rem; }
.dp-panel p { color: var(--ink-dim); font-size: .92rem; }
.dp-features { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.dp-features li { font-size: .9rem; line-height: 1.4; color: var(--ink-dim); padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--tech-accent) 55%, transparent); }
.dp-features strong { display: block; color: var(--ink); font-size: .98rem; }
.dp-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.dp-extras { margin-top: 1rem; text-align: center; color: var(--tech-accent) !important; font-weight: 600; }
.dp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dp-pair .dp-panel { margin-top: 1.4rem; }
.dp-spec { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin-top: 1rem; font-size: .9rem; }
.dp-spec dt { color: var(--ink-dim); }
.dp-spec dd { color: var(--ink); }
.dp-safe { margin-top: 1rem; }
.dp-safe strong { color: var(--ink); }
.dp-cta { text-align: center; margin-top: 1.8rem; }
.dp-go { color: var(--tech-on-accent); background: var(--tech-accent); box-shadow: 0 10px 24px -12px var(--tech-accent); }
@media (max-width: 900px) { .dp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dp-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .dp-features, .dp-features--2 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .skin-change { animation: none; } }

/* Umschalter ESP32-Display / Handy & Tablet + Handy-Rahmen */
.dp-switch {
  display: flex;
  width: fit-content;
  margin: .2rem auto 1rem;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}
.dp-switch button {
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.dp-switch button[aria-selected="true"] { background: var(--tech-accent); color: var(--tech-on-accent); }
.dp-switch button:not([aria-selected="true"]):hover { color: var(--ink); }
.dp-view[hidden] { display: none; }
.dp-phone {
  width: min(100%, 400px);
  height: min(80vh, 820px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  border: 1px solid var(--card-border);
  background: #0d1013;
  box-shadow: 0 22px 52px -24px color-mix(in srgb, var(--game-cyan) 55%, transparent);
}
.dp-phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 24px; background: #12161a; }
.dp-hint { text-align: center; margin-top: .7rem; font-size: .85rem; color: var(--ink-dim); }
@media (max-width: 520px) {
  .dp-phone { height: 72vh; border-radius: 26px; padding: 6px; }
  .dp-phone iframe { border-radius: 20px; }
}

/* Vollbild der Handy-Vorschau: Knopf nur auf Touch-Geräten, Leiste nur im Vollbild */
.dp-voll-zeile { display: none; text-align: center; margin-top: .8rem; }
@media (pointer: coarse) { .dp-voll-zeile { display: block; } }
.dp-voll-an { color: var(--tech-on-accent); background: var(--tech-accent); }
.dp-phone { display: flex; flex-direction: column; }
.dp-phone iframe { flex: 1 1 auto; height: auto; min-height: 0; }
.dp-phone-bar { display: none; }
html.dp-voll { overflow: hidden; }
html.dp-voll .dp-phone {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0d1013;
}
html.dp-voll .dp-phone iframe { border-radius: 0; }
html.dp-voll .dp-phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #0b0d12;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #c9ced8;
  font-size: .85rem;
  font-weight: 600;
}
.dp-phone-bar button {
  padding: .45rem .9rem;
  border: 0;
  border-radius: 8px;
  background: var(--tech-accent);
  color: #170a06;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
/* im Vollbild nichts über der Vorschau */
html.dp-voll .site-header { display: none; }
html.dp-voll main { isolation: auto; }

/* Design-Leiste unter der Handy-Vorschau und Hinweise */
.dp-themes { width: min(100%, 400px); margin: .7rem auto 0; }
.dp-hint strong { color: var(--tech-accent); }

/* Passgenaue Handy-Vorschau: Rahmen passt sich der verkleinerten Seite an */
.dp-switch--klein { margin: 0 auto .8rem; }
.dp-switch--klein button { padding: .4rem .9rem; font-size: .82rem; }
.dp-switch--klein button[aria-pressed="true"] { background: var(--tech-accent); color: var(--tech-on-accent); }
.dp-phone { width: fit-content; height: auto; max-width: 100%; }
.dp-phone--quer { border-radius: 28px; }
.dp-screen { position: relative; overflow: hidden; border-radius: 24px; background: #12161a; margin: 0 auto; }
.dp-phone--quer .dp-screen { border-radius: 18px; }
.dp-screen iframe { position: absolute; top: 0; left: 0; flex: none; border: 0; border-radius: 0; transform-origin: 0 0; }
html.dp-voll .dp-phone { width: 100%; }
html.dp-voll .dp-screen { flex: 1 1 auto; width: 100% !important; height: auto !important; border-radius: 0; }
html.dp-voll .dp-screen iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; transform: none !important; }
@media (max-width: 520px) {
  .dp-phone { height: auto; }
}

/* „Komplett schnurlos“-Kasten: glänzend, ohne Farbe */
.dp-wireless {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, #2a2d36 0%, #17191f 55%, #0e0f13 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(0, 0, 0, .6),
    0 14px 30px -16px rgba(0, 0, 0, .7);
  color: #b4bac4;
}
.dp-wireless::before {                       /* Glanz oben */
  content: "";
  position: absolute;
  left: 2%; right: 2%; top: 1px;
  height: 45%;
  border-radius: 12px 12px 40% 40% / 12px 12px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.dp-wireless strong { color: #f2f3f5; position: relative; }
:root[data-theme="light"] .dp-wireless {
  border-color: rgba(0, 0, 0, .1);
  background: linear-gradient(180deg, #ffffff 0%, #eef0f3 55%, #e2e5ea 100%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(30, 40, 60, .35);
  color: #4f5563;
}
:root[data-theme="light"] .dp-wireless strong { color: #17181c; }
.dp-wireless::before {
  left: 0; right: 0; top: 0;
  height: 55%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, 0) 100%);
}


/* =========================================================
   BEWEGTER HINTERGRUND wie bei AWK-GAMING
   - Hintergrundbilder stehen fest, Fenster scrollen darüber (PC/Mac und Geräte im Querformat)
   - weiche Lichtwolken (Orange links, Cyan/Lila rechts) und feine Scanlinien bewegen sich langsam
   - alles bleibt innerhalb der Seitenbreite (overflow: hidden / clip)
   ========================================================= */
@media (min-width: 861px), (orientation: landscape) {
  .split-bg::before, .split-bg::after { position: fixed; }
  .projects::before { background-attachment: fixed, fixed, fixed; }
}
.split { z-index: 1; }                      /* oberer Bereich liegt über dem Alu, das darunter einblendet */
.split-bg { overflow: hidden; }
html, body { overflow-x: clip; max-width: 100%; }
.projects-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.fx-neb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  pointer-events: none;
  will-change: transform;
}
.fx-n1 { width: 560px; height: 560px; left: -8%;  top: 4%;     background: radial-gradient(circle, var(--tech-accent), transparent 70%); animation: fxNebA 22s ease-in-out infinite; }
.fx-n2 { width: 480px; height: 480px; right: -6%; top: 30%;    background: radial-gradient(circle, var(--game-cyan), transparent 70%);   animation: fxNebB 26s ease-in-out infinite; opacity: .12; }
.fx-n3 { width: 440px; height: 440px; left: 46%;  bottom: -6%; background: radial-gradient(circle, var(--game-purple), transparent 70%); animation: fxNebC 20s ease-in-out infinite; }
.fx-n4 { width: 520px; height: 520px; left: -6%;  top: 10%;    background: radial-gradient(circle, var(--tech-accent), transparent 70%); animation: fxNebB 24s ease-in-out infinite; opacity: .12; }
.fx-n5 { width: 520px; height: 520px; right: -8%; top: 35%;    background: radial-gradient(circle, var(--game-purple), transparent 70%); animation: fxNebA 28s ease-in-out infinite; opacity: .14; }
@keyframes fxNebA { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(80px,60px) scale(1.1); } 50% { transform: translate(30px,120px) scale(.92); } 75% { transform: translate(-50px,40px) scale(1.05); } }
@keyframes fxNebB { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(-70px,80px) scale(1.12); } 50% { transform: translate(-120px,-30px) scale(.88); } 75% { transform: translate(-40px,-80px) scale(1.08); } }
@keyframes fxNebC { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(100px,-60px) scale(1.15); } 66% { transform: translate(-60px,-100px) scale(.92); } }
.fx-scan {
  position: absolute;
  left: 0; right: 0;
  top: -100px; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .05) 2px, rgba(0, 0, 0, .05) 4px);
  animation: fxScan 10s linear infinite;
  will-change: transform;
}
@keyframes fxScan { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 100px, 0); } }
:root[data-theme="light"] .fx-neb { opacity: .1; }
:root[data-theme="light"] .fx-scan { opacity: .4; }
/* Handy/Tablet: Licht steht still (flüssig auf iPhone), ohne teure Weichzeichnung */
@media (pointer: coarse) {
  .fx-neb { animation: none; filter: none; opacity: .1; }
  .fx-scan { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-neb, .fx-scan { animation: none; }
}

/* Header und Logo verkleinern sich stufenlos im Takt des Scrollens (--k von 0 bis 1, gesetzt in script.js) */
:root { --k: 0; --logo-h: clamp(44px, 5vw, 64px); }
@media (max-width: 760px) { :root { --logo-h: 44px; } }
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) { :root { --logo-h: 44px; } }
.site-header,
.site-header.is-scrolled {
  height: calc(var(--header-h) - (var(--header-h) - var(--header-h-sm)) * var(--k));
  transition: box-shadow .35s var(--ease);
}
.brand img,
.site-header.is-scrolled .brand img {
  height: calc(var(--logo-h) - (var(--logo-h) - min(var(--logo-h-sm), var(--logo-h))) * var(--k));
  transition: filter .3s var(--ease);
}

/* Header über die volle Breite: Logo immer nah am linken Rand, Menü ganz rechts */
.header-inner {
  max-width: none;
  padding-inline: clamp(14px, 1.6vw, 28px);
}
.main-nav { margin-right: clamp(.4rem, 1vw, 1rem); }

/* Leuchtlinie unter dem Header (und im Footer) durchgehend von ganz links bis ganz rechts */
.header-line,
.footer-line {
  background: linear-gradient(90deg,
    var(--tech-accent) 0%,
    var(--tech-accent-2) 40%,
    var(--game-cyan) 60%,
    var(--game-purple) 100%);
}

/* Footer: Abstand zwischen Impressum und Datenschutz */
.footer-inner nav { display: flex; gap: 1.2rem; }

/* Rechtstexte (datenschutz.html) */
.rechtstext { max-width: 860px; }
.rechtstext h2 {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  font-size: 1.1rem;
  color: var(--tech-accent);
  margin: 1.8rem 0 .5rem;
}
.rechtstext p, .rechtstext li { color: var(--ink-dim); font-size: .95rem; line-height: 1.65; }
.rechtstext p + p { margin-top: .6rem; }
.rechtstext ul { margin: .4rem 0 .6rem 1.2rem; }
.rechtstext strong { color: var(--ink); }
.rechtstext a { color: var(--ink); }
.rechtstext code { font-size: .88em; color: var(--ink); }

/* „Komplett schnurlos“-Kasten im selben Design wie die übrigen Kästen */
.dp-wireless,
:root[data-theme="light"] .dp-wireless {
  max-width: none;
  margin: 1.4rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
  color: var(--ink-dim);
  font-size: .92rem;
}
.dp-wireless::before { display: none; }
.dp-wireless strong,
:root[data-theme="light"] .dp-wireless strong {
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  color: var(--tech-accent);
  font-size: 1.05rem;
}
@media (max-width: 560px) { .footer-inner nav { gap: .8rem; } }
@media (max-width: 380px) { .footer-inner { font-size: .68rem; gap: 8px; } .footer-inner nav { gap: .6rem; } }
@media (max-width: 340px) { .footer-inner { font-size: .64rem; padding-inline: 10px; } .footer-inner nav { gap: .5rem; } }

/* Menü-Strich gleitet von Punkt zu Punkt (PC); im Handy-Menü bleiben die Striche je Punkt */
.main-nav ul { position: relative; }
.nav-ind {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tech-accent), var(--game-cyan), var(--game-purple));
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .2s;
  pointer-events: none;
}
@media (min-width: 761px) {
  .main-nav a::after { display: none; }
}
@media (max-width: 760px) {
  .nav-ind { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-ind { transition: none; } }

/* Hinweis „Betaphase“: sieht aus wie ein Knopf, ist aber kein Link */
.dp-beta { cursor: default; }
.dp-beta:hover { filter: none; }

/* Projekt unterstuetzen (PayPal): zurueckhaltender Umriss-Knopf neben dem Hauptknopf */
.sup-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: .6rem;
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--tech-accent);
}
.sup-btn:hover { box-shadow: inset 0 0 0 1.5px var(--tech-accent), 0 10px 24px -14px var(--tech-accent); }
.sup-btn .sup-ic { width: 1.05em; height: 1.05em; color: var(--tech-accent); flex: none; }
.dp-cta .sup-btn { margin-top: .6rem; }
@media (max-width: 420px) { .sup-btn { margin-left: 0; margin-top: .6rem; } }

/* Downloads: Karte „Projekt unterstützen“ (seit 21.11. nicht mehr auf der Startseite) */
.dl-area--support .sup-btn { margin-left: 0; margin-top: 0; }

/* Downloads 2x2 (seit 21.11.): Karten so breit wie vorher bei drei nebeneinander */
.page .dl-grid--2x2 { grid-template-columns: repeat(2, minmax(0, 410px)); }
@media (max-width: 860px) and (orientation: portrait) { .page .dl-grid--2x2 { grid-template-columns: minmax(0, 1fr); } }
.dl-area--studio .dl-enter {                /* Display-Blau wie im AWK Display */
  color: #06222e;
  background: linear-gradient(90deg, #5cc8f0, #3b8fe0);
  box-shadow: 0 10px 24px -12px #3b8fe0;
}
.dl-area--studio .dl-btn:hover { color: #5cc8f0; border-color: #5cc8f0; }
.dl-hinweis { display: block; margin-top: .35rem; font-size: .8rem; color: #5cc8f0; }
:root[data-theme="light"] .dl-hinweis { color: #1f6fb8; }

/* 03.12.2026: Beide Fenster gleichmäßig (PC/Tablet quer/Handy quer – nebeneinander).
   Gemeinsames Raster über beide Hälften: Zeile 1 = Fenster, Zeile 2 = Info-Kacheln.
   So sind beide Fenster und beide Kachel-Reihen immer exakt gleich hoch,
   egal wie viel Text darin steht. */
@media not all and (max-width: 860px) and (orientation: portrait) {
  .split { grid-template-rows: auto auto; }
  .half {
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    justify-items: center;
    row-gap: 0;
  }
  .half-card { align-self: stretch; }
  .half-infos { align-self: stretch; }
  /* Überschriften gleich hoch -> Texte beginnen auf gleicher Höhe */
  .half--gaming h2 { line-height: calc(clamp(1.45rem, 2.4vw, 2rem) * 1.2); }
  /* Knöpfe: gleiche Höhe, unten bündig */
  .half-card .btn { min-height: 3.1rem; padding-block: 0; }
}
@media (max-width: 900px) {
  @media not all and (max-width: 860px) and (orientation: portrait) {
    .half--gaming h2 { line-height: 1.44rem; }
    .half-card .btn { min-height: 2.8rem; }
  }
}
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .half--gaming h2 { line-height: 1.2; }
  .half-card .btn { min-height: 2.3rem; }
}
/* Handy quer: Randabstand links/rechts symmetrisch (:first-of-type traf den Trenner, nicht AWK-TECH) */
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .half--tech   { padding-left: 14px; }
  .half--gaming { padding-right: 14px; }
}
/* Hochformat (untereinander): beide Knöpfe gleich hoch */
@media (max-width: 860px) and (orientation: portrait) {
  .half-card .btn { min-height: 2.3rem; padding-block: 0; }
}
/* 03.12.2026: „AWK-TECH Software“ steht jetzt ÜBER AWK Display */
.project-frame { margin-top: 0; margin-bottom: 14px; }
/* 03.12.2026: Schneeflocken (js/schnee.js) – hinter den Fenstern, über dem Hintergrundbild */
.split > canvas.schnee {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
}

/* 03.12.2026: Winter-Deko im Header (js/schnee.js, nur 1.12.–6.1.) */
.site-header > canvas.schnee--kopf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;                       /* über Bild + Farbschleier, hinter Logo und Menü */
  pointer-events: none;
  opacity: .85;
}
/* Lichterkette: kleine Lämpchen sitzen auf der Leuchtlinie */
.w-kette {
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 12px;
  pointer-events: none;
  z-index: 1;
}
.w-kette i {
  --f: #ffd9a0;
  position: absolute;
  bottom: 0;
  width: 5px; height: 8px;
  margin-left: -2.5px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--f) 55%, color-mix(in srgb, var(--f) 60%, #000) 100%);
  box-shadow: 0 0 6px 1px color-mix(in srgb, var(--f) 70%, transparent),
              0 0 14px 2px color-mix(in srgb, var(--f) 30%, transparent);
  opacity: .9;
  animation: w-funkeln 4s ease-in-out infinite;
}
.w-kette i::before {                 /* kleine Fassung */
  content: "";
  position: absolute;
  left: 1px; right: 1px; bottom: -2px;
  height: 2px;
  border-radius: 1px;
  background: rgba(30, 32, 40, .8);
}
.w-kette .w-or { --f: var(--tech-accent); }
.w-kette .w-tk { --f: var(--tech-accent-2); }
.w-kette .w-ws { --f: #ffd9a0; }
.w-kette .w-cy { --f: var(--game-cyan); }
.w-kette .w-li { --f: var(--game-purple); }
@keyframes w-funkeln {
  0%, 100% { opacity: .95; filter: brightness(1.1); }
  45%      { opacity: .35; filter: brightness(.7); }
  55%      { opacity: .45; filter: brightness(.8); }
}
:root[data-theme="light"] .w-kette i { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .w-kette i { animation: none; opacity: .85; }
}
/* Winter: liegender Schnee unter der Leuchtlinie + Schneemann im Hintergrund */
.site-header.w-winter { overflow: visible; }          /* Schneekante darf unter den Header hängen */
.w-kante {
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 40px;                      /* flockiger Schnee + Eiszapfen */
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.w-kante svg { display: block; width: 100%; height: 100%; }
:root[data-theme="light"] .w-kante { filter: drop-shadow(0 1.5px 1.5px rgba(40, 60, 100, .35)); }
/* Szene: Schneemann + Geschenkstapel, steht auf der Leuchtlinie.
   Maße der Kinder in cqh (= % der Szenen-/Header-Höhe) -> schrumpft beim Scrollen mit */
.w-szene {
  position: absolute;
  left: 40%;
  bottom: 2px;
  top: 0;
  width: 1px;
  container-type: size;
  z-index: -1;                       /* hinter Logo und Menü */
  pointer-events: none;
  opacity: .68;                      /* ganze Szene gemeinsam -> Stapel scheinen nicht durcheinander durch */
}
.w-mann {
  position: absolute;
  left: 0; bottom: 0;
  height: 72cqh;
  aspect-ratio: 60 / 90;
  transform: translateX(-50%);
  z-index: 1;
  opacity: .8;
}
.w-mann svg, .w-geschenk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.w-geschenk {
  position: absolute;
  transform: translateX(-50%) rotate(var(--dreh, 0deg));
  transform-origin: 50% 100%;
  z-index: 0;
}
.w-geschenk.w-vorne { z-index: 2; }
:root[data-theme="light"] .w-szene { opacity: .78; }
@media (max-width: 1100px) { .w-szene { left: 34%; } }
@media (max-width: 760px)  { .w-szene { left: 52%; } }
/* 03.12.2026: Lichterkette kräftiger – größere Lämpchen, glühender Kern, Lichtschein in drei Stufen */
.w-kette { z-index: 2; height: 16px; }
.w-kette i {
  width: 7px; height: 11px;
  margin-left: -3.5px;
  background: radial-gradient(circle at 42% 38%, #fff 0 22%, color-mix(in srgb, var(--f) 45%, #fff) 38%, var(--f) 70%, color-mix(in srgb, var(--f) 70%, #000) 100%);
  box-shadow:
    0 0 4px 1px var(--f),
    0 0 12px 3px color-mix(in srgb, var(--f) 75%, transparent),
    0 0 26px 7px color-mix(in srgb, var(--f) 35%, transparent);
  opacity: 1;
  animation-name: w-strahlen;
}
.w-kette i::after {                  /* Lichtschein, der auf Linie und Schnee darunter fällt */
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 34px; height: 16px;
  transform: translate(-50%, -30%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--f) 55%, transparent), transparent);
  pointer-events: none;
}
@keyframes w-strahlen {
  0%, 100% { opacity: 1;   filter: brightness(1.25) saturate(1.15); }
  40%      { opacity: .62; filter: brightness(.9); }
  50%      { opacity: .7;  filter: brightness(.95); }
  70%      { opacity: 1;   filter: brightness(1.45) saturate(1.2); }
}
:root[data-theme="light"] .w-kette i {
  background: radial-gradient(circle at 42% 38%, #fff 0 18%, var(--f) 55%, color-mix(in srgb, var(--f) 60%, #000) 100%);
  box-shadow:
    0 0 3px 1px var(--f),
    0 0 10px 3px color-mix(in srgb, var(--f) 80%, transparent),
    0 0 22px 6px color-mix(in srgb, var(--f) 45%, transparent);
}
@media (prefers-reduced-motion: reduce) { .w-kette i { animation: none; opacity: 1; } }
@media (max-width: 760px) { .w-kette i { width: 6px; height: 9px; margin-left: -3px; } }
/* 03.12.2026: Schneemann + Geschenke scharf und deutlich (voll deckend, feine Kontur durch Schatten) */
.w-szene,
:root[data-theme="light"] .w-szene { opacity: 1; }
.w-szene .w-mann { opacity: 1; }
.w-szene { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)) drop-shadow(0 0 4px rgba(0, 0, 0, .25)); }
:root[data-theme="light"] .w-szene { filter: drop-shadow(0 1px 1px rgba(30, 40, 60, .45)); }
/* 03.12.2026: Desktop – Geschenkreihe über die ganze Header-Breite (js/schnee.js), steht auf der Leuchtlinie */
.w-reihe {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 2px;
  container-type: size;
  z-index: -1;                       /* hinter Logo und Menü, unter der Szene */
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)) drop-shadow(0 0 4px rgba(0, 0, 0, .25));
}
:root[data-theme="light"] .w-reihe { filter: drop-shadow(0 1px 1px rgba(30, 40, 60, .45)); }
/* seit 03.12. auch mobil (kleine, flache Päckchen – Logik in schnee.js) */
/* 03.12.2026: Lichterkette windet sich um die Unterkante (Lämpchen oben/unten, Kabel in Bögen) */
.w-kette { height: 28px; bottom: -14px; }
.w-kette .w-kabel { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.w-kette i { bottom: auto; transform-origin: 50% 100%; }
.w-kette i.w-oben  { top: -1.5px; transform: rotate(var(--dk, 0deg)); }                 /* Fassung bei y ≈ 9,5 */
.w-kette i.w-unten { top: 5.5px;  transform: rotate(calc(180deg + var(--dk, 0deg))); }  /* hängt nach unten, Fassung bei y ≈ 16,5 */
@media (max-width: 760px) {
  .w-kette i.w-oben  { top: .5px; }
  .w-kette i.w-unten { top: 7.5px; }
}
/* 03.12.2026: Handy/Tablet (v. a. iPhone/Safari): Funkeln nur über die Deckkraft – läuft direkt auf der Grafikeinheit,
   ohne dass die Seite bei jedem Bild neu gezeichnet werden muss. Kette auf eigener Ebene. */
@keyframes w-strahlen-touch {
  0%, 100% { opacity: 1; }
  40%      { opacity: .55; }
  50%      { opacity: .65; }
  70%      { opacity: 1; }
}
@media (pointer: coarse) {
  .w-kette { will-change: transform; transform: translateZ(0); }
  .w-kette i { animation-name: w-strahlen-touch; will-change: opacity; }
}
/* Selbstschutz Stufe 3 (sehr langsames Gerät): Lämpchen leuchten ruhig */
html.w-still .w-kette i { animation: none; opacity: 1; }

/* 03.12.2026: Beide Knöpfe („Direkt zu …“) in derselben Schrift AWK-Polvik – auf allen Geräten gleich.
   Schriftgröße passend zur Knopfhöhe (ca. ein Drittel der Höhe). */
.half .half-card .btn {
  font-family: "AWK-Polvik", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;                   /* Knopf 50 px hoch */
  letter-spacing: .05em;
  text-transform: none;
}
@media (max-width: 900px) { .half .half-card .btn { font-size: .9rem; } }                                   /* 45 px */
@media (max-width: 860px) and (orientation: portrait) { .half .half-card .btn { font-size: .76rem; } }     /* 37 px */
@media (max-width: 360px) and (orientation: portrait) { .half .half-card .btn { font-size: .7rem; } }
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) { .half .half-card .btn { font-size: .76rem; } }

/* 03.12.2026: Weihnachtsbaum in der Header-Szene (rechts neben dem Schneemann, Geschenke davor) */
.w-baum {
  position: absolute;
  left: 52cqh; bottom: 0;
  height: 94cqh;
  aspect-ratio: 60 / 90;
  transform: translateX(-50%);
  z-index: 0;                        /* hinter Schneemann (1); Geschenke liegen im DOM danach -> davor */
}
.w-baum svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* 03.12.2026: Leistung beim Scrollen (v. a. Handy in der PC-Ansicht)
   1) Deko-Grafiken sind fertige Bilder (<img>) statt Tausender SVG-Teile */
.w-mann img, .w-geschenk img, .w-baum img, .w-kante img { display: block; width: 100%; height: 100%; }
.w-mann { aspect-ratio: 78 / 90; }   /* Bild etwas breiter: Notebook und Controller ragen seitlich heraus */
/* 2) awk-tech.info (Header schrumpft stufenlos über --k): Szene und Geschenke behalten ihre volle Größe und werden
      nur per Grafikkarte verkleinert – kein Neuberechnen/Neuzeichnen bei jedem Scrollschritt */
:root { --w-sr: .6923; }                                                 /* 72 / 104 */
@media (max-width: 760px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) { :root { --w-sr: .8235; } }   /* 56 / 68 */
html.w-kfest { --w-s: calc(1 - var(--k, 0) * (1 - var(--w-sr))); }
html.w-kfest .w-szene {
  top: auto;
  height: calc(var(--header-h) - 2px);
  transform: scale(var(--w-s));
  transform-origin: 50% 100%;
  will-change: transform;
}
html.w-kfest .w-reihe { top: auto; height: calc(var(--header-h) - 2px); }
html.w-kfest .w-reihe .w-geschenk {
  transform: translateX(-50%) translateY(calc(var(--fuss, 0cqh) * (1 - var(--w-s)))) rotate(var(--dreh, 0deg)) scale(var(--w-s));
  transform-origin: 50% 100%;
  will-change: transform;
}
html.w-kfest .site-header > canvas.schnee--kopf { height: var(--header-h); }   /* Leinwand bleibt voll hoch (nicht neu anlegen) */
/* 3) Beim Scrollen: Lichterkette funkelt kurz nicht (leuchtet ruhig) – spart pro Scrollschritt eine komplette Stil-Berechnung */
html.w-scrollt .w-kette i { animation: none; }
