:root, :root[data-theme="orange"] {
  --accent: #f56a00; --accent-rgb: 245, 106, 0; --accent-bright: #ff7818;
  --accent-soft: rgba(245, 106, 0, .12); --accent-glow: rgba(245, 106, 0, .28);
  --background: #070707; --surface: rgba(18, 18, 18, .78); --text: #f4f2ef;
  --text-muted: #aaa7a2; --border: rgba(255, 255, 255, .1); --focus: #ffd3a4;
}
:root[data-theme="green"] {
  --accent: #39e600; --accent-rgb: 57, 230, 0; --accent-bright: #59ff20;
  --accent-soft: rgba(57, 230, 0, .12); --accent-glow: rgba(57, 230, 0, .24); --focus: #9dff7a;
}
:root[data-theme="contrast"] {
  --accent: #fff; --accent-rgb: 255, 255, 255; --accent-bright: #fff;
  --accent-soft: rgba(255,255,255,.12); --accent-glow: transparent; --background: #000;
  --surface: #000; --text: #fff; --text-muted: #e6e6e6; --border: rgba(255,255,255,.72); --focus: #ffde59;
}

* { box-sizing: border-box; }
html { min-width: 20rem; background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0; min-width: 20rem; background: var(--background); color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility; transition: background-color 360ms ease, color 360ms ease;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.site-shell {
  position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto;
  min-height: 100svh; overflow: hidden; background: var(--background);
}
.hero-background {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-color: var(--background);
  background-repeat: no-repeat; background-position: center; background-size: cover;
  transition: opacity 360ms ease;
}
.hero-background-orange { background-image: url("/background-orange.webp"); opacity: 1; }
.hero-background-green { background-image: url("/background-green.webp"); opacity: 0; }
:root[data-theme="green"] .hero-background-orange { opacity: 0; }
:root[data-theme="green"] .hero-background-green { opacity: 1; }
.reading-shield {
  position: absolute; z-index: 0; inset: 0 auto 0 0; width: min(58rem, 57vw); pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,7,.52) 0%, rgba(7,7,7,.26) 62%, transparent 100%);
}

.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: clamp(1.35rem, 3.5vw, 3rem) clamp(1.25rem, 5vw, 5rem); }
.wordmark { border-radius: .35rem; color: rgba(244,242,239,.82); font-size: clamp(.84rem, 1.1vw, 1rem); font-weight: 580; letter-spacing: .075em; text-decoration: none; }
.wordmark span { color: var(--accent-bright); transition: color 360ms ease; }
.theme-picker { position: relative; }
.theme-trigger { position: relative; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; }
.theme-trigger::before { content: ""; position: absolute; width: 1.9rem; height: 1.9rem; border: 1px solid rgba(var(--accent-rgb), .62); border-radius: 50%; box-shadow: 0 0 12px rgba(var(--accent-rgb), .08), inset 0 0 10px rgba(var(--accent-rgb), .035); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.theme-dot { position: relative; display: block; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px rgba(var(--accent-rgb), .5); transition: transform 180ms ease, filter 180ms ease, box-shadow 360ms ease, background-color 360ms ease; }
.theme-trigger:hover::before { transform: scale(1.06); border-color: rgba(var(--accent-rgb), .92); box-shadow: 0 0 17px rgba(var(--accent-rgb), .17), inset 0 0 11px rgba(var(--accent-rgb), .06); }
.theme-trigger:hover .theme-dot { transform: scale(1.15); filter: brightness(1.18); box-shadow: 0 0 15px rgba(var(--accent-rgb), .7); }
.theme-menu { position: absolute; top: calc(100% + .45rem); right: 0; width: 13.25rem; padding: .6rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: 0 1rem 3rem rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(20px) saturate(120%); animation: menu-in 170ms ease-out both; }
.theme-menu[hidden] { display: none; }
.theme-menu-label { margin: .15rem .65rem .45rem; color: var(--text-muted); font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.theme-option { display: grid; grid-template-columns: 1rem 1fr 1rem; gap: .7rem; align-items: center; width: 100%; min-height: 2.75rem; padding: .45rem .65rem; border: 1px solid transparent; border-radius: .65rem; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.theme-option:hover { border-color: rgba(var(--accent-rgb), .15); background: var(--accent-soft); }
.swatch { width: .72rem; height: .72rem; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.swatch-orange { color: #ff9d3d; background: currentColor; }
.swatch-green { color: #57dd91; background: currentColor; }
.swatch-contrast { color: #fff; background: #000; border: 2px solid currentColor; box-shadow: none; }
.check { width: 1rem; height: 1rem; fill: none; stroke: var(--accent-bright); stroke-width: 2.1; opacity: 0; }
.theme-option[aria-checked="true"] .check { opacity: 1; }

.hero { position: relative; z-index: 1; display: flex; align-items: center; padding: 1.5rem clamp(1.25rem, 8vw, 8.5rem) clamp(3rem, 9vh, 7rem); outline: none; }
.hero-content { width: min(49rem, 66vw); animation: content-in 800ms cubic-bezier(.2,.75,.25,1) both; }
.eyebrow { display: flex; gap: .65rem; align-items: center; margin-bottom: clamp(1.25rem, 3vh, 2.2rem); color: #918f8b; font-size: .7rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 1.7rem; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
h1 { margin: 0; color: var(--text); font-size: clamp(3.15rem, 7.2vw, 7.4rem); font-weight: 640; letter-spacing: -.063em; line-height: .91; }
h1 > span { display: block; }
h1 > span + span { margin-top: .17em; }
h1 em { color: var(--accent-bright); font-style: normal; font-weight: inherit; text-shadow: 0 0 2.5rem rgba(var(--accent-rgb), .1); transition: color 360ms ease, text-shadow 360ms ease; }
.accent-line { width: clamp(2.8rem, 5vw, 4.8rem); height: 2px; margin: clamp(1.65rem, 4vh, 3rem) 0 clamp(1.35rem, 3vh, 2rem); border-radius: 2px; background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), .18)); box-shadow: 0 0 14px var(--accent-glow); }
.intro { max-width: 45rem; margin: 0; color: var(--text-muted); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.75; text-wrap: pretty; }
.intro strong { color: var(--accent-bright); font-weight: 560; transition: color 360ms ease; }
.email-link { display: inline-flex; align-items: center; gap: .72rem; min-height: 3rem; margin-top: clamp(1.8rem, 4vh, 2.9rem); padding: .63rem .95rem .63rem .82rem; border: 1px solid rgba(var(--accent-rgb), .22); border-radius: .75rem; background: rgba(var(--accent-rgb), .045); color: var(--accent-bright); font-size: clamp(.9rem, 1.1vw, 1rem); font-weight: 570; letter-spacing: .012em; text-decoration: none; transition: transform 180ms ease, border-color 360ms ease, background-color 360ms ease, color 360ms ease, box-shadow 360ms ease; }
.email-link svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
.email-arrow { margin-left: .15rem; color: var(--text-muted); transition: transform 180ms ease, color 180ms ease; }
.email-link:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .09); box-shadow: 0 .7rem 2.5rem rgba(0,0,0,.3), 0 0 1.8rem rgba(var(--accent-rgb), .07); }
.email-link:hover .email-arrow { transform: translate(2px,-2px); color: var(--accent-bright); }
.email-placeholder { display: inline-block; min-height: 3rem; margin-top: clamp(1.8rem, 4vh, 2.9rem); color: transparent; }
.site-footer { position: relative; z-index: 1; width: 100%; padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(1.35rem, 3vw, 2.5rem); color: #7b7975; font-size: .72rem; letter-spacing: .055em; text-align: center; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.theme-option:focus-visible { outline-offset: 0; }
:root[data-theme="contrast"] .hero-background { opacity: 0; }
:root[data-theme="contrast"] .reading-shield { background: linear-gradient(90deg, #000, #000 75%, transparent); }
:root[data-theme="contrast"] .wordmark { color: #fff; }
:root[data-theme="contrast"] .eyebrow, :root[data-theme="contrast"] .site-footer { color: #e6e6e6; }
:root[data-theme="contrast"] .theme-menu { border-width: 2px; backdrop-filter: none; }
:root[data-theme="contrast"] .theme-option:hover, :root[data-theme="contrast"] .theme-option[aria-checked="true"] { border-color: #fff; }
:root[data-theme="contrast"] .email-link { border: 2px solid #fff; background: #000; }

@keyframes content-in { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-.35rem) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 760px) {
  .site-shell { min-height: 100svh; overflow-y: auto; }
  .hero-background { background-position: 60% center; }
  .reading-shield { width: 100%; background: linear-gradient(90deg, rgba(7,7,7,.88), rgba(7,7,7,.58) 72%, rgba(7,7,7,.2)); }
  .site-header { padding: 1.25rem 1rem 1rem 1.25rem; }
  .hero { align-items: flex-start; padding: clamp(2.6rem, 9vh, 5rem) 1.25rem 3rem; }
  .hero-content { width: min(100%, 39rem); }
  h1 { font-size: clamp(3.05rem, 15vw, 5.25rem); line-height: .94; letter-spacing: -.057em; }
  .desktop-break { display: none; }
  .intro { max-width: 33rem; font-size: 1rem; line-height: 1.7; }
  .email-link { max-width: 100%; }
  .theme-menu { position: fixed; top: 4.4rem; right: 1rem; width: min(13.25rem, calc(100vw - 2rem)); }
  .site-footer { padding: 0 1.25rem 1.35rem; }
}
@media (max-height: 680px) and (min-width: 761px) {
  .site-header { padding-top: 1.5rem; padding-bottom: 1rem; }
  .hero { align-items: flex-start; padding-top: 2rem; padding-bottom: 2rem; }
  h1 { font-size: clamp(3.5rem, 11vh, 6rem); }
  .eyebrow { margin-bottom: 1rem; }
  .accent-line { margin: 1.5rem 0 1.2rem; }
  .email-link { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* Accessibility information in the footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.accessibility-link {
  padding: .15rem .1rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
  cursor: pointer;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.accessibility-link:hover {
  color: var(--text-muted);
  text-decoration-color: currentColor;
}
.accessibility-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
}
.accessibility-dialog {
  position: relative;
  width: min(31rem, 100%);
  padding: 1.5rem 1.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.035);
}
.accessibility-dialog h2 {
  margin: .15rem 2.5rem .75rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
}
.accessibility-dialog p {
  margin: .55rem 0 0;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
}
.accessibility-eyebrow {
  margin: 0 !important;
  color: var(--accent-bright) !important;
  font-size: .68rem !important;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.accessibility-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.accessibility-close:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), .5);
}
.accessibility-link:focus-visible,
.accessibility-close:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
:root[data-theme="contrast"] .accessibility-backdrop { background: rgba(0,0,0,.82); }
:root[data-theme="contrast"] .accessibility-dialog { border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .accessibility-link { transition: none; }
  .accessibility-backdrop { backdrop-filter: none; }
}


/* Wichtig: Das native hidden-Attribut muss den Modal-Backdrop wirklich ausblenden. */
.accessibility-backdrop[hidden] {
  display: none;
}


/* Footer: dezente Lesbarkeitsfläche – ausschließlich optische Footer-Anpassung */
.site-footer {
  width: fit-content;
  max-width: calc(100% - 2.5rem);
  margin: 0 auto clamp(1.35rem, 3vw, 2.5rem);
  padding: .48rem .8rem;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: .55rem;
  background: rgba(7, 7, 7, .52);
  box-shadow: 0 .35rem 1.2rem rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root[data-theme="orange"] .site-footer {
  border-color: rgba(245, 106, 0, .20);
}

:root[data-theme="green"] .site-footer {
  border-color: rgba(57, 230, 0, .18);
}

:root[data-theme="contrast"] .site-footer {
  border-color: rgba(255, 255, 255, .72);
  background: #000;
}

@media (max-width: 40rem) {
  .site-footer {
    max-width: calc(100% - 2rem);
    margin-bottom: 1.15rem;
    padding: .48rem .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* E-Mail-Popup */
.email-dialog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 1.2rem;
    padding: 0.7rem 1rem;

    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 0.6rem;

    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent-bright);

    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.email-dialog-button:hover {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.6);
    transform: translateY(-1px);
}

.email-dialog-button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.email-dialog-address {
    margin-top: 0.8rem !important;

    color: var(--text-muted);
    font-size: 0.78rem !important;
    letter-spacing: 0.03em;
}