/* amidiro — recovered brand: bg #110B28, accent #2EC4B6, Roboto Condensed headings */

@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/RobotoCondensed-var.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #110b28;
  --bg-raised: #1d1733;
  --ink: #ffffff;
  --ink-muted: #b9b6c6;
  --ink-dim: #8b87a0;
  --accent: #2ec4b6;
  --accent-dark: #1f8e84;
  --c-orange: #ff9f1c;
  --c-yellow: #f5f749;
  --c-green: #8fc93a;
  --c-blue: #577ff4;
  --rule: rgba(255, 255, 255, 0.14);
  --head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Roboto, "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --measure: 62ch;
}

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

/* Grid and flex children default to min-width:auto, which lets wide images and
   long German compounds push a track wider than the viewport. Reset it. */
.hero__grid > *, .svc__item > *, .two-col > *, .cards > *, .refs > * { min-width: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p, li { overflow-wrap: break-word; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); color: var(--accent); margin-top: 2.2em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-top: 1.8em; }
h4 { font-size: 1.05rem; margin-top: 1.5em; color: var(--ink-muted); }

p, ul, ol { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--accent); }

strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); }

/* ---------- header ---------- */

/* Wie im Original: transparent, scrollt mit, keine Trennlinie, keine Navigation. */
.site-head { background: transparent; }
.site-head__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 84px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 152px; display: block; }

.lang { display: flex; align-items: center; gap: 1.1rem; font-family: var(--head); }
.lang a, .lang > span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1.05rem; letter-spacing: 0.02em;
}
.lang > span { color: var(--ink); }
.lang a { color: var(--ink-dim); }
.lang a:hover { color: var(--accent); text-decoration: none; }
.lang .flag { font-size: 0.9em; line-height: 1; }

/* ---------- hero ---------- */

.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 4vw, 3rem); }
.hero__grid {
  display: grid; align-items: center;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  grid-template-columns: 1fr 1.15fr 1fr;
  max-width: 840px; margin-inline: auto;
}
.hero__grid img { border-radius: 0; display: block; width: 100%; }
.hero h1 {
  text-align: left;
  font-size: clamp(1.6rem, 2.35vw, 2.5rem);
  line-height: 1.16;
  margin: 0;
  text-wrap: initial;
}
.w-o { color: var(--c-orange); }
.w-y { color: var(--c-yellow); }
.w-g { color: var(--c-green); }
.w-b { color: var(--c-blue); }
.w-t { color: var(--accent); }

@media (max-width: 800px) {
  .hero__grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .hero__grid h1 { grid-column: 1 / -1; order: 3; text-align: center; }
}

/* ---------- references ---------- */

/* Logogrößen wie im Original: ICS deutlich größer, investify etwas größer. */
.refs {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.2rem); flex-wrap: wrap;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
}
.refs img { width: auto; height: 37px; }
.refs img.ref-ics { height: 78px; }
.refs img.ref-investify { height: 58px; }
@media (max-width: 600px) {
  .refs img { height: 30px; }
  .refs img.ref-ics { height: 54px; }
  .refs img.ref-investify { height: 44px; }
}

/* ---------- service cards ---------- */

.svc { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2rem; }
.svc__item {
  display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
.svc__item img { border-radius: 6px; }
.svc__item h3 { margin-top: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.svc__item p { color: var(--ink-muted); }
@media (max-width: 720px) { .svc__item { grid-template-columns: 1fr; } }

/* ---------- callout / cta ---------- */

/* Wie im Original: kein Rahmen, kein Kasten. Feine Linie oben, Text links,
   massiver türkiser Block rechts. */
.cta {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}
.cta__text { flex: 1 1 22ch; align-self: center; }
.cta__text h3 { margin: 0 0 0.2em; }
.cta__text p { margin: 0; color: var(--ink-muted); }
.cta .btn {
  flex: 1 1 20ch; display: flex; align-items: center;
  padding: 1.6rem 1.8rem; border-radius: 4px; font-size: 1.15rem;
}

.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  background: var(--accent); color: #0d0a1f;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  border-radius: 4px; white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: #4fd6c9; text-decoration: none; }
.btn--ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--ghost:hover { background: rgba(46, 196, 182, 0.12); }

/* ---------- statement band ---------- */

/* Wie im Original: gleicher Hintergrund, nur große türkise Schrift. */
.band {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}
.band p {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.2;
  color: var(--accent); max-width: 30ch; margin: 0;
}
.band--wide p { max-width: 38ch; }

/* ---------- cards grid ---------- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 1.5rem; }
.card {
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.4rem 1.5rem; background: rgba(255, 255, 255, 0.025);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; font-size: 1.18rem; }
.card p { color: var(--ink-muted); font-size: 0.98rem; flex: 1; }
.card__meta {
  font-family: var(--head); font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.card a.card__link { font-family: var(--head); font-weight: 700; }

/* ---------- article ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0.5rem; }
.page-head p.kicker {
  font-family: var(--head); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-size: 0.9rem; margin-bottom: 0.7rem;
}
.article { padding-bottom: 3rem; }
.article .prose > p:first-of-type { font-size: 1.15rem; color: var(--ink); }
.byline { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 2rem; }
.notice {
  border-left: 3px solid var(--accent); background: rgba(46, 196, 182, 0.07);
  padding: 0.9rem 1.2rem; margin: 1.5rem 0; border-radius: 0 5px 5px 0;
}
.notice p { margin: 0; color: var(--ink-muted); font-size: 0.97rem; }

.two-col { display: grid; gap: clamp(1.2rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3:first-child { margin-top: 0; }

.dl-list { list-style: none; padding: 0; }
.dl-list li { border-top: 1px solid var(--rule); padding: 0.9rem 0; margin: 0; }
.dl-list li:last-child { border-bottom: 1px solid var(--rule); }
.dl-list .meta { display: block; color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem; margin-top: 4rem;
  font-size: 0.96rem;
}
.site-foot__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-foot img.foot-logo { width: 118px; }
.foot-nav { display: flex; gap: 1.1rem 1.6rem; flex-wrap: wrap; }
.foot-nav a { color: var(--ink-muted); }
.foot-nav a:hover { color: var(--accent); }
.site-foot__bottom {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--ink-dim); font-size: 0.9rem;
}

/* ---------- misc ---------- */

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #0d0a1f; padding: 0.6rem 1rem; border-radius: 0 0 5px 0;
}
.skip:focus { left: 0; top: 0; z-index: 100; }

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--head); color: var(--ink); }
td { color: var(--ink-muted); }

.tbl-scroll { overflow-x: auto; }

@media print {
  .site-head, .site-foot, .cta { display: none; }
  body { background: #fff; color: #000; }
}

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