/*
Theme Name:   EBU Child
Theme URI:    https://europeanbuddhistunion.org
Description:  Child Theme für European Buddhist Union
Author:       Pfurtscheller Consulting
Author URI:   https://pfurtscheller-consulting.de
Template:     astra
Version:      1.0.0
Text Domain:  ebu-child
*/

/* ══════════════════════════════
   CSS VARIABLEN — EBU Branding
══════════════════════════════ */
:root {
  --navy:       #1a3a6b;
  --navy-dark:  #0f2447;
  --navy-light: #2a5298;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #faf8f4;
  --warm-gray:  #f2ede6;
  --border:     #ddd5c8;
  --text:       #1a1a1a;
  --muted:      #6b6460;
}

/* ══════════════════════════════
   GLOBAL
══════════════════════════════ */
body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--cream);
}

/* Google Fonts einbinden */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ══════════════════════════════
   TYPOGRAFIE
══════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 3vw, 2rem);   font-weight: 600; }

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.wp-block-button__link,
.ast-button,
.button {
  background-color: var(--navy) !important;
  color: white !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0.75rem 1.75rem !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: background 0.2s !important;
}
.wp-block-button__link:hover,
.ast-button:hover,
.button:hover {
  background-color: var(--navy-dark) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--navy) !important;
  color: white !important;
}

/* Gold Button Variante */
.btn-gold .wp-block-button__link {
  background-color: var(--gold) !important;
  color: var(--navy-dark) !important;
}
.btn-gold .wp-block-button__link:hover {
  background-color: var(--gold-light) !important;
}

/* ══════════════════════════════
   HEADER (Astra)
══════════════════════════════ */
.site-header,
#masthead {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.main-header-bar {
  background-color: white !important;
}

/* Nav Links */
.main-navigation a,
.ast-header-navigation a {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}
.main-navigation a:hover,
.ast-header-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--navy) !important;
  border-bottom: 2px solid var(--gold);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer,
#colophon {
  background-color: var(--navy-dark) !important;
  color: rgba(255,255,255,0.7) !important;
}

.site-footer a,
#colophon a {
  color: rgba(255,255,255,0.7) !important;
}
.site-footer a:hover,
#colophon a:hover {
  color: var(--gold) !important;
}

/* ══════════════════════════════
   MEMBER CARDS (Spectra Grid)
══════════════════════════════ */
.member-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  text-decoration: none;
}
.member-card:hover {
  box-shadow: 0 4px 20px rgba(26,58,107,0.12);
  transform: translateY(-2px);
}

.member-logo-box {
  width: 72px; height: 72px;
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.member-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.member-country {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.member-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ══════════════════════════════
   SINGLE MEMBER (Detail)
══════════════════════════════ */
.member-detail-header {
  background: var(--navy-dark);
  color: white;
  padding: 3rem 0 4rem;
  width: 100%;
  box-sizing: border-box;
}

.member-detail-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: white;
  margin: 0.5rem 0;
}

.member-detail-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.member-sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.member-sidebar-card h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.member-sidebar-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--warm-gray);
  font-size: 15px;
}
.member-sidebar-row:last-child { border-bottom: none; }

.member-sidebar-label {
  color: var(--muted);
  font-size: 13px;
  min-width: 80px;
}

/* Member Detail Body — Mobile first */
.member-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1.25rem;
}

/* Desktop: 2 Spalten */
@media (min-width: 768px) {
  .member-detail-body {
    grid-template-columns: 1fr min(320px, 35%);
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
  }
}

/* ══════════════════════════════
   BREADCRUMB
══════════════════════════════ */
.breadcrumb,
.ast-breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a,
.ast-breadcrumbs a {
  color: rgba(255,255,255,0.6);
}
.breadcrumb a:hover,
.ast-breadcrumbs a:hover {
  color: var(--gold);
}

/* ══════════════════════════════
   UTILITY
══════════════════════════════ */
.text-navy  { color: var(--navy); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }
.bg-cream   { background-color: var(--cream); }
.bg-navy    { background-color: var(--navy); }

/* Section Spacing */
.wp-block-group,
.entry-content > * + * {
  margin-top: 2rem;
}
