/* ============================================
   Bujinkan Ugoki Dojo Bielefeld – Stylesheet
   ============================================ */

:root {
  --ink: #14161b;
  --ink-soft: #1e2129;
  --paper: #f7f5f0;
  --paper-soft: #efece4;
  --accent: #b8322b;
  --accent-dark: #8e2620;
  --gold: #c9a227;
  --text: #2a2d33;
  --text-light: #6b6f78;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 27, 0.12);
  --shadow-soft: 0 4px 14px rgba(20, 22, 27, 0.08);
  --font-head: "Noto Serif JP", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.3; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 27, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.main-nav a.active { color: var(--white); background: rgba(184, 50, 43, 0.55); }
.main-nav a.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero.small { min-height: 42vh; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.9);
  transform: scale(1.02);
}
.hero-content { position: relative; z-index: 2; padding: 80px 24px; max-width: 860px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero p {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 20px rgba(184,50,43,0.45); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  margin-left: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper-soft); }
.section.dark { background: var(--ink); color: rgba(255,255,255,0.88); }
.section.dark h2, .section.dark h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--text-light); }
.section.dark .section-head p { color: rgba(255,255,255,0.65); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { height: 210px; object-fit: cover; width: 100%; }
.card-body { padding: 24px 26px 28px; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { font-size: 0.95rem; color: var(--text-light); }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  width: auto;
  max-height: 620px;
  margin: 0 auto;
  object-fit: contain;
}
.split-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.split-text p { margin-bottom: 14px; }

/* ---------- Info boxes / schedule ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--accent);
}
.info-box h3 { font-size: 1.25rem; margin-bottom: 12px; }
.info-box .big { font-size: 1.7rem; font-family: var(--font-head); color: var(--accent); margin: 6px 0; }
.info-box p { color: var(--text-light); font-size: 0.97rem; }
.info-box ul { list-style: none; margin-top: 10px; }
.info-box ul li { padding: 6px 0; border-bottom: 1px dashed #e0dcd2; font-size: 0.97rem; }
.info-box ul li:last-child { border-bottom: none; }

/* ---------- Tables ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.styled-table th, .styled-table td { padding: 16px 20px; text-align: left; }
.styled-table th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.styled-table tr:nth-child(even) td { background: var(--paper-soft); }

/* ---------- FAQ / Accordion-like blocks ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}
.faq-item h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}
.faq-item p { margin-bottom: 10px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul, .faq-item ol { margin: 10px 0 10px 24px; }
.faq-item li { margin-bottom: 4px; }

/* ---------- Gallery ---------- */
.gallery {
  columns: 3 300px;
  column-gap: 20px;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery img { width: 100%; }
.gallery figcaption {
  padding: 12px 16px;
  font-size: 0.87rem;
  color: var(--text-light);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}
.lightbox-caption { color: rgba(255,255,255,0.85); margin-top: 16px; font-size: 0.95rem; text-align: center; }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Friends / Dojo list ---------- */
.dojo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.dojo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.22s, box-shadow 0.22s;
  color: var(--text);
}
.dojo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.dojo-card .dojo-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.dojo-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.dojo-card span { font-size: 0.85rem; color: var(--text-light); }
.dojo-card.highlight { border: 2px solid var(--gold); }

/* ---------- Banner strip ---------- */
/* Schmale Panorama-Bilder werden nicht hochskaliert/beschnitten,
   sondern in Originalgröße zentriert auf dunklem Band gezeigt. */
.banner-strip {
  position: relative;
  background: var(--ink);
  text-align: center;
  padding: 18px 0;
}
.banner-strip img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 30px; color: rgba(255,255,255,0.92); }
.cta-band .btn { background: var(--white); color: var(--accent-dark); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { margin-bottom: 14px; font-size: 1.3rem; }
.contact-line { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.contact-line .ico { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 30px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
  .main-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
