/* ===== Grundlayout ===== */
:root{
  --bg: #184B5A;
  --text: #ffffff;
  --muted: #e8e8e8;
  --dark: #333333;
  --border: #ffffff;
  --card: #0e2c35;
  --accent: #cc3b1e;   /* dünner Balken unter "Kontakt" */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans";
  color: var(--text);
  background: var(--bg);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

/* ===== Navigation ===== */
.nav{
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 5;
  display: flex; gap: 10px;
  background: rgba(0,0,0,0.18);
  padding: 8px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.nav a{
  color: #fff; text-decoration: none;
  font-size: 14px; padding: 6px 10px; border-radius: 8px;
}
.nav a:hover{ background: rgba(255,255,255,0.12); }

/* ===== Fullscreen Sektionen ===== */
.section{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6vw 5vw;
  scroll-snap-align: start;
}

/* ===== Titelseite ===== */
.hero{
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(900px 500px at 80% 70%, rgba(255,255,255,0.04), transparent 60%),
    var(--bg);
}
.hero-box{
  position: relative;
  width: min(100%, 980px);
  padding: clamp(18px, 3vw, 28px);
  border: 6px solid var(--border);
}
.hero h1{
  margin: 0;
  text-align: center;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: clamp(32px, 6.5vw, 82px);
}
.subtitle{
  position: absolute;
  left: -6px; right: -6px; bottom: -34px;
  margin: 0 auto; width: max(66%, 340px);
  background: var(--muted); color: var(--dark);
  padding: 14px 20px; text-align: center;
  letter-spacing: 0.28em; font-weight: 700;
  font-size: clamp(12px, 1.8vw, 20px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ===== Profile ===== */
.profiles{
  background: linear-gradient(180deg, #173f4b 0%, #184B5A 100%);
}
.cards{
  display: grid;
  grid-template-columns: repeat(1, minmax(240px, 420px));
  gap: clamp(18px, 4vw, 36px);
}
.card{
  display: block;
  background: var(--card);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 28px; text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.card-title{
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800; letter-spacing: 0.12em; margin-bottom: 10px;
}
.card p{ margin: 0; color: #d9f0f5; }

/* ===== Kontakt ===== */
.contact{
  background: #102b33;
}
.contact-wrap{
  width: min(100%, 980px);
  background: #fff;
  color: #222;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  text-align: center;
}
.section-title{
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: .02em;
  color: #222;
}
.divider{
  display: inline-block;
  width: 90px; height: 4px; background: var(--accent);
  border-radius: 3px; margin: 14px auto 8px;
}
.section-lead{
  margin: 0 0 26px 0;
  color: #6b7280;
  font-size: clamp(16px, 2.5vw, 22px);
}
/* Grid-Zellen selbst oben ausrichten */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: 10px;

  align-items: start;           /* <— neu */
}

/* Inhalte in jeder Zelle oben (und horizontal zentriert) */
.contact-item{
  display: grid;
  gap: 10px;
  align-items: start;           /* vertikal oben */
  justify-items: center;        /* horizontal zentriert */
  /* alternativ für oben-links: place-items: start start; */
}

.icon{ color: #6b7280; }
.contact-label{
  font-size: 14px; letter-spacing: .15em; text-transform: uppercase;
  color: #6b7280;
}
.contact-value{
  font-size: clamp(16px, 2.4vw, 20px);
  color: #111; text-decoration: none;
}
.contact-value:hover{ text-decoration: underline; }
.contact-links{
  margin: 10px 0 0; color: #555;
}
.contact-links a{ color: #111; }

/* ===== Einfache Inhaltsseiten (Impressum/Datenschutz) ===== */
.page{
  background: #0f2c35; color: #111;
}
.page-wrap{
  width: min(100%, 900px);
  margin: 8vh auto;
  background: #fff; padding: clamp(20px, 4vw, 44px);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  line-height: 1.6;
}
.page-wrap h1{ margin-top: 0; }
.page-wrap a{ color: #0a5a78; }
.small{ font-size: .92rem; opacity: .9; }

/* ===== Responsive ===== */
@media (max-width: 720px){
  .cards{ grid-template-columns: 1fr; }
  .subtitle{ bottom: -30px; }
  .contact-grid{ grid-template-columns: 1fr; }
}
