/* JC Hagenbach – Redesign (lokaler Entwurf) */

/* Lokal eingebundene Schriften (kein Abruf bei Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700.woff2") format("woff2"); }


:root {
  --navy: #0f2340;
  --navy-dark: #0a1830;
  --accent: #fc6a28;
  --accent-dark: #d8551a;
  --cream: #f7f4ee;
  --gray-900: #1c2430;
  --gray-600: #5b6674;
  --gray-300: #d8dce1;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 35, 64, 0.25);
  --maxw: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--gray-600); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 2px solid var(--accent);
}

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

.brand-text strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(252,106,39,0.35), transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 520px; }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-badge {
  justify-self: end;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 6px solid var(--accent);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
}

.hero-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ---------- Sections ---------- */

section.section { padding: 72px 0; }
section.section.alt { background: var(--cream); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p { margin: 0 auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(252,106,39,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  color: var(--navy);
  font-weight: 700;
}
.stat span {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ---------- Tables ---------- */

table.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.schedule th,
table.schedule td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-300);
}

table.schedule th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

table.schedule tr:last-child td { border-bottom: none; }

table.schedule td strong { color: var(--navy); }

/* ---------- Contact / People ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.person {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.person .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.person .meta { font-size: 0.9rem; color: var(--gray-600); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.gallery-tile strong { color: var(--white); font-family: "Poppins", sans-serif; }

/* ---------- Info box ---------- */

.info-box {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-box h3 { margin-bottom: 14px; }
.info-box address { font-style: normal; color: var(--gray-600); line-height: 1.7; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
  margin-top: 72px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.65); }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 56px 0;
}
.page-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); margin: 0; }

.page-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.page-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .page-header .container { gap: 16px; }
  .page-badge { width: 64px; height: 64px; border-width: 3px; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-badge { justify-self: start; }
  .grid-3, .grid-2, .people-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; padding: 12px; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }

  .grid-3, .grid-2, .people-grid, .gallery-grid, .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-banner { margin: 0; border-radius: 0; padding: 40px 24px; }
  section.section { padding: 52px 0; }
}

/* ---------- Gallery photos & legal text ---------- */

a.gallery-tile { display: block; padding: 0; overflow: hidden; background: var(--navy); transition: transform .2s ease, box-shadow .2s ease; }
a.gallery-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.video-tile { margin: 0; }
.video-tile video {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--navy-dark);
  border-radius: var(--radius);
}
.video-tile figcaption { font-size: 0.85rem; color: var(--gray-600); margin-top: 8px; }

.legal h3 { margin-top: 28px; }
.legal ul { color: var(--gray-600); padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }

.legal-stand { font-size: 0.85rem; color: var(--gray-600); margin-top: 0; }
.legal address { margin: 0 0 1em; }
mark { background: rgba(252,106,40,0.2); color: var(--gray-900); padding: 1px 5px; border-radius: 4px; }
