/* Mio — Seitenstil. Farben ausschliesslich ueber variables.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
}
svg {
  display: block;
}
h1,
h2,
h3,
h4,
p,
ul,
figure,
form {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.mono {
  font-family: var(--mono);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.pw {
  stroke: var(--accent);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- header ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  color: var(--text);
  display: flex;
  align-items: center;
}
.brandmark {
  height: 30px;
  width: auto;
}
.nav {
  display: flex;
  gap: 0.3rem;
  margin-left: 1.4rem;
}
.nav a {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
}

/* language switch */
.langsw {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
}
.langsw button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.42rem 0.55rem;
  transition:
    color 0.2s,
    background 0.2s;
}
.langsw button + button {
  border-left: 1px solid var(--line-2);
}
.langsw button[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
}

/* light switch */
.lightswitch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.32rem 0.6rem 0.32rem 0.5rem;
  color: var(--text-2);
  transition:
    background 0.3s,
    border-color 0.3s;
}
.ls-track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  transition: background 0.3s;
  flex: none;
}
.ls-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--knob);
  transition:
    transform 0.3s,
    background 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}
.ls-knob::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.3s;
}
:root[data-theme="light"] .ls-track {
  background: var(--accent);
}
:root[data-theme="light"] .ls-knob {
  transform: translateX(16px);
  background: var(--knob-on);
}
:root[data-theme="light"] .ls-knob::after {
  background: var(--accent);
  box-shadow: 0 0 6px var(--mint);
}
.ls-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .ls-text {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-radius: 11px;
  padding: 0.8em 1.25em;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition:
    transform 0.15s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--mint);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  padding-block: clamp(46px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.hero h1 {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(4rem, 15vw, 9rem);
  margin-top: 1rem;
}
.hero h1 .pwt {
  color: var(--accent);
}
.hero .claim {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}
.hero .claim u {
  text-decoration: none;
  color: var(--mint);
}
.hero p.sub {
  margin-top: 1.3rem;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.06rem;
}
.hero .cta {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero .badges {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem 1.4rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero .badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.hero .badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      120% 90% at 50% 6%,
      color-mix(in srgb, var(--mint) 12%, transparent),
      transparent 60%
    ),
    var(--surface-2);
}
.stage .grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, black, transparent 78%);
  mask-image: radial-gradient(80% 80% at 50% 45%, black, transparent 78%);
}
.stage .powo {
  position: relative;
  z-index: 2;
  width: min(56%, 210px);
}
.stage .wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  opacity: 0.7;
}

/* ---------- section frame ---------- */
.sec {
  padding-block: clamp(54px, 9vw, 104px);
  border-bottom: 1px solid var(--line);
}
.sechead {
  max-width: 60ch;
}
.sechead h2,
.contact-title {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.02;
  margin-top: 0.9rem;
}
.sechead p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* services */
.svcgrid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .svcgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .svcgrid {
    grid-template-columns: 1fr;
  }
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--mint) 14%, transparent);
  margin-bottom: 1.1rem;
}
.card .ic svg {
  width: 24px;
  height: 24px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.card.ek {
  border-color: color-mix(in srgb, var(--mint) 45%, transparent);
}

/* why */
.why {
  background: var(--surface-2);
}
.whygrid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .whygrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .whygrid {
    grid-template-columns: 1fr;
  }
}
.why .item {
  padding-top: 1.2rem;
  border-top: 2px solid var(--accent);
}
.why .item h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.14rem;
  margin-bottom: 0.4rem;
}
.why .item p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* how */
.howgrid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 760px) {
  .howgrid {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.step .n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mint);
  letter-spacing: 0.1em;
}
.step h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0.5rem 0;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* contact */
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.contact-title {
  margin: 0.4rem 0 0.6rem;
}
.contact-sub {
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.form {
  display: grid;
  gap: 12px;
}
.form label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: -0.4rem;
}
.form input,
.form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 22%, transparent);
}
.form textarea {
  min-height: 120px;
  resize: vertical;
}
.form .note {
  font-size: 0.8rem;
  color: var(--faint);
}
.form .note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .btn {
  justify-self: start;
}
.formmsg {
  font-size: 0.9rem;
  color: var(--mint);
  min-height: 1.2em;
}
.formmsg.err {
  color: var(--text);
}
.direct {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 26px;
}
.direct .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.direct .row:first-of-type {
  border-top: 0;
}
.direct .l {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.direct .v {
  font-weight: 600;
  text-align: right;
}
.direct a.v:hover {
  color: var(--mint);
}
.direct .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.2rem;
}

/* footer */
.foot {
  padding-block: 34px 40px;
  background: var(--bg-2);
}
.foot .top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: space-between;
  align-items: center;
}
.foot .ft {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}
.foot .links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.foot .links a:hover {
  color: var(--mint);
}
.foot .base {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  text-transform: uppercase;
}

/* slogans */
.pband {
  border-bottom: 1px solid var(--line);
}
.pband .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 20px;
  flex-wrap: wrap;
}
.pband .po {
  width: 19px;
  height: 19px;
  flex: none;
}
.pband .po * {
  stroke: var(--accent);
}
.pband .t {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.55rem);
  letter-spacing: 0.01em;
  color: var(--text);
}
.statement {
  background: var(--night-bg);
  color: var(--night-text);
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}
.statement .wrap {
  padding-block: clamp(46px, 8vw, 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.3rem;
}
.statement .po {
  width: 42px;
  height: 42px;
}
.statement .po * {
  stroke: var(--night-accent);
}
.statement .big {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 20ch;
}
.wink {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}
.howoutro {
  margin-top: 2.2rem;
  text-align: center;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--mint);
}
.cslogan {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--mint);
  margin: 0.3rem 0 0.2rem;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal {
  padding-block: clamp(40px, 7vw, 88px);
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  margin: 0.8rem 0 2rem;
}
.legal h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.6rem;
}
.legal p,
.legal li {
  color: var(--text-2);
}
.legal p + p {
  margin-top: 0.8rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0.6rem 0;
}
.legal a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal address {
  font-style: normal;
  color: var(--text-2);
}
.legal .stand {
  margin-top: 2.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.backlink {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.backlink:hover {
  color: var(--mint);
}
