/* ==========================================================================
   ILENIUS SE — Stylesheet v4
   Alternierende Abschnitts-Hintergründe mit weichen Übergängen, Foto/Text
   Split-Layouts, auffälligerer hellblauer Hover-Effekt auf allen Kacheln.
   ========================================================================== */

:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --line: #dde7f1;
  --line-strong: #c3d5e8;
  --ink: #0b2545;
  --text: #1f3a57;
  --text-dim: #55708c;
  --text-faint: #93a8bd;
  --blue: #1d4ed8;
  --blue-bright: #2f6fed;
  --cyan: #06b6d4;
  --gradient: linear-gradient(135deg, #1d4ed8 0%, #2f6fed 55%, #06b6d4 100%);
  --blue-soft: rgba(29, 78, 216, 0.08);
  --blue-soft-strong: rgba(29, 78, 216, 0.14);
  --hover-gradient: linear-gradient(135deg, #dbeafe 0%, #eaf2ff 55%, #ffffff 100%);

  --sans: "Carlito", "Calibri", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --radius: 999px;
  --radius-lg: 22px;
  --seam-h: 110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
}
/* Der Weichzeichner sitzt auf einem eigenen Hintergrund-Layer statt direkt
   auf .site-header — sonst würde .site-header (wegen backdrop-filter) zum
   "containing block" für fixierte Kind-Elemente wie das Mobile-Menü, was
   dessen Hintergrund auf die 84px hohe Kopfzeile begrenzen und den Rest
   transparent erscheinen lassen würde. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 249, 252, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.02);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand .mark {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.brand small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }

.nav-toggle { display: none; }

/* ---------- Section shell + alternierende Hintergründe ---------- */
section { position: relative; z-index: 1; }
.section { padding: 100px 0; }

#home           { background: var(--surface); }
#leistungen     { background: var(--bg); }
#investor-relations { background: var(--surface); }
#business       { background: var(--bg); }
#ueber-uns      { background: var(--surface); }
#kontakt        { background: var(--bg); }
.site-footer    { background: var(--surface); }

/* Weiche Übergänge zwischen den Abschnitten: ein Verlaufsstreifen, der
   exakt auf der Farbe der vorherigen Sektion beginnt und in die Farbe der
   aktuellen Sektion übergeht — dadurch keine harte Kante. */
#leistungen::before,
#investor-relations::before,
#business::before,
#ueber-uns::before,
#kontakt::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: calc(var(--seam-h) / -2);
  left: 0;
  width: 100%;
  height: var(--seam-h);
  z-index: 0;
  pointer-events: none;
}
#leistungen::before          { background: linear-gradient(to bottom, var(--surface), var(--bg)); }
#investor-relations::before  { background: linear-gradient(to bottom, var(--bg), var(--surface)); }
#business::before            { background: linear-gradient(to bottom, var(--surface), var(--bg)); }
#ueber-uns::before           { background: linear-gradient(to bottom, var(--bg), var(--surface)); }
#kontakt::before             { background: linear-gradient(to bottom, var(--surface), var(--bg)); }
.site-footer::before         { background: linear-gradient(to bottom, var(--bg), var(--surface)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  z-index: 1;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 48ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
}
.btn-primary {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(29, 78, 216, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(29, 78, 216, 0.6); }
.btn-ghost:hover { border-color: var(--text-dim); background: var(--surface-2); transform: translateY(-2px); }

/* Foto-Rahmen — Hero + Split-Sections */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 30px 70px -22px rgba(11, 37, 69, 0.32), 0 0 0 1px rgba(255,255,255,0.6) inset;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo.photo-frame { aspect-ratio: 4 / 3.1; }

/* Entrance animation for photos */
.photo-reveal { opacity: 0; transform: scale(1.045); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16,.8,.2,1); }
.photo-reveal.is-in { opacity: 1; transform: scale(1); }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 10px 0 0;
  line-height: 1.15;
  color: var(--ink);
}
.section-head .kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-head p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 42ch;
  margin: 0;
}

/* ---------- Stagger: cascading fade-up for grouped text ---------- */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.stagger.is-in > * { opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(1) { transition-delay: 0s; }
.stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .24s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .36s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .48s; }

/* ---------- Split-Layout: Foto + Text nebeneinander (Business, Über uns, Kontakt) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}
.split-photo { order: 1; aspect-ratio: 4 / 3.3; }
.split-text { order: 2; }
.split-text .kicker { display: block; margin-bottom: 10px; }
.split-text h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0 0 20px;
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Kachel-Hover: gemeinsame Basis für Leistungs-Kacheln + Tile-Links ---------- */
.service-card,
.hover-tile {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, background .32s ease;
}
.service-card:hover,
.hover-tile:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 50px -18px rgba(29, 78, 216, 0.38);
  border-color: var(--blue);
  background: var(--hover-gradient);
}
.service-card:hover .service-glyph-wrap,
.hover-tile:hover .service-glyph-wrap,
.hover-tile:hover .partner-mark,
.hover-tile:hover .contact-icon {
  background: rgba(29, 78, 216, 0.22);
}
.service-card:hover h3,
.hover-tile:hover .name,
.hover-tile:hover .value {
  color: var(--blue);
}

/* ---------- Leistungen (im Home-Bereich) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px -18px rgba(11, 37, 69, 0.18);
}
.service-index {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 18px 0 10px;
  color: var(--ink);
  transition: color .28s ease;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}
.service-glyph-wrap {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  transition: background .28s ease;
}
.service-glyph {
  width: 22px; height: 22px;
  color: var(--blue);
}

/* ---------- Investor Relations ---------- */
.section-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  margin-bottom: 56px;
  box-shadow: 0 20px 50px -22px rgba(11, 37, 69, 0.3);
}
.section-photo img { width: 100%; height: 100%; object-fit: cover; }

.ir-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.ir-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(11, 37, 69, 0.18);
}
.ir-table dl { margin: 0; }
.ir-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.ir-row:last-child { border-bottom: none; }
.ir-row dt { color: var(--text-dim); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.ir-row dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }

.ir-side { display: flex; flex-direction: column; gap: 28px; }
.ir-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: 0 12px 30px -18px rgba(11, 37, 69, 0.18);
}
.ir-panel h3 {
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 18px;
  color: var(--ink);
}
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease;
}
.doc-link:first-of-type { border-top: none; }
.doc-link:hover { color: var(--blue); }
.doc-link .arrow { color: var(--blue); font-family: var(--mono); flex-shrink: 0; }
.calendar-item {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.calendar-item:first-of-type { border-top: none; }
.calendar-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
  white-space: nowrap;
  padding-top: 1px;
}
.calendar-desc { color: var(--text); }

/* ---------- Business / Über uns Textblöcke ---------- */
.text-block p {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 20px;
}
.text-block p:last-child { margin-bottom: 0; }

/* ---------- Tile-Links: Kapitalmarktpartner + E-Mail-Kontakt ---------- */
.partner-card,
.contact-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 12px 30px -18px rgba(11, 37, 69, 0.18);
  cursor: pointer;
}
.partner-mark,
.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background .28s ease;
}
.partner-card .label,
.contact-block .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 4px;
}
.partner-card .name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color .28s ease;
}
.contact-block a.value,
.contact-block .value {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  transition: color .28s ease;
}
.tile-arrow {
  margin-left: auto;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-copy { font-size: 0.85rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.85rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(11, 37, 69, 0.14);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.cookie-banner-head .mark { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.cookie-banner p {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.cookie-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; font-size: 0.84rem; }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 84px; background: var(--surface); }
.legal-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero .kicker { display: block; margin-bottom: 16px; }
.legal-hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
  color: var(--ink);
}
.legal-body { padding: 56px 0 100px; max-width: 720px; }
.legal-body h2 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-dim); font-size: 0.98rem; }
.legal-body ul { padding-left: 20px; }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; color: var(--blue); }
.legal-body strong { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--text-dim); }
.legal-body th { color: var(--ink); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Generic reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
  .split-grid--reverse .split-photo { order: 2; }
  .split-grid--reverse .split-text { order: 1; }
}

@media (max-width: 980px) {
  :root { --seam-h: 70px; }
  .hero { min-height: auto; padding-top: 104px; padding-bottom: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .services { grid-template-columns: 1fr; }
  .ir-grid { grid-template-columns: 1fr; }
  .section-photo { height: 220px; }
  .split-grid { grid-template-columns: 1fr; gap: 28px; }
  .split-photo { order: 1 !important; aspect-ratio: 16/10; }
  .split-text { order: 2 !important; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--surface);
    flex-direction: column; padding: 40px 32px; gap: 28px; transform: translateX(100%);
    transition: transform .3s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 200;
  }
  .nav-toggle span { width: 22px; height: 1px; background: var(--ink); }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .partner-card, .contact-block { flex-wrap: wrap; }
}
