/* ============================================================
   ampStay Landing Page — External Stylesheet (styles.css)
   Color system:
     Primary:  #215494  (darker: #133F78, #082E60 |
                          lighter: #3A659D, #5980B1)
     Accents:   #927300 (gold), #B64D0F (rust)
   Änderung:
   - Logo ist höher als die Navbar und ragt nach unten über sie hinaus
     (oben bündig, nicht mehr vertikal zentriert)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #082E60;
  --bg2: #133F78;
  --primary: #215494;
  --primary-light: #3A659D;
  --primary-lighter: #5980B1;
  --nav-light: #B6C7DC;
  --nav-dark: #082E60;
  --gold: #C9940A;
  --gold-deep: #927300;
  --rust: #B64D0F;
  --mywhite: #EEEEEE;
  --ink: #EAF2FB;
  --ink-dim: #A9BFD9;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --elegrey: #333333;
  --nav-height: 47px;
  --logo-height: 95px;   /* Gesamthöhe des Logos, darf größer als die Navbar sein */
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
  font-family: "Exo 2", "Segoe UI", system-ui, sans-serif;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.3;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-transform: uppercase; }
.new h1, h2, h3 { color: var(--primary); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.ftext { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--primary);  }
/* ---------- NAV ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);                 /* flache, fixe Navbar-Höhe */
  padding: 0 clamp(16px, 4vw, 48px);         /* kein vertikales Padding mehr */
  overflow: visible;                         /* Logo darf überlappen */
  /*background: var(--nav-light);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);*/
}
/* Hintergrund der Navbar mit weich auslaufender Unterkante */
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: -20px;                 /* Länge des Verlaufs unter der Navbar */
  z-index: -1;                   /* hinter Logo und Menü */
  background: var(--nav-light);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--nav-height), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 var(--nav-height), transparent 100%);
  pointer-events: none;
}

/* Logo: startet oben an der Navbar und ragt nach unten darüber hinaus */
.logo {
  position: relative;
  z-index: 110;                /* über allem anderen */
  align-self: flex-start;      /* oben ausrichten statt zentrieren */
  display: block;
  height: var(--nav-height);   /* Layout-Höhe = Navbar, das Bild darf überstehen */
}

.logo img, .logo svg {
  height: var(--logo-height);
  width: auto;
  max-width: none;
  display: block;
  margin-top: 4px;             /* kleiner Abstand zum oberen Rand, nach Geschmack 0–8px */
}

.inlinepic img {
  display: inline-block;
  border-radius: var(--radius);
  max-width: 35vh;
  min-width: 20vh;
  float: right;
  margin: -50px 0px 0px 8px;
  padding-left: 5px;
  
}  

nav ul {
  display: flex; gap: clamp(12px, 2.5vw, 32px);
  list-style: none; align-items: center;
}
nav a {
  font-size: 1rem; font-weight: 700; color: var(--nav-dark);
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); }

.btn {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), #E8B33C);
  color: #082E60; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 148, 10, 0.4);
}
.btn-outline {
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 148, 10, 0.1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  margin-top: var(--nav-height);
  height: min(86vh, 820px);
  overflow: visible;          /* NICHT hidden — sonst wird das überlappende Logo abgeschnitten */
}
.hero video, .hero .video-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  clip-path: inset(0);        /* clippt nur das Video, nicht das Logo */
}
.hero .video-fallback {
  display: none;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(89, 128, 177, 0.45), transparent 60%),
    radial-gradient(50% 70% at 20% 80%, rgba(19, 63, 120, 0.8), transparent 60%),
    linear-gradient(160deg, #133F78, #082E60 70%);
}
.hero .overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,46,96,0.55) 0%, rgba(8,46,96,0.15) 40%, rgba(8,46,96,0.94) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  
  padding: clamp(24px, 6vw, 80px);
  max-width: 1100px;
}
.hero-box {
  background-color: rgba(8, 46, 96, 0.2);
  border-radius: var(--radius);
  max-width: 53ch;
  padding: 25px;
}
.kicker {
  display: inline-block; width: fit-content;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 148, 10, 0.4); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
  background: rgba(201, 148, 10, 0.08);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
  margin: 20px 0 32px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-dim); max-width: 52ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- SECTIONS ---------- */
section { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 80px); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
section h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 18px; }
section .lead { color: var(--elegrey); font-size: clamp(1.3rem, 1.8vw, 1.5rem); /*max-width: 62ch;*/ }
section .leadlight { color: var(--primary-lighter); font-size: clamp(1.3rem, 1.8vw, 1.5rem); /*max-width: 62ch;*/ }

.grid {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.smallgrid {
  display: grid; gap: 10px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201, 148, 10, 0.5); }
.card .icon {
  width: 44px; height: 44px; 
  display: flex; align-items: center; justify-content: center;
  /*background: linear-gradient(120deg, rgba(58, 101, 157, 0.35), rgba(201, 148, 10, 0.2));*/
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--elegrey); font-size: 1rem; }

/* stats */
.stats {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat {
  text-align: center; padding: 28px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat .value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--gold); }
.stat .label { font-size: 0.9rem; color: var(--ink-dim); margin-top: 6px; }

/* ---------- SIGN UP ---------- */
.signup-box {
  margin-top: 40px;
  background: linear-gradient(120deg, rgba(33, 84, 148, 0.35), rgba(201, 148, 10, 0.1));
  border: 1px solid rgba(201, 148, 10, 0.35);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px);
  max-width: 720px;
}
form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
input[type="email"] {
  flex: 1 1 240px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(8, 46, 96, 0.6);
  color: var(--ink); font-size: 1rem;
}
input[type="email"]:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form-note { font-size: 0.9rem; color: var(--ink-dim); margin-top: 14px; }
.success { display: none; margin-top: 14px; color: var(--gold); font-weight: 600; }

input[type="name"] {
  flex: 1 1 240px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(8, 46, 96, 0.6);
  color: var(--ink); font-size: 1rem;
}
input[type="name"]:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form-note { font-size: 0.9rem; color: var(--ink-dim); margin-top: 14px; }
.success { display: none; margin-top: 14px; color: var(--gold); font-weight: 600; }


/* ---------- TEAM ---------- */
.team-grid {
  display: grid; gap: 20px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.member {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-align: center;
}

.avatar {
  width: 70%; border-radius: 50%; margin: 0 auto 16px;
  aspect-ratio: 1 / 1; 
  background: linear-gradient(120deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--ink);
}
.round {
  border-radius: 50%;
  aspect-ratio: 1 / 1;   /* quadratisch erzwingen */
  object-fit: cover;     /* Bild füllt den Kreis, ohne verzerrt zu werden */
}

.hcorr p { color: var(--nav-dark) !important; font-size: 1.1rem !important;}
.member h3 { font-size: 1.1rem; }
.member .role { font-size: 1.17rem; color: var(--gold); margin: 4px 0 10px; font-weight: 600; }
.member p { font-size: 1.1rem; color: var(--ink-dim); }


/* ---------- INVEST ---------- */
.invest-band {
  background:
    radial-gradient(60% 100% at 80% 0%, rgba(33, 84, 148, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid var(--line);
}
.invest-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; max-width: 680px; }
.invest-points li { display: flex; gap: 12px; color: var(--ink-dim); }
.invest-points li::before { content: "→"; color: var(--gold); font-weight: 700; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 6vw, 80px);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  align-items: center; color: var(--ink-dim); font-size: 0.85rem;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  :root { --logo-height: 75px; }   /* etwas kleineres Logo auf dem Handy */
  .nav-toggle { display: block; }
  nav ul {
    position: fixed; top: var(--logo-height); right: 0; left: 0;
    z-index: 120;                  /* aufgeklapptes Menü liegt über dem überstehenden Logo */
    flex-direction: column; align-items: stretch; gap: 0;
    /*background: rgba(8, 46, 96, 0.96);*/ 
      background: var(--nav-light);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  nav ul.open { max-height: 420px; }
  nav ul li { padding: 0; border-top: 1px solid var(--line); }
  nav ul li a { display: block; padding: 16px 24px; }
  nav ul li:last-child { padding: 14px 24px; }
  .hero { height: min(92vh, 700px); }

.inlinepic img {
  display: block;
  border-radius: var(--radius);
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
  
  }  
}
section#autonomy { background: linear-gradient(180deg, #082E60, #133F78 50%, #082E60); }
