/* ═══════════════════════════════════════════
   DeQiao 德桥 — Gemeinsame Styles
   Gilt für index.html, tiere.html und alle
   weiteren Seiten.
═══════════════════════════════════════════ */

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

:root {
  --jade:       #0D7A6A;
  --jade-dark:  #095A4E;
  --jade-light: #14A88F;
  --jade-pale:  #DFF5F0;
  --gold:       #B8730A;
  --gold-mid:   #D9920C;
  --gold-light: #F0AC30;
  --gold-pale:  #FDF3DC;
  --gold-bg:    #FAF2DE;
  --parchment:  #FDF8EE;
  --card:       #FFFDF6;
  --text:       #2C1F0E;
  --text-soft:  #6B5636;
  --text-muted: #9A8068;
  --border:     #E8D9B8;
  --radius:     12px;
  --shadow:     0 3px 16px rgba(180,130,40,0.13);
}

body {
  font-family: -apple-system, BlinkMacSystemFont,
               'PingFang SC','Noto Sans SC','Microsoft YaHei',
               'Helvetica Neue', Arial, sans-serif;
  background: var(--gold-bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

/* ── Header ──────────────────────────────── */
header {
  background: linear-gradient(135deg, var(--jade-dark) 0%, var(--jade) 65%, var(--jade-light) 100%);
  padding: 13px 18px 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(9,70,58,0.35);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.flags { font-size: 22px; line-height: 1; }
.header-text h1 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.header-text p  { font-size: 11px; color: #A8E8DC; margin-top: 2px; }

/* ── Gold bar ────────────────────────────── */
.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-mid), var(--gold-light));
}

/* ── Tab Navigation ──────────────────────── */
.tab-wrapper {
  background: var(--parchment);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 57px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(180,130,40,0.10);
}
.tab-wrapper::-webkit-scrollbar { display: none; }
.tab-nav {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 6px;
  min-width: max-content;
}
/* Tabs sind jetzt <a>-Links */
.tab-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  text-decoration: none;
  padding: 7px 13px 6px;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tab-btn .t-icon  { font-size: 18px; line-height: 1; }
.tab-btn .t-label { font-size: 11px; font-weight: 500; color: var(--text-soft); white-space: nowrap; }
.tab-btn:hover { background: var(--jade-pale); }
.tab-btn:hover .t-label { color: var(--jade); }
.tab-btn.active { background: var(--jade-pale); border-bottom-color: var(--jade); }
.tab-btn.active .t-label { color: var(--jade-dark); font-weight: 700; }

/* ── Main ────────────────────────────────── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 14px 64px;
}

/* ── Topic Hero Cards ────────────────────── */
.topic-hero {
  border-radius: var(--radius);
  padding: 30px 20px 26px;
  text-align: center;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.topic-hero::before {
  content: '';
  position: absolute; top: -35px; right: -35px;
  width: 130px; height: 130px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%; pointer-events: none;
}
.topic-hero::after {
  content: '';
  position: absolute; bottom: -45px; left: -25px;
  width: 110px; height: 110px;
  background: rgba(0,0,0,0.09);
  border-radius: 50%; pointer-events: none;
}
.topic-hero .h-emoji { font-size: 54px; line-height: 1; margin-bottom: 11px; position: relative; z-index: 1; }
.topic-hero h2 { font-size: 18px; font-weight: 700; position: relative; z-index: 1; margin-bottom: 4px; }
.topic-hero p  { font-size: 12.5px; opacity: 0.82; position: relative; z-index: 1; line-height: 1.5; }

.gh-jade   { background: linear-gradient(135deg,#095A4E,#14A88F); }
.gh-blue   { background: linear-gradient(135deg,#14366E,#2A72C0); }
.gh-amber  { background: linear-gradient(135deg,#7A3A08,#C87A10); }
.gh-purple { background: linear-gradient(135deg,#3E1268,#8830BE); }
.gh-red    { background: linear-gradient(135deg,#7A1A10,#C44018); }
.gh-pink   { background: linear-gradient(135deg,#7A1848,#CC4882); }
.gh-green  { background: linear-gradient(135deg,#1A4E20,#2E9040); }

/* ── Under-Construction Card ─────────────── */
.construction-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 22px 38px;
  text-align: center;
  border-top: 4px solid var(--gold-mid);
}
.construction-card .c-icon { font-size: 44px; margin-bottom: 14px; }
.construction-card h3 { font-size: 16px; font-weight: 700; color: var(--jade-dark); margin-bottom: 6px; }
.construction-card .sub { font-size: 14px; color: var(--text-soft); margin-bottom: 4px; }
.construction-card .zh  { font-size: 13px; color: var(--text-muted); }
.badge {
  display: inline-block; margin-top: 18px;
  background: var(--gold-pale); color: var(--gold);
  border: 1px solid #E8C070; border-radius: 20px;
  padding: 5px 16px; font-size: 12px; font-weight: 600;
}

/* ── Sub-tabs ────────────────────────────── */
.subtab-bar {
  background: var(--jade-pale);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subtab-bar::-webkit-scrollbar { display: none; }
.subtab-nav {
  display: flex; min-width: max-content;
  padding: 6px 6px 0; gap: 3px;
}
.subtab-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.45);
  border: none; padding: 8px 14px 9px;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--jade-dark); cursor: pointer;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid transparent;
  transition: all 0.18s; white-space: nowrap;
}
.subtab-btn:hover { background: rgba(255,255,255,0.72); }
.subtab-btn.active {
  background: var(--card); font-weight: 700;
  border-bottom-color: var(--jade);
  box-shadow: 0 -1px 6px rgba(13,122,106,0.10);
}
.subtab-content {
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.subtab-panel { display: none; }
.subtab-panel.active { display: block; }
.subtab-inner {
  padding: 26px 20px 30px; text-align: center;
  border-top: 3px solid var(--gold-mid);
  border-radius: 0 0 var(--radius) var(--radius);
}
.subtab-inner .c-icon { font-size: 40px; margin-bottom: 12px; }
.subtab-inner h3 { font-size: 15px; font-weight: 700; color: var(--jade-dark); margin-bottom: 6px; }
.subtab-inner .sub { font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }
.subtab-inner .zh  { font-size: 12px; color: var(--text-muted); }

/* ── Video Cards ─────────────────────────── */
.video-card {
  background: var(--gold-bg);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 18px;
}
.video-wrap {
  background: #111; width: 100%;
  aspect-ratio: 16/9;
}
.video-wrap video { width: 100%; height: 100%; display: block; }
.video-info {
  display: flex; align-items: center;
  gap: 12px; padding: 11px 14px 12px;
}
.video-tag { font-size: 26px; line-height: 1; flex-shrink: 0; }
.video-info strong { font-size: 14px; color: var(--jade-dark); display: block; margin-bottom: 2px; }
.video-info p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ── Startseite: Themen-Karten Grid ─────── */
.welcome-hero {
  background: linear-gradient(160deg, var(--jade-dark) 0%, var(--jade) 42%, #177864 68%, #9A5E08 100%);
  padding: 34px 20px 44px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.welcome-hero::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; background: rgba(255,255,255,0.055);
  border-radius: 50%; pointer-events: none;
}
.welcome-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 170px; height: 170px; background: rgba(240,172,48,0.09);
  border-radius: 50%; pointer-events: none;
}
.hero-emojis { font-size: 46px; letter-spacing: 10px; line-height: 1; margin-bottom: 14px; position: relative; z-index: 1; }
.welcome-hero h2 { font-size: 23px; font-weight: 800; letter-spacing: 0.4px; margin-bottom: 7px; position: relative; z-index: 1; }
.welcome-hero .w-de { font-size: 14px; color: #B8EDE4; margin-bottom: 4px; position: relative; z-index: 1; }
.welcome-hero .w-zh { font-size: 13px; color: #F5D890; position: relative; z-index: 1; }
.hero-wave { height: 28px; background: var(--gold-bg); clip-path: ellipse(54% 100% at 50% 100%); margin-top: -2px; }

.themen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}
@media (min-width: 600px) {
  .themen-grid { grid-template-columns: repeat(3, 1fr); }
}
.thema-card {
  display: block; text-decoration: none;
  border-radius: var(--radius); padding: 22px 14px 18px;
  text-align: center; color: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative; overflow: hidden;
}
.thema-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.thema-card .card-emoji { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.thema-card strong { font-size: 13px; font-weight: 700; display: block; margin-bottom: 3px; }
.thema-card span   { font-size: 11px; opacity: 0.82; }
