/* Mario Engel · GROKDESIGN — layout inspired by Dense Discovery (tokens faithful) */
:root {
  --ink: #313131;
  --ink-soft: rgba(0, 0, 0, 0.46);
  --paper: #ffffff;
  --hero-bg: #f4eff6;
  --quote-bg: #faf4e5;
  --soft-bg: #f1f1f1;
  --cream: #f6f6ee;
  --star: #f1c755;
  --line: #91919170;
  --accent-red: #db5644;
  --accent-blue: #3175b9;
  --accent-green: #7cb663;
  --accent-orange: #e78931;
  --accent-purple: #6d54a5;
  --accent-pink: #c74b9e;
  --accent-teal: #29899e;
  --accent-mint: #41a494;
  --radius: 0.5rem;
  --container: 1200px;
  --font: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --section-gap: 4.5rem;
  --base: ;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.12em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
h1, h2, h3, p, ul, blockquote { margin-top: 0; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---- Top bar ---- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-top.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.site-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
}
.brand-mark {
  width: 1.65rem;
  height: 2.35rem;
  display: flex;
  gap: 0.32rem;
}
.brand-mark span {
  flex: 1;
  background: var(--ink);
  border-radius: 2px;
}
.brand-text { font-size: 0.95rem; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.primary-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.primary-nav a:hover { color: var(--ink); }
.top-tools { display: flex; align-items: center; gap: 0.65rem; }
.lang-switch {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch a {
  text-decoration: none;
  min-width: 2.4rem;
  min-height: 1.85rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
.menu-btn {
  display: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 0.75rem/1 var(--font);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: #000; }
.btn-outline {
  background: #fff;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Hero ---- */
.hero {
  background: var(--hero-bg);
  padding: 2rem 0 0;
  transition: background 1s ease;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 28rem;
  padding-bottom: 1.5rem;
}
.hero-role {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 700;
}
.hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  max-width: 34rem;
}
.hero-meta {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero-visual {
  position: relative;
  min-height: 24rem;
  display: flex;
  align-items: flex-end;
}
.img-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #806d50;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}
.img-frame .explore {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, bottom .2s ease;
}
.img-frame:hover .explore {
  background: var(--ink);
  color: #fff;
  bottom: 1.75rem;
}
.portrait-note {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: rgba(255,255,255,0.88);
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  max-width: calc(100% - 1.7rem);
}

/* ---- Quotes ---- */
.quotes {
  display: grid;
  gap: 1.25rem;
  padding: 2.75rem 0 1rem;
}
.quote-card {
  position: relative;
  background: var(--quote-bg);
  padding: 2.4rem 1.5rem 1.7rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: center;
  font-style: italic;
  color: var(--ink);
}
.quote-card strong { font-style: italic; font-weight: 700; }
.quote-card .quote-mark {
  display: block;
  margin: 0.15rem 0 0.55rem;
  font-style: normal;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-purple);
  opacity: 0.85;
}
.quote-card .quote-text { display: block; }
.quote-card .stars {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--star);
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ---- Sections ---- */
.section { padding: var(--section-gap) 0; }
.section + .section { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.section-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.text-muted { color: var(--ink-soft); }
.text-small { font-size: 0.92rem; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature h3 {
  margin: 0 0 0.4rem;
  padding-left: 0.55rem;
  border-left: 1.4rem solid var(--accent-red);
  font-size: 1.25rem;
  line-height: 1.2;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.feature:hover {
  background: #fbf1f0;
  box-shadow: 0 0 0 1rem #fbf1f0;
}
.feature.c0 h3 { border-color: var(--accent-red); }
.feature.c0:hover { background: #fbf1f0; box-shadow: 0 0 0 1rem #fbf1f0; }
.feature.c1 h3 { border-color: var(--accent-blue); }
.feature.c1:hover { background: #eaf2fa; box-shadow: 0 0 0 1rem #eaf2fa; }
.feature.c2 h3 { border-color: var(--accent-green); }
.feature.c2:hover { background: #f1f6ef; box-shadow: 0 0 0 1rem #f1f6ef; }
.feature.c3 h3 { border-color: var(--accent-orange); }
.feature.c3:hover { background: #faf4ef; box-shadow: 0 0 0 1rem #faf4ef; }
.feature.c4 h3 { border-color: var(--accent-purple); }
.feature.c4:hover { background: #f3f1f8; box-shadow: 0 0 0 1rem #f3f1f8; }
.feature.c5 h3 { border-color: var(--accent-pink); }
.feature.c5:hover { background: #fbf2f8; box-shadow: 0 0 0 1rem #fbf2f8; }

/* About portrait */
.about-photo {
  background: var(--soft-bg);
  padding: 1rem 1rem 0;
  border-radius: var(--radius);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 70% 35%;
  border-radius: 0.25rem;
}

/* Partner banners under About */
.banners {
  padding: 0 0 var(--section-gap);
}
.banners-grid {
  display: grid;
  gap: 1rem;
}
.banner-link {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f1ee;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.banner-link:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(49, 49, 49, 0.08);
}
.banner-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 385;
  object-fit: cover;
  display: block;
}
.banner-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.banner-caption span:last-child { color: var(--ink-soft); }
.roles {
  display: grid;
  gap: 1.25rem;
}
.role-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.role-card:last-child { border-bottom: 0; }
.role-card .no {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.role-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.role-card p { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.role-card a { font-weight: 600; font-size: 0.92rem; }

/* Destinations */
.dest-list { display: grid; gap: 0; }
.dest-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.dest-item:hover {
  background: var(--cream);
  box-shadow: 0 0 0 0.85rem var(--cream);
}
.dest-item .no { font-size: 0.75rem; font-weight: 800; color: var(--ink-soft); padding-top: 0.25rem; }
.dest-item h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.dest-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.dest-item .out { font-size: 1.2rem; color: var(--ink-soft); }

/* Apps */
.apps-grid {
  display: grid;
  gap: 1rem;
}
.app-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  transition: border-color .15s ease, transform .15s ease;
}
.app-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.app-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.app-card h3 { margin: 0; font-size: 1.25rem; }
.app-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.cloud {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--soft-bg);
  border-radius: var(--radius);
}
.cloud-label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.name-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin-bottom: 1.1rem;
}
.name-cloud a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.name-cloud a:hover { border-bottom-color: var(--ink); }

/* Projects */
.project-groups { display: grid; gap: 1rem; }
.group {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  background: var(--cream);
}
.group summary::-webkit-details-marker { display: none; }
.group summary h3 { margin: 0; font-size: 1.1rem; }
.group .count {
  min-width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.directory { padding: 0.25rem 0; }
.directory a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.directory a:hover { background: #fafafa; }
.dir-name { font-weight: 700; }
.dir-desc { grid-column: 1; color: var(--ink-soft); font-size: 0.88rem; }
.directory .out { grid-row: 1 / span 2; align-self: center; color: var(--ink-soft); }

/* Facts */
.facts {
  background: var(--ink);
  color: #fff;
  padding: 2.75rem 0;
}
.facts-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
.fact strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.faq-icon::before {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.faq-item[open] .faq-icon::before { content: "–"; }
.faq-answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer a { color: var(--ink); font-weight: 600; }

/* Contact band */
.contact-band {
  background: var(--soft-bg);
  padding: 3.5rem 0;
  text-align: center;
}
.contact-band h2 { margin-bottom: 0.75rem; }
.contact-band .contact-text {
  max-width: 36rem;
  margin: 0 auto 1.4rem;
  color: var(--ink-soft);
}
.contact-mail {
  display: inline-block;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.social a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.social a:hover { border-bottom-color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--soft-bg);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.4rem;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-nav a:hover { text-decoration: underline; }
.imprint {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.imprint a { color: var(--ink); }
.footer-copy {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.langhint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--quote-bg);
  border-top: 2px solid var(--ink);
}
.langhint[hidden] { display: none; }
.langhint-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.langhint-close {
  margin-left: auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .hero-copy h1,
  .hero-copy .hero-lead,
  .hero-copy .btn-row,
  .hero-copy .hero-meta {
    animation: rise .7s ease both;
  }
  .hero-copy .hero-lead { animation-delay: .08s; }
  .hero-copy .btn-row { animation-delay: .16s; }
  .hero-copy .hero-meta { animation-delay: .24s; }
  .img-frame { animation: fadein .8s ease both .1s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 0.65rem 0; font-size: 1rem; color: var(--ink); }
  .site-top { position: sticky; }
  .site-top-inner { position: relative; }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    gap: 2rem;
    align-items: stretch;
  }
  .hero-copy { text-align: left; min-height: 33rem; }
  .hero-visual, .img-frame { min-height: 30rem; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .quote-card { padding: 2.6rem 1.4rem 1.8rem; font-size: 1.05rem; }
  .quote-card .stars { font-size: 1.7rem; top: -0.95rem; }
  .quote-card .quote-mark { font-size: 2.9rem; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .banners-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .section-grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .section-grid.split-5-7 {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
  .section-grid.split-7-5 {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-inner { grid-template-columns: repeat(3, 1fr); }
  .roles { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .hero { padding-top: 2.5rem; }
  .hero-copy { min-height: 36rem; }
  .hero-copy h1 { font-size: 3.125rem; }
  .hero-visual, .img-frame { min-height: 34rem; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .container { width: min(var(--container), calc(100% - 3rem)); }
}

@media (min-width: 1280px) {
  .hero { padding-top: 3rem; }
  .hero-copy { min-height: 34rem; }
}
