/* =========================
   Base
========================= */
:root{
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #1d232b;
  --muted: #5b6775;
  --brand: #0b1f33;
  --brand-2: #102a44;
  --border: #d6dde6;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 14px;
  --max: 1200px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
p{ margin: 0 0 14px; }
h1,h2,h3{ margin: 0 0 10px; line-height: 1.2; }
small{ color: var(--muted); }

/* =========================
   Layout helpers
========================= */
.container{
  width: 92%;
  max-width: var(--max);
  margin: 0 auto;
}

.section{
  padding: 44px 0;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad{ padding: 22px; }

.grid{
  display: grid;
  gap: 18px;
}

.grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

/* =========================
   Header / Nav
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff22, #ffffff08);
  border: 1px solid rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-text{
  display: flex;
  flex-direction: column;
}

.brand-text strong{ font-size: 14px; letter-spacing: .6px; }
.brand-text span{ font-size: 12px; opacity: .85; }

.nav{
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a{
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(255,255,255,.10);
}

.nav a.active{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
}

/* =========================
   Hero (FIX: klickbar + heller)
========================= */
.hero{
  min-height: 52vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-url);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);

  /* wichtig */
  z-index: 0;
  pointer-events: none;
}

.hero::after{
  content: "";
  position: absolute;
  inset: 0;

  /* etwas heller/lesbarer als vorher */
  background: linear-gradient(
    180deg,
    rgba(11,31,51,.40),
    rgba(11,31,51,.62)
  );

  /* wichtig */
  z-index: 0;
  pointer-events: none;
}

.hero-inner{
  position: relative;

  /* wichtig: über dem Overlay */
  z-index: 1;

  text-align: center;
  padding: 36px 0;
}

.hero h1{
  font-size: 40px;
  margin-bottom: 10px;
  letter-spacing: .3px;

  /* optional: noch klarer */
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero p{
  color: rgba(255,255,255,.95); /* heller als vorher */
  max-width: 760px;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

@media (max-width: 640px){
  .hero h1{ font-size: 30px; }
}


/* =========================
   Components
========================= */
.kpi{
  display: grid;
  gap: 4px;
}
.kpi strong{ font-size: 18px; }
.kpi span{ font-size: 12px; color: var(--muted); }

.pills{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.note{
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef2f6;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.btn-dark{
  background: var(--brand);
  border: 1px solid rgba(0,0,0,.08);
  color: #fff;
}

.btn-light{
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
}

.btn:hover{ filter: brightness(1.03); }

.actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* =========================
   Wanted cards
========================= */
.wanted{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){
  .wanted{ grid-template-columns: 1fr; }
}

.wanted-card{
  overflow: hidden;
}

.wanted-photo{
  aspect-ratio: 4 / 3;
  background: #e9edf2;
  border-bottom: 1px solid var(--border);
  background-image: var(--photo-url);
  background-size: cover;
  background-position: center;
}

.wanted-body{
  padding: 16px;
}

.tag-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag{
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7f9fb;
  color: var(--muted);
}

.tag.alert{
  background: #fff1f1;
  border-color: #f3c7c7;
  color: #8f2f2f;
  font-weight: 800;
}

.hr{
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* =========================
   Media folders
========================= */
.folder{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.folder .meta{
  display: grid;
  gap: 4px;
}

.folder .meta strong{ font-size: 15px; }
.folder .meta span{ color: var(--muted); font-size: 12px; }

.folder .icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2f6;
  border: 1px solid var(--border);
  font-weight: 900;
  color: var(--brand);
}

/* =========================
   Forms
========================= */
.form{
  display: grid;
  gap: 14px;
}

.label{
  display: grid;
  gap: 6px;
}

input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}

textarea{ min-height: 140px; resize: vertical; }

/* =========================
   Footer
========================= */
.footer{
  background: #0b1118;
  color: #cbd5e1;
  padding: 26px 0;
  margin-top: 44px;
}

.footer small{
  display: block;
  margin-top: 8px;
  color: #94a3b8;
}

/* =========================
   Content Split (Text + Seitenbilder)
========================= */
.split{
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
}

.sticky-col{
  position: sticky;
  top: 92px; /* unter dem sticky header */
  display: grid;
  gap: 14px;
}

.figure{
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.figure img{
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.figure figcaption{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}

.timeline{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timeline .item{
  padding: 12px 12px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid var(--border);
}

.timeline .year{
  font-weight: 900;
  color: var(--brand);
}

.lead{
  font-size: 16px;
  color: var(--muted);
}

