/* ─────────────────────────────────────────────────────────────
   PixelCraft Apps — shared "new design" stylesheet for the
   content & form pages (Kontakt / Feedback / Support / Impressum /
   Privacy). Matches the overview + detail landing pages: dark
   premium palette, floating pill nav, full-bleed footer.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg:        #06070F;
  --bg-2:      #0A0C18;
  --ink:       #ECEEF6;
  --ink-soft:  #B8BCCE;
  --ink-dim:   #7C8199;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.14);

  --brand-1:   #00A2FC;
  --brand-2:   #CE00CE;
  --brand-soft: rgba(0,162,252,0.12);
  --grad-brand: linear-gradient(120deg, #00A2FC 0%, #7578FF 50%, #CE00CE 100%);

  --f-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --f-body:    'Inter', 'Segoe UI', sans-serif;

  --max: 1000px;
  --pad: clamp(1.15rem, 4vw, 2rem);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: clip; position: relative;
  display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-1); color: #04121f; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ── Ambient background ───────────────────────────────────── */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  mix-blend-mode: screen; will-change: transform; }
.fx__blob--1 { width: 46vw; height: 46vw; top: -14vw; left: -10vw;
  background: radial-gradient(circle, #00A2FC 0%, transparent 68%);
  animation: drift1 30s ease-in-out infinite alternate; }
.fx__blob--2 { width: 44vw; height: 44vw; top: 2vw; right: -14vw;
  background: radial-gradient(circle, #CE00CE 0%, transparent 68%);
  animation: drift2 35s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); }
                    to   { transform: translate3d(8vw,6vw,0) scale(1.16); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.1); }
                    to   { transform: translate3d(-7vw,5vw,0) scale(0.92); } }
main, header, footer { position: relative; z-index: 1; }

/* ── Navigation — floating pill ───────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 12px 20px; pointer-events: none; }
.nav__bar { pointer-events: all; display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 1.1rem 0 1.5rem; background: rgba(18,21,27,0.86);
  backdrop-filter: blur(32px) saturate(2); -webkit-backdrop-filter: blur(32px) saturate(2);
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 40px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: background .22s ease; }
.nav__bar:hover { background: rgba(18,21,27,0.96); }
.nav__brand { display: flex; align-items: center; }
.nav__logo-full { height: 24px; width: auto; display: block; }
.nav__logo-icon { height: 24px; width: auto; display: none; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { color: rgba(255,255,255,0.6); font-family: var(--f-display); font-weight: 600;
  font-size: .9rem; transition: color .2s; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
@media (max-width: 768px) {
  .nav { padding: 10px 14px; }
  .nav__logo-full { display: none; } .nav__logo-icon { display: block; }
  .nav__links { gap: 1.1rem; } .nav__link { font-size: .82rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.page-hero { position: relative; text-align: center;
  padding: calc(86px + clamp(2rem, 7vw, 4.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display);
  font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-1); padding: .4rem .95rem; border-radius: 100px; background: var(--brand-soft);
  border: 1px solid rgba(0,162,252,.28); }
h1.page-title { font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 0.98; letter-spacing: -0.03em;
  margin: 1.3rem auto .8rem; background: linear-gradient(180deg, #FFFFFF 34%, #C9CEE4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h1.page-title .accent { background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { color: var(--ink-soft); font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 46ch; margin: 0 auto; }

/* ── Content section + card ───────────────────────────────── */
.section { position: relative; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem); max-width: 720px; margin: 0 auto;
  box-shadow: 0 26px 60px -34px rgba(0,0,0,.8); }
/* Wide variant for long-form content (Impressum / Privacy) — aligns with the
   hero + page grid instead of the narrow form column. */
.panel--wide { max-width: 100%; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 100px; display: inline-flex; align-items: center; gap: .5rem;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s, background .2s, border-color .2s; }
.btn--app { background: var(--brand-1); color: #04121f; box-shadow: 0 12px 26px -12px var(--brand-1); }
.btn--app:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 32px -12px var(--brand-1); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.05); border-color: var(--line-2); }

/* ── Forms ────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-field > label { font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-dim); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--brand-1); background: rgba(0,162,252,.06);
  box-shadow: 0 0 0 3px rgba(0,162,252,.16); }
.btn--submit { align-self: flex-start; background: var(--brand-1); color: #04121f;
  box-shadow: 0 12px 26px -12px var(--brand-1); }
.btn--submit:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* Custom dropdown (markup from partials/form_helpers.php + main.js) */
.form-dropdown { position: relative; }
.form-dropdown__trigger { width: 100%; display: flex; align-items: center; gap: .6rem; cursor: pointer;
  font-family: var(--f-body); font-size: 1rem; color: var(--ink); text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 12px; padding: .85rem 1rem; }
.form-dropdown__icon-i { color: var(--brand-1); width: 1.1em; text-align: center; }
.form-dropdown__value { flex: 1; }
.form-dropdown__value.is-placeholder { color: var(--ink-dim); }
.form-dropdown__caret { color: var(--ink-dim); transition: transform .2s; }
.form-dropdown.is-open .form-dropdown__caret { transform: rotate(180deg); }
.form-dropdown.is-open .form-dropdown__trigger { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(0,162,252,.16); }
.form-dropdown.has-error .form-dropdown__trigger { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.18); }
.form-dropdown__menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  list-style: none; margin: 0; padding: 6px; background: #12151f; border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.8); max-height: 280px; overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.form-dropdown.is-open .form-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.form-dropdown__option { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem;
  border-radius: 8px; cursor: pointer; color: var(--ink-soft); font-size: .96rem; }
.form-dropdown__option i { color: var(--brand-1); width: 1.1em; text-align: center; }
.form-dropdown__option:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.form-dropdown__option.is-selected { background: var(--brand-soft); color: #fff; }

.form-req { color: var(--brand-1); font-size: .8em; }

/* Success + error states */
.form-success { text-align: center; padding: 1rem 0; }
.form-success__icon { font-size: 3rem; color: #4ADE80; margin-bottom: 1rem; }
.form-success h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; margin-bottom: .5rem; }
.form-success p { color: var(--ink-soft); }
.form-error-msg { color: #f87171; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3);
  border-radius: 12px; padding: .85rem 1rem; font-size: .95rem; }

/* ── Prose (Impressum / Privacy) ──────────────────────────── */
.prose { color: var(--ink-soft); }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--ink);
  margin: 2rem 0 .8rem; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 1.4rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brand-1); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

/* ── Footer (full-bleed row) ──────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem; margin-top: 2rem; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; color: var(--ink-dim); font-size: .9rem; width: 100%; padding-inline: var(--pad); }
.foot__links { display: flex; gap: 1.3rem; }
.foot__links a { transition: color .2s; }
.foot__links a:hover { color: var(--ink); }

/* ── Reveal + motion ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
