@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #fff;
  font-family: 'Poppins', sans-serif;
  color: #293b51;
  min-height: 100vh;
}

/* ── TOP BAR ── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #293b51;
  z-index: 100;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  padding: 0.85rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(6px);
  border-bottom: 0.5px solid #e1e1e1;
}
nav a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: #293b51; }
nav a.active { color: #293b51; border-bottom: 1px solid #293b51; padding-bottom: 1px; }
.nav-back { display: flex; align-items: center; gap: 5px; }
.nav-back svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.nav-right { display: flex; gap: 1.5rem; }

/* index.html: nav fades in via JS */
nav.nav-delayed {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
nav.nav-delayed.visible { opacity: 1; pointer-events: auto; }

/* ── INDEX: MAIN ── */
.page-index main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.logo-wrap { margin-bottom: 2.5rem; }
.logo-wrap img { width: 280px; max-width: 85vw; height: auto; }

.rule { width: 48px; height: 1px; background: #ddd; margin: 0 auto 2.5rem; }

/* Typewriter headline – keeps Georgia */
h1.typewriter {
  font-family: 'Georgia', serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 400;
  color: #293b51;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.2;
  min-height: 1.3em;
}
.cursor {
  display: inline-block;
  width: 2px; height: 0.85em;
  background: #293b51;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.7s steps(1) infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.subline {
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 3.5rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.subline.visible { opacity: 1; transform: translateY(0); }

/* ── PILLARS ── */
.pillars {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pillar { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.pillar-icon {
  width: 38px; height: 38px;
  background: #f7f7f7;
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg {
  width: 17px; height: 17px;
  stroke: #293b51; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.pillar-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
}

/* ── CONTACT ── */
.contact-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item:hover { color: #293b51; }
.contact-item svg {
  width: 14px; height: 14px;
  stroke: #293b51; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ── FOOTER (index) ── */
.page-index footer {
  font-size: 11px; color: #ccc;
  display: flex; gap: 1.5rem;
  align-items: center; flex-wrap: wrap; justify-content: center;
}
.page-index footer a {
  color: #bbb; text-decoration: none;
  border-bottom: 1px solid #e8e8e8;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 1px;
}
.page-index footer a:hover { color: #293b51; border-color: #293b51; }

/* ── SUBPAGE (impressum / datenschutz) ── */
.page-sub main {
  max-width: 680px;
  margin: 0 auto;
  padding: 5.5rem 2rem 5rem 3rem;
}

.page-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.75rem;
}

.page-sub h1 {
  font-family: 'Georgia', serif;
  font-size: 32px; font-weight: 400;
  color: #293b51; margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.page-sub .rule { width: 40px; margin: 1.5rem 0 2.5rem; }

.page-sub section { margin-bottom: 2.5rem; }

.page-sub h2 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #293b51; margin-bottom: 0.75rem;
}

.page-sub p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 0.5rem; }
.page-sub ul { font-size: 14px; line-height: 1.8; color: #555; padding-left: 1.25rem; margin-bottom: 0.5rem; }
.page-sub li { margin-bottom: 0.2rem; }
address { font-style: normal; font-size: 14px; line-height: 1.8; color: #555; }

.info-box {
  background: #f7f7f7;
  border-left: 2px solid #293b51;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 13px; line-height: 1.7; color: #555;
}

.page-sub a { color: #293b51; text-decoration: none; border-bottom: 1px solid #ddd; transition: border-color 0.2s; }
.page-sub a:hover { border-color: #293b51; }

.page-sub footer {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 0.5px solid #e8e8e8;
  font-size: 11px; color: #ccc;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.page-sub footer a { color: #bbb; border-bottom: 1px solid #e8e8e8; font-size: 11px; }
.page-sub footer a:hover { color: #293b51; border-color: #293b51; }

/* ── MOBILE ── */
@media (max-width: 600px) {

  nav { padding: 0.75rem 1.25rem; }

  .page-index main { padding: 2rem 1.25rem 3rem; }

  .logo-wrap img { width: 250px; }

  h1.typewriter { font-size: 22px; }

  .subline { font-size: 13px; max-width: 100%; }

  /* Pillars: immer 2 Spalten */
  .pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    width: 100%;
    max-width: 260px;
  }

  /* Contact – untereinander */
  .contact-row {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  /* Footer index */
  .page-index footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-links { display: flex; gap: 1.5rem; }
  .page-index footer a { border-bottom: none; }

  /* Subpage */
  .page-sub main { padding: 5rem 1.25rem 3rem; }
  .page-sub footer { flex-direction: column; gap: 0.5rem; }
}