/* ============================================
   Persönliche Entwickler-Webseite – Styles
   Mobile First: Basis = Smartphone, dann größer
   ============================================ */

/* --- Local fonts (no third-party font CDN) --- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/syne-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/syne-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/syne-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/syne-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/syne-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/syne-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design Tokens (Farben, Abstände, Schriften) --- */
:root {
  --color-bg: #0c0c0e;
  --color-bg-soft: #121216;
  --color-surface: #1a1a20;
  --color-text: #eceae6;
  --color-text-muted: #a09d98;
  --color-accent: #c9b8f0;
  --color-accent-hover: #d9cdf5;
  --color-accent-soft: rgba(201, 184, 240, 0.12);
  --color-border: rgba(236, 234, 230, 0.1);

  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 0.35rem;
  --radius-card: 0.85rem;
  --max-width: 68rem;
  --header-height: 4rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Dezenter Verlauf für Atmosphäre (kein flaches Schwarz) */
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 184, 240, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(201, 184, 240, 0.05), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

/* --- Layout-Helfer --- */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section__text {
  max-width: 38rem;
  color: var(--color-text-muted);
}

.section__text + .section__text {
  margin-top: var(--space-sm);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__footer-link {
  margin-top: var(--space-lg);
}

.section--muted {
  background: rgba(18, 18, 22, 0.55);
  border-block: 1px solid var(--color-border);
}

.btn--small {
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  align-self: flex-start;
  margin-top: auto;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-ready {
  transition:
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(12, 12, 14, 0.97);
  border-bottom-color: rgba(201, 184, 240, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-sm);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: color var(--transition);
  flex-shrink: 1;
  min-width: 0;
  line-height: 1.2;
}

.logo:hover,
.logo:focus-visible {
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  z-index: 2;
}

.nav-toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}

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

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

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

.nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: 0;
  padding: 0 var(--space-md);
  overflow: hidden;
  background: rgba(12, 12, 14, 0.98);
  border-bottom: 1px solid transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height 0.35s var(--ease),
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease),
    padding 0.35s var(--ease),
    border-color 0.3s var(--ease);
}

.nav.is-open {
  max-height: 20rem;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-bottom-color: var(--color-border);
}

body.nav-open {
  overflow: hidden;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  padding: 0.85rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  position: relative;
  transition:
    color var(--transition),
    background var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.nav__link.is-active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.45rem;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.55;
}

/* --- Language switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-border);
}

.lang-switch__btn {
  min-width: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: var(--color-text);
  border-color: rgba(201, 184, 240, 0.45);
  background: var(--color-accent-soft);
}

.lang-switch__btn.is-active,
html[data-lang="de"] .lang-switch__btn[data-set-lang="de"],
html[data-lang="en"] .lang-switch__btn[data-set-lang="en"],
html[data-lang="es"] .lang-switch__btn[data-set-lang="es"] {
  color: #141218;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Avoid FOUC: hide translated text until i18n has applied */
html.i18n-pending [data-i18n],
html.i18n-pending [data-i18n-html] {
  visibility: hidden;
}

/* Language-specific blocks (e.g. DE/EN privacy body text) */
[data-lang-block][hidden] {
  display: none !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #141218;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-hover);
  color: #141218;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* --- Hero (home) --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-xl);
  overflow: hidden;
}

.hero__content {
  max-width: 40rem;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__greeting {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__brand {
  margin: 0 0 var(--space-lg);
  line-height: 0;
}

.hero__logo {
  width: min(100%, 28rem);
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 12px 32px rgba(140, 100, 220, 0.28));
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.hero__text {
  color: var(--color-text-muted);
  max-width: 32rem;
  font-size: 1.1rem;
  margin-inline: auto;
}

.hero__content .btn-group {
  justify-content: center;
  margin-top: var(--space-md);
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(80vw, 32rem);
  height: min(80vw, 32rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 184, 240, 0.2), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: pulse-glow 8s ease-in-out infinite;
}

/* --- About section --- */
.about-layout {
  display: grid;
  gap: var(--space-lg);
}

.about-layout__spacing {
  margin-top: var(--space-sm);
}

.about-layout__link {
  margin-top: var(--space-md);
}

.about-panel {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(26, 26, 32, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-panel__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.about-panel__title + .about-panel__title,
.about-panel__text + .about-panel__title,
.about-panel__list + .about-panel__title {
  margin-top: var(--space-lg);
}

.about-panel__text {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.about-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.about-panel__list li {
  padding-left: 1rem;
  position: relative;
}

.about-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
}

/* --- Project cards --- */
.project-grid {
  display: grid;
  gap: var(--space-md);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(26, 26, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.project-card:hover {
  border-color: rgba(201, 184, 240, 0.28);
  background: rgba(26, 26, 32, 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.project-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(
    145deg,
    rgba(201, 184, 240, 0.22),
    rgba(201, 184, 240, 0.06)
  );
  border: 1px solid rgba(201, 184, 240, 0.2);
}

.project-card__icon-img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid rgba(201, 184, 240, 0.2);
}

.project-card__icon-mark {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-card__text {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  flex: 1;
}

/* --- Apps overview cards --- */
.app-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(26, 26, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.app-card:hover {
  border-color: rgba(201, 184, 240, 0.28);
  background: rgba(26, 26, 32, 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.app-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(
    145deg,
    rgba(201, 184, 240, 0.22),
    rgba(201, 184, 240, 0.06)
  );
  border: 1px solid rgba(201, 184, 240, 0.2);
  flex-shrink: 0;
}

.app-card__icon-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  object-fit: cover;
  border: 1px solid rgba(201, 184, 240, 0.2);
  background: rgba(26, 26, 32, 0.8);
  flex-shrink: 0;
}

.app-card__icon-mark {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
}

.app-card__category {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid rgba(201, 184, 240, 0.18);
  border-radius: var(--radius);
  white-space: nowrap;
}

.app-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-card__text {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  flex: 1;
}

.app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: var(--space-xs);
}

/* --- App detail page --- */
.app-detail {
  padding-block: var(--space-lg) var(--space-xl);
}

.app-detail__back {
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.app-detail__header {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.app-detail__icon {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  background: linear-gradient(
    145deg,
    rgba(201, 184, 240, 0.28),
    rgba(201, 184, 240, 0.08)
  );
  border: 1px solid rgba(201, 184, 240, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.app-detail__icon-img {
  width: 5rem;
  height: 5rem;
  border-radius: 1.15rem;
  object-fit: cover;
  border: 1px solid rgba(201, 184, 240, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background: rgba(26, 26, 32, 0.9);
}

.app-detail__icon-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
}

.app-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-block: var(--space-xs) var(--space-sm);
}

.app-detail__summary {
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: var(--space-md);
}

.app-detail__section {
  margin-bottom: var(--space-xl);
}

.app-detail__section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.app-detail__prose {
  max-width: 40rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.screenshot-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.screenshot-grid--real {
  grid-auto-flow: column;
  grid-auto-columns: minmax(11rem, 14rem);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-item {
  scroll-snap-align: start;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: rgba(26, 26, 32, 0.8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.screenshot-placeholder__frame {
  aspect-ratio: 9 / 16;
  max-height: 22rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-card);
  border: 1px dashed rgba(201, 184, 240, 0.35);
  background:
    linear-gradient(160deg, rgba(201, 184, 240, 0.08), transparent 55%),
    rgba(26, 26, 32, 0.7);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.screenshot-placeholder__caption {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.feature-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(26, 26, 32, 0.45);
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.2rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.app-detail__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-detail__link-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Info block --- */
.info-block {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-left: 2px solid rgba(201, 184, 240, 0.45);
  color: var(--color-text-muted);
}

/* --- Placeholder blocks (subpages) --- */
.placeholder-block {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-text-muted);
}

.placeholder-block p + p {
  margin-top: var(--space-sm);
}

.page-hero {
  padding-block: var(--space-xl) var(--space-lg);
}

.page-hero--compact {
  padding-block: var(--space-lg) var(--space-md);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.page-hero__text {
  color: var(--color-text-muted);
  max-width: 36rem;
}

.page-hero__about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.page-hero__about-text .page-hero__title {
  margin-bottom: var(--space-xs);
}

.profile-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(201, 184, 240, 0.55);
  box-shadow:
    0 0 0 6px rgba(201, 184, 240, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

/* --- Privacy overview --- */
.policy-overview__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.policy-overview__intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 36rem;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 42rem;
}

.policy-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(18, 18, 22, 0.65);
}

.policy-list__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.policy-list__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.policy-list__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.policy-list__link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.policy-overview__note {
  margin-top: var(--space-lg);
  max-width: 42rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Privacy policy document (readable, serious) --- */
.policy-doc {
  padding-block: var(--space-md) var(--space-xl);
}

.policy-doc__back {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.policy-doc__header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.policy-doc__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.policy-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 36rem;
}

.policy-meta__row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .policy-meta__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.policy-meta__row dt {
  color: var(--color-text-muted);
}

.policy-meta__row dd {
  color: var(--color-text);
  font-weight: 500;
}

.policy-toc {
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(18, 18, 22, 0.5);
}

.policy-toc__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.policy-toc__list {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.policy-toc__list a {
  color: var(--color-text-muted);
}

.policy-toc__list a:hover,
.policy-toc__list a:focus-visible {
  color: var(--color-accent);
}

.policy-doc__body {
  max-width: 40rem;
}

.policy-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

/*
 * App privacy policies (pages with a table of contents):
 * more space above each section title so it doesn’t sit too close to the text above.
 * Website privacy (/privacy/) and imprint are unaffected.
 */
.policy-doc__layout:has(.policy-toc) .policy-section {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.policy-doc__layout:has(.policy-toc) .policy-section h2 {
  margin-top: 0.15rem;
  margin-bottom: var(--space-md);
}

.policy-section p,
.policy-section li {
  color: #c4c1bb;
  font-size: 1.02rem;
  line-height: 1.75;
}

.policy-section p + p {
  margin-top: 0.85rem;
}

.policy-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.policy-doc__footer-note {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  max-width: 40rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

main {
  flex: 1;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  padding-block: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: rgba(12, 12, 14, 0.72);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.site-footer__tagline {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 18rem;
}

.site-footer__nav-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--color-accent);
}

.site-footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Legacy footer layout (subpages) */
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.site-footer__grid .site-footer__nav {
  display: block;
}

/* --- Animationen --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__content {
  animation: fade-up 0.8s var(--ease) both;
}

/* --- Tablet (>= 768px) --- */
@media (min-width: 768px) {
  body.nav-open {
    overflow: auto;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.is-open {
    max-height: none;
    padding: 0;
    border: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .lang-switch {
    margin-top: 0;
    margin-left: 0.45rem;
    padding-top: 0;
    padding-left: 0.55rem;
    border-top: none;
    border-left: 1px solid var(--color-border);
  }

  .lang-switch__btn {
    min-width: 2.2rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }

  .nav__link {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }

  .nav__link.is-active {
    background: transparent;
  }

  .nav__link.is-active::after {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
  }

  .about-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .page-hero__about {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }

  .profile-photo {
    width: 9rem;
    height: 9rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-detail__header {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--space-lg);
  }

  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-grid--real {
    grid-auto-columns: minmax(12rem, 15rem);
  }

  .policy-meta__row {
    grid-template-columns: 11rem 1fr;
  }

  .policy-toc__list {
    column-count: 2;
    column-gap: var(--space-lg);
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__inner .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
  }
}

/* --- Desktop (>= 1024px) --- */
@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-2xl);
  }

  .hero {
    padding-block: var(--space-2xl);
  }

  .hero__logo {
    width: min(100%, 34rem);
  }

  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Bewegungsreduktion (Barrierefreiheit) --- */
@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;
  }

  .project-card:hover {
    transform: none;
  }

  .app-card:hover {
    transform: none;
  }
}
