/* ============================================================
   D01 ADVANCED PROJECTS — d01.tech
   Statische Startseite. Keine externen Ressourcen, keine Fonts
   von Dritten, keine Cookies.
   ============================================================ */

:root {
  --d01-red:    #FF202D;
  --black:      #0A0A0A;
  --panel:      #0F0F0F;
  --dark-gray:  #1A1A1A;
  --mid-gray:   #505050;
  --light-gray: #F0F0F0;
  --white:      #FFFFFF;
  --faint:      #3A3A3A;
  --font: 'DIN Next', 'DIN Next LT Pro', 'Archivo', 'Arial Narrow', Arial, Helvetica, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
}

body {
  color: var(--light-gray);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--d01-red);
  outline-offset: 2px;
}

@keyframes d01in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Bühne ---------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--black);
  background-image: radial-gradient(#1F1F1F 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}

/* Vier Eck-Klammern */
.bracket {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.bracket--tl { top: 24px;    left: 24px;  border-top: 2px solid var(--d01-red);    border-left: 2px solid var(--d01-red); }
.bracket--tr { top: 24px;    right: 24px; border-top: 2px solid var(--d01-red);    border-right: 2px solid var(--d01-red); }
.bracket--bl { bottom: 24px; left: 24px;  border-bottom: 2px solid var(--d01-red); border-left: 2px solid var(--d01-red); }
.bracket--br { bottom: 24px; right: 24px; border-bottom: 2px solid var(--d01-red); border-right: 2px solid var(--d01-red); }

/* ---------- Signet ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.03em;
  margin: 0;
  font-weight: 800;
  font-size: clamp(64px, 13vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: d01in 700ms ease both;
}
.logo__d { color: var(--white); }
.logo__1 { color: var(--d01-red); }
.logo__o {
  position: relative;
  display: inline-block;
  width: 0.68em;
  height: 0.72em;
  margin: 0 0.04em;
  border: 0.105em solid var(--white);
  border-radius: 0.1em;
}
.logo__o i {
  position: absolute;
  top: 50%;
  left: -6%;
  width: 112%;
  height: 0.09em;
  background: var(--white);
  transform: translateY(-50%) rotate(-40deg);
}

.rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: 34px 0 26px;
  background: var(--d01-red);
}

.claim {
  margin: 0;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.3em;
  color: var(--mid-gray);
}

/* ---------- Fuß / Rechtliches ---------- */

.legal {
  position: absolute;
  bottom: 46px;
  left: 56px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 46vw;
}
.legal__nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.legal__sep { color: var(--dark-gray); }
.legal__meta {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--faint);
  line-height: 1.6;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--light-gray);
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 160ms;
}
.linkish:hover { color: var(--d01-red); }

/* ---------- Overlay / Panel ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 5, 5, 0.86);
}
.overlay[hidden] { display: none; }

.panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  overflow: auto;
  padding: 40px 40px 36px;
  background: var(--panel);
  border: 1px solid var(--dark-gray);
  animation: d01in 220ms ease both;
}

.panel__bracket {
  position: absolute;
  width: 16px;
  height: 16px;
}
.panel__bracket--tl { top: 14px;    left: 14px;  border-top: 2px solid var(--d01-red);    border-left: 2px solid var(--d01-red); }
.panel__bracket--br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--d01-red); border-right: 2px solid var(--d01-red); }

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-gray);
}
.panel__title {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--light-gray);
}
.slash { color: var(--d01-red); }

.panel__close {
  background: transparent;
  border: none;
  color: var(--mid-gray);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  transition: color 160ms;
}
.panel__close:hover { color: var(--d01-red); }

.panel__body { padding-top: 26px; }
.panel__body[hidden] { display: none; }

/* ---------- Impressum / Datenschutz ---------- */

.doc {
  display: grid;
  gap: 22px;
  font-size: 13px;
  line-height: 1.75;
  color: #9A9A9A;
}
.doc p { margin: 0; }
.doc__label {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mid-gray);
  margin-bottom: 8px !important;
}
.doc__strong {
  color: var(--light-gray);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.doc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  border-top: 1px solid var(--dark-gray);
  padding-top: 22px;
}
.doc__stack {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--dark-gray);
  padding-top: 22px;
}

/* ---------- Kleine Viewports ---------- */

@media (max-width: 860px) {
  .stage { padding-bottom: 0; }
  .hero { padding: 110px 28px 40px; }
  .legal {
    position: static;
    max-width: none;
    align-items: center;
    text-align: center;
    padding: 0 28px 52px;
  }
  .legal__meta { font-size: 8px; }
  .bracket { width: 18px; height: 18px; }
  .bracket--tl, .bracket--tr { top: 16px; }
  .bracket--bl, .bracket--br { bottom: 16px; }
  .bracket--tl, .bracket--bl { left: 16px; }
  .bracket--tr, .bracket--br { right: 16px; }
  .overlay { padding: 16px; }
  .panel { padding: 32px 24px 28px; max-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
