/* ============================================
   RESET & BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --navy:        #0d1b2e;
  --navy-mid:    #132338;
  --blue:        #1a4f8a;
  --blue-light:  #7ab8f5;
  --white:       #ffffff;
  --gray:        rgba(255,255,255,.45);
  --gray-dim:    rgba(255,255,255,.2);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out:    cubic-bezier(.22, 1, .36, 1);

  /* Fluid logo size: min 200px, scales with smallest viewport dimension, max 460px */
  --logo-size: clamp(200px, 38vmin, 460px);
  --wrap-size: clamp(220px, 42vmin, 500px);
}

html {
  min-height: 100%;
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
}

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   STAGE
   ============================================ */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 0;
  gap: 0;
  text-align: center;
}

/* Hintergrund-Verlauf */
.stage::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(26,79,138,.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%,  rgba(26,79,138,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   LOGO WRAP + RING
   ============================================ */
.logo-wrap {
  position: relative;
  width: var(--wrap-size);
  height: var(--wrap-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 50%;

  opacity: 0;
  transform: scale(.6);
  animation: logoReveal .9s var(--ease-out) .2s both;
}

@keyframes logoReveal {
  to { opacity: 1; transform: scale(1); }
}

/* SVG-Ring der sich aufzeichnet */
.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ring__track {
  fill: none;
  stroke: none;
}

.ring__draw {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-dasharray: 741;
  stroke-dashoffset: 741;
  animation: drawRing 1.6s var(--ease-out) .7s both;
}

@keyframes drawRing {
  to { stroke-dashoffset: 0; }
}

/* Glow hinter dem Logo */
.logo-glow {
  position: absolute;
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,.95) 0%,
    rgba(255,255,255,.80) 22%,
    rgba(255,255,255,.40) 48%,
    rgba(255,255,255,.10) 68%,
    transparent 78%
  );
  filter: blur(10px);
  animation: glowPulse 3s ease-in-out 1.5s infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Logo-Bild */
.logo {
  position: relative;
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(26,79,138,.5));
  animation: logoShimmer 4s ease-in-out 1.5s infinite;
}

@keyframes logoShimmer {
  0%, 100% { filter: drop-shadow(0 8px 32px rgba(26,79,138,.5)); }
  50%       { filter: drop-shadow(0 12px 48px rgba(122,184,245,.45)); }
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(420px, 90vw);
  margin-bottom: 1.5rem;

  opacity: 0;
  animation: fadeUp .6s var(--ease-out) 1.1s both;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.divider__diamond {
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  transform: rotate(45deg);
  opacity: .7;
  flex-shrink: 0;
}

/* ============================================
   TEXT CONTENT
   ============================================ */
.content {
  max-width: 600px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 1.3s both;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  opacity: .85;
}

.headline {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--white);
  margin-bottom: 1rem;
}

.headline em {
  font-style: normal;
  color: var(--blue-light);
}

.subline {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: var(--gray);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   KONTAKT-KARTE
   ============================================ */
.contact-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: calc(100vw - 3rem);
  width: auto;

  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 1.7s both;
}

.contact-card__item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.2rem 1.4rem;
  flex: 0 0 auto;
  min-width: 0;
  transition: background .25s;
}
.contact-card__item:hover { background: rgba(255,255,255,.05); }

.contact-card__sep {
  width: 1px;
  background: rgba(255,255,255,.08);
  align-self: stretch;
  flex-shrink: 0;
}

.contact-card__icon {
  width: 36px;
  height: 36px;
  background: rgba(26,79,138,.3);
  border: 1px solid rgba(122,184,245,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.contact-card__label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .2rem;
}

.contact-card__value {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  font-size: .72rem;
  color: rgba(255,255,255,.25);
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  width: 100%;

  opacity: 0;
  animation: fadeUp .6s var(--ease-out) 2.1s both;
}

.footer a { color: rgba(255,255,255,.3); }
.footer a:hover { color: rgba(255,255,255,.6); opacity: 1; }
.footer__sep { opacity: .4; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE — Laptop klein (≤1100px Höhe)
   ============================================ */
@media (max-height: 800px) and (min-width: 601px) {
  :root {
    --logo-size: clamp(180px, 30vmin, 340px);
    --wrap-size: clamp(200px, 33vmin, 370px);
  }
  .logo-wrap { margin-bottom: 1rem; }
  .divider { margin-bottom: 1rem; }
  .eyebrow { margin-bottom: .6rem; }
  .headline { margin-bottom: .6rem; }
  .contact-card { margin-top: 1.25rem; }
}

@media (max-height: 650px) and (min-width: 601px) {
  :root {
    --logo-size: clamp(140px, 24vmin, 240px);
    --wrap-size: clamp(160px, 27vmin, 270px);
  }
  .logo-wrap { margin-bottom: .6rem; }
  .divider { margin-bottom: .6rem; }
  .eyebrow { font-size: .62rem; margin-bottom: .4rem; }
  .headline { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: .4rem; }
  .subline { font-size: .8rem; line-height: 1.5; }
  .contact-card { margin-top: .75rem; }
  .contact-card__item { padding: .7rem 1rem; }
}

/* ============================================
   RESPONSIVE — Mobil (≤600px)
   ============================================ */
@media (max-width: 600px) {
  :root {
    --logo-size: clamp(120px, 38vw, 190px);
    --wrap-size: clamp(135px, 42vw, 210px);
  }

  .stage {
    min-height: 100vh;
    padding: 1.5rem 1rem 0;
    justify-content: center;
    gap: 0;
  }

  .logo-wrap { margin-bottom: .9rem; }
  .divider { margin-bottom: .9rem; }

  .eyebrow { font-size: .64rem; margin-bottom: .55rem; letter-spacing: .12em; }
  .headline { font-size: clamp(1.4rem, 7vw, 1.9rem); margin-bottom: .55rem; }
  .subline { font-size: .83rem; line-height: 1.65; }

  .contact-card {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    margin-top: 1.1rem;
  }
  .contact-card__sep { width: auto; height: 1px; }
  .contact-card__item { padding: .75rem 1rem; gap: .65rem; }
  .contact-card__icon { width: 32px; height: 32px; font-size: .85rem; }
  .contact-card__label { font-size: .6rem; }
  .contact-card__value { font-size: .8rem; }

  .footer { font-size: .65rem; gap: .25rem .5rem; }
}

/* ============================================
   RESPONSIVE — sehr kleines Handy (≤380px)
   ============================================ */
@media (max-width: 380px) {
  :root {
    --logo-size: clamp(100px, 32vw, 150px);
    --wrap-size: clamp(115px, 36vw, 168px);
  }
  .headline { font-size: 1.3rem; }
  .eyebrow { font-size: .6rem; }
}
