/* data object – Stylesheet */

:root {
  --navy: #041a41;
  --navy-2: #0c2d68;
  --navy-3: #1d4a96;
  --accent: #7fa6ec;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #5b6577;
  --line: #e2e7f0;
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-3); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(2, 13, 36, .94), rgba(4, 26, 65, .86));
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 166, 236, .55) 30%, rgba(127, 166, 236, .55) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 4rem;
  padding-block: .6rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  color: #fff;
  white-space: nowrap;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-name {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-name::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff, var(--accent));
  box-shadow: 0 0 12px rgba(127, 166, 236, .8);
}
.brand-sub {
  font-size: .78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
  position: relative;
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  padding: .45rem .8rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Kontakt als hervorgehobener Button */
.nav a[href^="mailto:"] {
  margin-right: .4rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 166, 236, .5);
  background: linear-gradient(135deg, rgba(127, 166, 236, .22), rgba(127, 166, 236, .06));
  color: #fff;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nav a[href^="mailto:"]::after { content: none; }
.nav a[href^="mailto:"]:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(127, 166, 236, .4), rgba(127, 166, 236, .15));
  box-shadow: 0 0 18px rgba(127, 166, 236, .35);
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 420px at 78% 62%, rgba(127, 166, 236, .32), transparent 70%),
    radial-gradient(600px 400px at 8% 0%, rgba(64, 110, 210, .35), transparent 70%),
    radial-gradient(900px 500px at 100% 100%, rgba(29, 74, 150, .6), transparent 70%),
    linear-gradient(165deg, #020d24 0%, var(--navy) 35%, var(--navy-2) 75%, #123a80 100%);
  flex: 1;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* feines Punktraster, zur Mitte hin ausgeblendet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 10%, transparent 75%);
}

/* leichter Lichtstreifen am unteren Rand */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(127, 166, 236, .6) 50%, transparent);
}

/* Bodenschimmer unter den Figuren */
.hero-art { position: relative; }
.hero-art::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 0;
  bottom: -6%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(127, 166, 236, .35), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

.hero-binary {
  position: absolute;
  inset: -10% -5% auto auto;
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: rotate(-12deg);
  z-index: -1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 9vw, 7rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.hero .subtitle {
  margin: .5rem 0 2rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--accent);
  font-weight: 400;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.services li {
  padding: .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .95rem;
}

.hero-art img {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  opacity: .95;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}

/* ---------- Inhaltsseiten ---------- */

.page {
  position: relative;
  flex: 1;
  padding-block: clamp(2rem, 6vw, 4rem);
  isolation: isolate;
}

/* fester Hintergrund im Stil der Startseite */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px) 0 0 / 26px 26px,
    radial-gradient(700px 420px at 85% 20%, rgba(127, 166, 236, .28), transparent 70%),
    radial-gradient(600px 400px at 5% 90%, rgba(64, 110, 210, .35), transparent 70%),
    linear-gradient(165deg, #020d24 0%, var(--navy) 40%, var(--navy-2) 80%, #123a80 100%);
}

/* große Ziffern als Hintergrundmotiv */
.page::after {
  content: "1011";
  position: fixed;
  right: -4vw;
  bottom: -6vw;
  z-index: -1;
  font-size: clamp(8rem, 24vw, 20rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  transform: rotate(-12deg);
  pointer-events: none;
  user-select: none;
}

/* dunkle Glas-Karte, passend zum Hintergrund */
.card {
  position: relative;
  color: rgba(255, 255, 255, .84);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(127, 166, 236, .12), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 20px 60px -10px rgba(0, 0, 0, .5),
    0 0 80px -30px rgba(127, 166, 236, .4);
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
}
.card a { color: #a9c4f5; }
.card a:hover { color: #fff; }

/* schimmernde Leiste oben an der Karte */
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-3), var(--accent), #c9d9fb, var(--accent), var(--navy-3));
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

.page h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.page h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: .6rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy-3), var(--accent));
  transform-origin: left;
  animation: grow .8s .6s ease-out both;
}

/* Impressum */

.impressum {
  max-width: 640px;
  margin-inline: auto;
}
.impressum dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .4rem 1.5rem;
  margin: 1.5rem 0;
}
.impressum dt { color: rgba(255, 255, 255, .55); }
.impressum dd { margin: 0; }
.impressum address { font-style: normal; font-size: 1.05rem; color: #fff; }
.impressum hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 1.5rem 0; }

/* Datenschutz */

.legal {
  max-width: 820px;
  margin-inline: auto;
}
.legal h2 {
  margin: 2.5rem 0 .75rem;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.35;
}
.legal h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.05rem;
  color: var(--accent);
}
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal address { font-style: normal; margin: 0 0 1rem; }
.legal .note { color: rgba(255, 255, 255, .5); font-size: .9rem; margin-top: 2.5rem; }
.legal li::marker { color: var(--accent); }

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

.site-footer {
  position: relative;
  background:
    radial-gradient(600px 160px at 15% 0%, rgba(64, 110, 210, .22), transparent 70%),
    radial-gradient(600px 160px at 85% 100%, rgba(127, 166, 236, .12), transparent 70%),
    linear-gradient(180deg, #031433, #020b1f);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 166, 236, .55) 30%, rgba(127, 166, 236, .55) 70%, transparent);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-block: 1.75rem;
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }

.footer-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-links a {
  padding: .35rem .85rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: .85rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-links a:hover {
  text-decoration: none;
  border-color: rgba(127, 166, 236, .6);
  background: rgba(127, 166, 236, .14);
  transform: translateY(-1px);
}
.footer-address { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.footer-address span + span::before {
  content: "\25CF";
  font-size: .55em;
  vertical-align: middle;
  margin-right: .9rem;
  color: var(--accent);
}

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

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art img { margin-inline: auto; max-width: 420px; }
}

@media (max-width: 520px) {
  .brand { flex-direction: column; gap: 0; }
  .nav a { padding: .4rem .6rem; font-size: .9rem; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-address { flex-direction: column; }
  .footer-address span + span::before { content: none; }
}

/* ---------- Bewegung ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}
@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); opacity: .3; }
  to   { clip-path: inset(0 0 0 0); opacity: .95; }
}
@keyframes float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-18px); }
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 26px 52px; }
}
@keyframes glow {
  0%, 100% { opacity: .6; transform: scaleX(.92); }
  50%      { opacity: 1;  transform: scaleX(1.04); }
}
@keyframes spin-glow {
  0%, 100% { transform: rotate(45deg);  box-shadow: 0 0 8px rgba(127, 166, 236, .6); }
  50%      { transform: rotate(225deg); box-shadow: 0 0 18px rgba(127, 166, 236, 1); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

.site-header { animation: fade-down .6s ease-out both; }
.brand-name::before { animation: spin-glow 6s ease-in-out infinite; }

.site-header::after,
.site-footer::before,
.hero::after {
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}

.hero h1        { animation: fade-up .8s .15s ease-out both; }
.hero .subtitle { animation: fade-up .8s .3s ease-out both; }
.services li    { animation: fade-up .6s ease-out both; }
.services li:nth-child(1) { animation-delay: .45s; }
.services li:nth-child(2) { animation-delay: .53s; }
.services li:nth-child(3) { animation-delay: .61s; }
.services li:nth-child(4) { animation-delay: .69s; }
.services li:nth-child(5) { animation-delay: .77s; }
.services li:nth-child(6) { animation-delay: .85s; }
.services li:nth-child(7) { animation-delay: .93s; }
.services li:nth-child(8) { animation-delay: 1.01s; }

.services li { transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.services li:hover {
  transform: translateY(-2px);
  background: rgba(127, 166, 236, .16);
  border-color: rgba(127, 166, 236, .55);
}

.hero-art img { animation: reveal 1.8s .5s cubic-bezier(.4, 0, .2, 1) both; }
.hero-art::after { animation: glow 5s 2.3s ease-in-out infinite; }
.hero-binary { animation: float 12s ease-in-out infinite; }
.hero::before { animation: drift 20s linear infinite; }

@keyframes grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes bg-float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-20px); }
}

.page .card { animation: fade-up .7s .1s ease-out both; }
.page::after { animation: bg-float 14s ease-in-out infinite; }
@keyframes page-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 26px 52px, 0 0, 0 0, 0 0; }
}
.page::before { animation: page-drift 20s linear infinite; }

/* Impressum: Zeilen erscheinen nacheinander */
.impressum > * { animation: fade-up .6s ease-out both; }
.impressum > :nth-child(2) { animation-delay: .3s; }
.impressum > :nth-child(3) { animation-delay: .4s; }
.impressum > :nth-child(4) { animation-delay: .5s; }
.impressum > :nth-child(5) { animation-delay: .6s; }
.impressum > :nth-child(6) { animation-delay: .7s; }
.impressum > :nth-child(7) { animation-delay: .8s; }

/* Datenschutz: Überschriften tauchen beim Scrollen auf */
@supports (animation-timeline: view()) {
  .legal h2, .legal h3 {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* Akzentlinie links an den Abschnittsüberschriften */
.legal h2 {
  padding-left: .9rem;
  border-left: 3px solid var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
