/* ============================================================
   KEYNOSTIC — style.css
   Display: Fraunces  ·  Body: Hanken Grotesk  ·  CJK: Noto SC
   ============================================================ */

:root{
  --navy:        #0A1A30;
  --navy-2:      #0E2747;
  --navy-grad-a: #0A1A30;
  --navy-grad-b: #14304f;
  --blue:        #1E9BF0;
  --blue-deep:   #1C6FC4;
  --blue-soft:   #E8F3FD;
  --ink:         #0B1622;
  --body:        #46586B;
  --muted:       #7488A0;
  --bg:          #FFFFFF;
  --bg-soft:     #F4F8FC;
  --line:        #E4EBF3;
  --line-dark:   rgba(255,255,255,.14);

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(13,38,71,.30);
  --shadow-soft: 0 10px 30px -18px rgba(13,38,71,.25);

  --font-display: 'Fraunces','Noto Serif SC',Georgia,serif;
  --font-body: 'Hanken Grotesk','Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--font-body);
  color:var(--body);
  background:var(--bg);
  line-height:1.6;
  font-size:17px;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ color:var(--ink); font-family:var(--font-display); font-weight:500; line-height:1.08; letter-spacing:-.01em; }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.container-narrow{ max-width:820px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-body); font-weight:600; font-size:16px;
  padding:13px 26px; border-radius:100px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--blue); color:#fff; box-shadow:0 10px 24px -10px rgba(30,155,240,.7); }
.btn-primary:hover{ background:var(--blue-deep); transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(30,155,240,.8); }
.btn-lg{ padding:16px 34px; font-size:17px; }

/* ---------- Section helpers ---------- */
.section-label{
  font-size:13px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--blue-deep); margin-bottom:14px;
}
.section-label.light{ color:#8FC3F2; }
.section-label.center{ text-align:center; color:var(--muted); }
.section-title{ font-size:clamp(2rem,4.4vw,3.2rem); }
.section-title.light{ color:#fff; }
.section-head{ max-width:640px; margin-bottom:54px; }

section{ position:relative; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(255,255,255,0);
  transition:background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding:18px 0;
}
.nav.scrolled{
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(14px);
  box-shadow:0 1px 0 var(--line);
  padding:11px 0;
}
.nav-inner{
  width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-logo img{ height:34px; width:auto; transition:height .3s var(--ease); }
.nav.scrolled .nav-logo img{ height:30px; }

/* light logo treatment on transparent hero */
.nav:not(.scrolled) .nav-logo img{ filter:brightness(0) invert(1); }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links > a{
  font-size:15px; font-weight:500; color:#fff; transition:color .2s;
}
.nav.scrolled .nav-links > a{ color:var(--ink); }
.nav-links > a:hover{ color:var(--blue); }
.nav-links .nav-cta{ color:#fff !important; }

.lang-switch{ display:flex; gap:2px; padding:3px; border-radius:100px;
  border:1px solid rgba(255,255,255,.35); }
.nav.scrolled .lang-switch{ border-color:var(--line); }
.lang-switch button{
  background:none; border:none; cursor:pointer; font-family:var(--font-body);
  font-size:13px; font-weight:600; color:rgba(255,255,255,.75);
  padding:5px 11px; border-radius:100px; transition:.2s;
}
.nav.scrolled .lang-switch button{ color:var(--muted); }
.lang-switch button.active{ background:var(--blue); color:#fff; }

.nav-burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav-burger span{ width:26px; height:2px; background:#fff; border-radius:2px; transition:.3s var(--ease); }
.nav.scrolled .nav-burger span{ background:var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding:140px 0 90px; overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-video,.hero-fallback{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hero-fallback{ z-index:0; }
.hero-video{ z-index:1; }
.hero-overlay{
  position:absolute; inset:0; z-index:2;
  background:
    linear-gradient(105deg, rgba(8,20,38,.92) 0%, rgba(8,20,38,.72) 42%, rgba(8,20,38,.28) 100%),
    linear-gradient(0deg, rgba(8,20,38,.55), rgba(8,20,38,0) 40%);
}
.hero-content{
  position:relative; z-index:3;
  width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px;
  display:grid; grid-template-columns:minmax(0,1fr) clamp(300px,30vw,400px);
  gap:48px; align-items:center;
}
.hero-text{ max-width:680px; }
.hero .eyebrow{
  color:#9CCBF2; font-size:14px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  margin-bottom:22px;
}
.hero-title{
  color:#fff; font-size:clamp(2.6rem,6.2vw,5rem); font-weight:500; line-height:1.02;
  letter-spacing:-.02em; margin-bottom:22px;
}
.hero-sub{ color:rgba(255,255,255,.86); font-size:clamp(1.05rem,2vw,1.3rem); margin-bottom:30px; max-width:560px; }
.hero-points{ list-style:none; display:flex; flex-wrap:wrap; gap:12px 26px; margin-bottom:38px; }
.hero-points li{ color:rgba(255,255,255,.92); font-weight:500; font-size:15.5px; display:flex; align-items:center; gap:9px; }
.hero-points li::before{
  content:""; width:18px; height:18px; flex:0 0 18px; border-radius:50%;
  background:var(--blue); position:relative;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat,linear-gradient(#000,#000);
          mask:none;
}
/* simpler reliable check */
.hero-points li::before{
  content:"✓"; color:#fff; background:var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700;
}
.hero-visual{ position:relative; display:flex; justify-content:center; align-items:center; }
.hero-product{
  width:100%; max-width:400px; pointer-events:none;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.5));
  animation:floaty 6s ease-in-out infinite;
}
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }

/* ============================================================
   VISION
   ============================================================ */
.vision{ padding:110px 0; background:var(--bg); text-align:center; }
.vision .section-label{ text-align:center; }
.vision-quote{
  font-family:var(--font-display); font-weight:400;
  font-size:clamp(1.5rem,3.4vw,2.5rem); line-height:1.32; color:var(--ink);
  max-width:920px; margin:0 auto; letter-spacing:-.01em;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features{ padding:100px 0; background:var(--bg-soft); }
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.feature-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 30px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent; }
.feature-icon{
  width:52px; height:52px; border-radius:14px; background:var(--blue-soft);
  display:flex; align-items:center; justify-content:center; color:var(--blue-deep); margin-bottom:20px;
}
.feature-icon svg{ width:26px; height:26px; }
.feature-card h3{ font-size:1.35rem; margin-bottom:9px; }
.feature-card p{ font-size:15.5px; color:var(--body); }

/* ============================================================
   STEPS (dark)
   ============================================================ */
.steps{
  padding:110px 0;
  background:linear-gradient(140deg,var(--navy-grad-a),var(--navy-grad-b));
  color:#fff;
}
.step-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.step{
  padding:32px 26px; border:1px solid var(--line-dark); border-radius:var(--radius);
  background:rgba(255,255,255,.03); transition:background .3s, transform .3s var(--ease);
}
.step:hover{ background:rgba(255,255,255,.06); transform:translateY(-5px); }
.step-num{
  font-family:var(--font-display); font-size:2.6rem; color:var(--blue);
  display:block; margin-bottom:16px; line-height:1;
}
.step h3{ color:#fff; font-size:1.25rem; margin-bottom:10px; }
.step p{ color:rgba(255,255,255,.74); font-size:15px; }

/* ============================================================
   ABOUT / TEAM
   ============================================================ */
.about{ padding:100px 0; background:var(--bg); }
.about-intro{ max-width:680px; margin-bottom:54px; }
.about-text{ font-size:1.12rem; color:var(--body); margin-top:8px; }

.institute{
  display:grid; grid-template-columns:1.1fr .9fr; gap:46px; align-items:center;
  margin-bottom:70px;
}
.institute-img{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.institute-img img{ width:100%; height:100%; object-fit:cover; aspect-ratio:16/9; }
.institute-text h3{ font-size:1.7rem; margin:6px 0 12px; }
.institute-text p:last-child{ color:var(--body); font-size:1.05rem; }
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.team-card{ text-align:left; }
.team-photo{
  aspect-ratio:1/1.12; border-radius:var(--radius); overflow:hidden; margin-bottom:16px;
  background:var(--bg-soft); box-shadow:var(--shadow-soft);
}
.team-photo img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.team-card:hover .team-photo img{ transform:scale(1.05); }
.team-card h3{ font-size:1.2rem; margin-bottom:3px; }
.team-role{ color:var(--blue-deep); font-weight:600; font-size:14.5px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners{ padding:70px 0 90px; background:var(--bg-soft); }
.partners .section-label{ margin-bottom:34px; }
.partner-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:18px;
}
.partner{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
  height:110px; display:flex; align-items:center; justify-content:center; padding:22px;
  transition:transform .3s var(--ease), box-shadow .3s;
}
.partner:hover{ transform:translateY(-4px); box-shadow:var(--shadow-soft); }
.partner img{
  max-height:56px; max-width:100%; width:auto; object-fit:contain;
  filter:grayscale(100%); opacity:.66; transition:.3s;
}
.partner:hover img{ filter:grayscale(0); opacity:1; }

/* ============================================================
   FÖRDERUNG (EXIST)
   ============================================================ */
.funding{ padding:80px 0; background:var(--bg); text-align:center; }
.funding-note{ font-size:1.05rem; color:var(--body); max-width:600px; margin:6px auto 34px; }
.funding-logo{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 36px; max-width:760px; margin:0 auto; box-shadow:var(--shadow-soft);
}
.funding-logo img{ width:100%; height:auto; }


.faq{ padding:100px 0; background:var(--bg); }
.accordion{ border-top:1px solid var(--line); }
.acc-item{ border-bottom:1px solid var(--line); }
.acc-q{
  width:100%; background:none; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px; text-align:left;
  font-family:var(--font-display); font-size:1.2rem; font-weight:500; color:var(--ink);
}
.acc-q i{
  flex:0 0 22px; width:22px; height:22px; position:relative; transition:transform .3s var(--ease);
}
.acc-q i::before,.acc-q i::after{
  content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  background:var(--blue-deep); border-radius:2px;
}
.acc-q i::before{ width:14px; height:2px; }
.acc-q i::after{ width:2px; height:14px; transition:transform .3s var(--ease); }
.acc-item.open .acc-q i::after{ transform:translate(-50%,-50%) scaleY(0); }
.acc-a{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.acc-a p{ padding:0 4px 26px; color:var(--body); font-size:16px; max-width:680px; }

/* ============================================================
   CONTACT (dark)
   ============================================================ */
.contact{ padding:110px 0; background:linear-gradient(140deg,var(--navy-grad-a),var(--navy-grad-b)); color:#fff; }
.contact-inner{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.contact-text{ color:rgba(255,255,255,.8); font-size:1.08rem; margin-bottom:34px; max-width:420px; }
.contact-meta{ list-style:none; display:flex; flex-direction:column; gap:22px; }
.contact-meta li{ display:flex; flex-direction:column; gap:4px; }
.contact-meta span{ font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; color:#8FC3F2; font-weight:600; }
.contact-meta a,.contact-meta li{ color:rgba(255,255,255,.92); }
.contact-meta a:hover{ color:var(--blue); }
.contact-meta .contact-mail{ color:rgba(255,255,255,.92); text-transform:none; letter-spacing:normal; font-size:16px; font-weight:400; }

.consent{ display:flex; align-items:flex-start; gap:11px; margin:4px 0 22px; cursor:pointer; }
.consent input{ width:18px; height:18px; flex:0 0 18px; margin-top:3px; accent-color:var(--blue); cursor:pointer; }
.consent span{ font-size:13.5px; line-height:1.5; color:rgba(255,255,255,.72); }
.consent a{ color:#8FC3F2; text-decoration:underline; }
.consent a:hover{ color:#fff; }

.contact-form{
  background:rgba(255,255,255,.04); border:1px solid var(--line-dark);
  border-radius:var(--radius); padding:34px;
}
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color:rgba(255,255,255,.8); margin-bottom:8px; }
.field input,.field textarea{
  width:100%; font-family:var(--font-body); font-size:16px; color:#fff;
  background:rgba(255,255,255,.06); border:1px solid var(--line-dark);
  border-radius:var(--radius-sm); padding:13px 15px; transition:border-color .2s, background .2s;
  resize:vertical;
}
.field input:focus,.field textarea:focus{ outline:none; border-color:var(--blue); background:rgba(255,255,255,.1); }
.field input::placeholder,.field textarea::placeholder{ color:rgba(255,255,255,.4); }
.contact-form .btn{ width:100%; }
.form-status{ margin-top:16px; font-size:15px; min-height:22px; }
.form-status.ok{ color:#7CE0A8; }
.form-status.err{ color:#FF9C8A; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:var(--navy); color:rgba(255,255,255,.7); padding:70px 0 0; }
.footer-inner{ display:grid; grid-template-columns:1.8fr 1fr 1fr; gap:48px; padding-bottom:54px; }
.footer-logo{ height:36px; filter:brightness(0) invert(1); margin-bottom:18px; }
.footer-tag{ font-size:15px; max-width:360px; margin-bottom:22px; }
.socials{ display:flex; gap:12px; }
.socials a{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.8); transition:.25s;
}
.socials a svg{ width:18px; height:18px; }
.socials a:hover{ background:var(--blue); border-color:var(--blue); color:#fff; transform:translateY(-3px); }
.footer-col-title{ color:#fff; font-weight:600; font-size:15px; margin-bottom:16px; }
.footer-nav{ display:flex; flex-direction:column; gap:11px; }
.footer-nav a{ font-size:15px; transition:color .2s; }
.footer-nav a:hover{ color:var(--blue); }
.footer-bottom{ border-top:1px solid var(--line-dark); padding:22px 0; }
.footer-bottom .container{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:14px; color:var(--muted); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .step-grid{ grid-template-columns:repeat(2,1fr); }
  .team-grid{ grid-template-columns:repeat(2,1fr); }
  .partner-grid{ grid-template-columns:repeat(4,1fr); }
}

@media (max-width:920px){
  .hero-content{ grid-template-columns:1fr; }
  .hero-visual{ display:none; }
}

@media (max-width:760px){
  body{ font-size:16px; }
  .nav-burger{ display:flex; }
  .nav-links{
    position:fixed; inset:0; width:100%; z-index:105;
    background:#fff; flex-direction:column; align-items:center; justify-content:center;
    gap:30px; padding:40px; transform:translateX(100%); transition:transform .4s var(--ease);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links > a{ color:var(--ink) !important; font-size:22px; font-weight:500; }
  .nav-links .nav-cta{ background:var(--blue); color:#fff !important; padding:13px 26px; font-size:17px; font-family:var(--font-body); }
  .lang-switch{ border-color:var(--line); }
  .lang-switch button{ color:var(--muted); font-size:15px; padding:8px 14px; }
  .nav-burger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2){ opacity:0; }
  .nav-burger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  body.menu-open .nav-burger span{ background:var(--ink); }

  /* Menü-Overlay: Logo & Burger oben drüber halten, durchscheinen verhindern */
  .nav-burger{ position:relative; z-index:110; }
  body.menu-open{ overflow:hidden; }
  body.menu-open .nav{ background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
  body.menu-open .nav .nav-logo{ position:relative; z-index:110; }
  body.menu-open .nav .nav-logo img{ filter:none; }

  .hero{ padding:120px 0 60px; min-height:auto; }
  .hero-visual{ display:none; }
  .hero-overlay{ background:linear-gradient(0deg, rgba(8,20,38,.96), rgba(8,20,38,.66)); }
  .hero-points{ gap:10px 18px; }

  .feature-grid{ grid-template-columns:1fr; }
  .step-grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:repeat(2,1fr); gap:18px; }
  .institute{ grid-template-columns:1fr; gap:24px; margin-bottom:50px; }
  .partner-grid{ grid-template-columns:repeat(3,1fr); }
  .contact-inner{ grid-template-columns:1fr; gap:40px; }
  .footer-inner{ grid-template-columns:1fr; gap:36px; }

  section, .vision, .features, .steps, .about, .faq, .contact{ padding:70px 0; }
  .section-head{ margin-bottom:38px; }
}

@media (max-width:440px){
  .team-grid{ grid-template-columns:1fr; max-width:320px; margin:0 auto; }
  .partner-grid{ grid-template-columns:repeat(2,1fr); }
  .container{ padding:0 20px; }
  .nav-inner{ padding:0 20px; }
  .contact-form{ padding:24px; }
}

/* CJK adjustments — serif display doesn't cover Chinese well */
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] .vision-quote,
html[lang="zh"] .acc-q{ font-family:'Noto Serif SC',var(--font-display); letter-spacing:0; }
html[lang="zh"] .step-num{ font-family:'Noto Serif SC',serif; }

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

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal{ padding:150px 0 90px; background:var(--bg); }
.legal .container{ max-width:860px; }
.legal h1{ font-size:clamp(2.2rem,5vw,3rem); margin-bottom:34px; }
.legal h2{ font-size:1.5rem; margin:42px 0 14px; }
.legal h3{ font-size:1.15rem; margin:26px 0 8px; }
.legal p{ margin-bottom:14px; color:var(--body); font-size:16px; }
.legal a{ color:var(--blue-deep); text-decoration:underline; word-break:break-word; }
.legal ul{ margin:0 0 14px 22px; color:var(--body); }
.legal .back{ display:inline-block; margin-top:40px; font-weight:600; color:var(--blue-deep); }
.legal address{ font-style:normal; line-height:1.9; }
