@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --uk-red: #CF142B;
  --uk-blue: #00247D;
  --uk-white: #FFFFFF;
  --uk-gold: #C8A951;
  --bg: #F7F5F0;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --card-bg: #ffffff;
  --border: #e0ddd5;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── UNION JACK STRIPE ── */
.uk-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--uk-blue) 33%, var(--uk-red) 33%, var(--uk-red) 66%, var(--uk-blue) 66%);
}

/* ── NAV ── */
nav {
  background: var(--uk-blue);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--uk-gold);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-links a.active {
  color: var(--uk-gold);
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--uk-blue);
  overflow: hidden;
  padding: 6rem 2rem 5rem;
  text-align: center;
  color: #fff;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 40px);
}

.hero-cross {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(207,20,43,0) 42%, rgba(207,20,43,0.35) 42%, rgba(207,20,43,0.35) 58%, rgba(207,20,43,0) 58%),
    linear-gradient(90deg, rgba(207,20,43,0) 42%, rgba(207,20,43,0.35) 42%, rgba(207,20,43,0.35) 58%, rgba(207,20,43,0) 58%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--uk-gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: normal;
  color: var(--uk-gold);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--uk-red); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ── MAIN CONTENT WRAPPER ── */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── SECTION HEADING ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--uk-blue);
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,36,0.1); transform: translateY(-3px); }

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--uk-blue);
}

.card-img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--uk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 1.25rem; }

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0,36,125,0.08);
  color: var(--uk-blue);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── INFO BLOCK ── */
.info-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--uk-blue);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.info-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--uk-blue);
  margin-bottom: 0.5rem;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; margin-bottom: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--uk-red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--uk-red);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--uk-red);
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── VIDEO EMBED ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,36,0.18);
  margin-bottom: 2rem;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── PASSWORD SCREEN ── */
#password-screen {
  position: fixed;
  inset: 0;
  background: var(--uk-blue);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pw-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.pw-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.pw-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--uk-blue);
  margin-bottom: 0.4rem;
}

.pw-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pw-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
  outline: none;
}
.pw-input:focus { border-color: var(--uk-blue); }
.pw-input.error { border-color: var(--uk-red); animation: shake 0.4s; }

.pw-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--uk-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Source Sans 3', sans-serif;
}
.pw-btn:hover { background: #001a5e; }

.pw-error {
  color: var(--uk-red);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ── FOOTER ── */
footer {
  background: var(--uk-blue);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

footer a { color: var(--uk-gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

/* ── IMPRESSUM / DATENSCHUTZ ── */
.legal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--uk-blue);
  margin: 1.5rem 0 0.5rem;
}
.legal-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.legal-content a { color: var(--uk-blue); }

/* ── HIDDEN PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; gap: 1rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--uk-blue); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}
