/* ==========================================================================
   Chro Studios IT Solutions, site.css
   Dark, technisch-editorial. Kein Build-Step, keine externen Abhängigkeiten.
   ========================================================================== */

:root {
  /* Sagt Browser und Erweiterungen, dass die Seite bereits dunkel ist.
     Verhindert, dass Formularfelder, Scrollbalken und Auswahlmenüs hell
     gerendert werden, und ist das Standardsignal gegen doppelte Umfärbung. */
  color-scheme: dark;

  --bg: #0a0a0f;
  --surface: #111117;
  --surface-2: #16161e;
  --accent: #6c5ce7;
  --accent-2: #00d9c0;
  --text: #f2f2f5;
  --text-dim: #9a9aab;
  --text-faint: #6b6b7b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1100px;
  --section-py: clamp(72px, 11vw, 140px);
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Sticky-Header beim Ankersprung nicht über die Überschrift legen */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hintergrund-Signatur: Glows aus der Vorgängerseite + feines Raster
   -------------------------------------------------------------------------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.glow-1 {
  background: var(--accent);
  top: -18%;
  left: -12%;
}

.glow-2 {
  background: var(--accent-2);
  bottom: -22%;
  right: -12%;
  opacity: 0.16;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Layout-Primitive
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding-block: var(--section-py);
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-2);
  flex: none;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-intro {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 15, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1rem;
  flex: none;
}

.wordmark .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
  flex: none;
}

.wordmark .mark svg {
  width: 16px;
  height: 16px;
}

.wordmark .sub {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
  position: relative;
  padding-block: 6px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent-2);
  transition: right 0.3s var(--ease);
}

.nav-links a:hover::after {
  right: 0;
}

/* Sprachumschalter */

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.03);
  flex: none;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

/* Burger */

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s var(--ease);
  min-height: 46px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b7cf0);
  color: #fff;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(64px, 10vw, 110px);
  padding-bottom: clamp(64px, 9vw, 110px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 30px;
  font-weight: 500;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 24px;
  max-width: 16ch;
  text-wrap: balance;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-dim);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  max-width: 54ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(52px, 8vw, 84px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-facts .fact {
  background: rgba(17, 17, 23, 0.6);
  padding: 22px 24px;
}

.hero-facts .fact-value {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-facts .fact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 60ch;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.highlight-card {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 217, 192, 0.06), rgba(108, 92, 231, 0.05));
  padding: 26px 28px;
  margin-top: 30px;
}

.highlight-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.highlight-card h3 {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.timeline {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 23, 0.5);
  padding: 8px 24px;
}

.timeline li {
  padding-block: 18px;
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.timeline li + li {
  border-top: 1px solid var(--border);
}

.timeline .year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  flex: none;
  width: 44px;
}

.timeline .event {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 23, 0.55);
  padding: 30px 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: rgba(22, 22, 30, 0.8);
}

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.service-card .icon svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   Projekte
   -------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 23, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

/* Typografischer Kartenkopf, ersetzt Screenshots, bis Assets vorliegen.
   Farbverlauf je Projekt über --c1/--c2 im Inline-Style. */
.project-visual {
  height: 128px;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}

.project-visual .initials {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.project-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-body h3 {
  font-size: 1.14rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.project-body p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.project-links a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.project-links svg {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.75;
}

.projects-note {
  margin-top: 34px;
  color: var(--text-faint);
  font-size: 0.92rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-aside p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 26px;
  max-width: 40ch;
}

.contact-direct {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 23, 0.5);
  padding: 22px 24px;
}

.contact-direct .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.contact-direct a {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  word-break: break-all;
}

.contact-direct a:hover {
  color: var(--accent-2);
}

/* Formular */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.84rem;
  color: var(--text-dim);
  font-weight: 500;
}

.field .req {
  color: var(--accent-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 46px;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aab' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.field-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 22px;
}

.field-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.field-consent label {
  font-size: 0.86rem;
  line-height: 1.55;
  cursor: pointer;
}

.field-consent a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot, für Menschen und Screenreader unsichtbar, für Bots ausfüllbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: rgba(0, 217, 192, 0.4);
  background: rgba(0, 217, 192, 0.08);
  color: var(--accent-2);
}

.form-status.is-error {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
  color: #ff9d9d;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-block: 36px;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Rechtstext-Seiten
   -------------------------------------------------------------------------- */

.legal {
  padding-top: clamp(56px, 8vw, 88px);
}

.legal-body {
  max-width: 68ch;
}

.legal-body h2 {
  font-size: 1.32rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-body p,
.legal-body li {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 12px;
}

.legal-body ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-address {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(17, 17, 23, 0.5);
  padding: 22px 26px;
  margin-bottom: 8px;
}

.legal-address p {
  margin-bottom: 3px;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.back-link:hover {
  color: var(--accent-2);
  gap: 12px;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Scroll-Animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Ohne JS darf nichts unsichtbar bleiben */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .header-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px clamp(20px, 5vw, 40px) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .header-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li + li {
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding-block: 15px;
    font-size: 1rem;
    color: var(--text);
  }

  .nav-links a::after {
    display: none;
  }

  .lang-switch {
    align-self: flex-start;
    margin-top: 18px;
  }

  /* Auf Touch-Geräten brauchen die Sprachbuttons mehr Fläche */
  .lang-switch button {
    padding: 12px 20px;
    font-size: 12px;
  }

  .wordmark .sub {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
