/* ============================================================
   hub.css – AV NRW Hub · Verbessertes Design
   Farbschema unverändert: Teal #1e4a4a · Gold #c9a84c
============================================================ */

:root {
  --hub-teal:          #1e4a4a;
  --hub-teal-light:    #265f5f;
  --hub-gold:          #c9a84c;
  --hub-gold-light:    #e8c96a;
  --hub-bg:            #f4f6f5;
  --hub-white:         #ffffff;

  --lernzentrum-color: #2d6b6b;
  --verwaltung-color:  #2d4a8a;
  --transport-color:   #7a3a1e;
}

/* ══════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════ */
.topbar {
  background: #153333;
  color: rgba(201,168,76,0.8);
  font-size: 12px;
  padding: 8px 40px;
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 301;
  letter-spacing: 0.04em;
}
.topbar a { color: var(--hub-gold); transition: color 0.2s; }
.topbar a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
nav {
  background: var(--hub-teal);
  padding: 16px 48px;
  z-index: 300;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo img { height: 46px; }
.nav-brand    { color: #fff; font-size: 19px; letter-spacing: 0.01em; }
.nav-links a  { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--hub-gold); }
.nav-cta {
  background: var(--hub-gold);
  color: var(--hub-teal);
  font-weight: 700; font-size: 13px;
  padding: 9px 20px; border-radius: 7px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--hub-gold-light); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hub-hero {
  min-height: 100vh;
  background: var(--hub-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtiler Hintergrund-Gradient */
.hub-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
}

/* Goldene Ringe */
.hub-hero-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.1);
}
.ring-1 { width: 340px;  height: 340px;  animation: ringPulse 6s ease-in-out infinite 0.0s; }
.ring-2 { width: 620px;  height: 620px;  animation: ringPulse 6s ease-in-out infinite 1.0s; }
.ring-3 { width: 900px;  height: 900px;  animation: ringPulse 6s ease-in-out infinite 2.0s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.1; transform: scale(1.04); }
}

/* Hero content */
.hub-hero-inner { position: relative; z-index: 2; max-width: 680px; }

.hub-logo {
  width: 80px; height: 80px; margin: 0 auto 32px;
  animation: fadeDown 0.7s ease both;
}
.hub-logo img { width: 100%; height: 100%; object-fit: contain; filter: brightness(10); }

.hub-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--hub-gold);
  margin-bottom: 22px; animation: fadeDown 0.7s ease 0.1s both;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hub-eyebrow::before,
.hub-eyebrow::after {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--hub-gold); opacity: 0.5;
}

.hub-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900; color: #fff; line-height: 1.07;
  margin-bottom: 26px; animation: fadeDown 0.7s ease 0.2s both;
}
.hub-hero-inner h1 span {
  color: var(--hub-gold);
  display: inline-block;
  position: relative;
}
/* Unterstrich unter "Viele Stärken" */
.hub-hero-inner h1 span::after {
  content: '';
  display: block; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--hub-gold), transparent);
  margin-top: 4px; width: 80%; margin-left: auto; margin-right: auto;
}

.hub-sub {
  font-size: 17px; color: rgba(255,255,255,0.6); font-weight: 300;
  max-width: 480px; margin: 0 auto 44px; line-height: 1.8;
  animation: fadeDown 0.7s ease 0.3s both;
}

.hub-hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeDown 0.7s ease 0.4s both;
}

.btn-gold {
  background: var(--hub-gold); color: var(--hub-teal);
  padding: 14px 30px; border-radius: 9px; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-gold:hover {
  background: var(--hub-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.4);
}
.btn-gold svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.25); color: #fff;
  padding: 14px 30px; border-radius: 9px; font-weight: 500; font-size: 15px;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* Scroll indicator */
.hub-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.3); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; cursor: pointer; z-index: 2;
  animation: fadeDown 0.7s ease 0.6s both;
  transition: color 0.2s;
}
.hub-scroll:hover { color: rgba(255,255,255,0.6); }
.hub-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.55); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   BEREICHE (CARDS)
══════════════════════════════════════════════════════════ */
.hub-bereiche {
  background: var(--hub-bg);
  padding: 100px 60px;
}

.hub-section-head {
  text-align: center;
  margin-bottom: 64px;
}
.hub-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--hub-teal);
  display: block; margin-bottom: 14px;
}
.hub-tag-light { color: rgba(255,255,255,0.5); }

.hub-section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px); font-weight: 700;
  color: var(--hub-teal); line-height: 1.2; margin-bottom: 16px;
}
.hub-section-head h2 span { color: var(--hub-teal); }
.hub-section-head > p { font-size: 16px; color: #777; max-width: 420px; margin: 0 auto; line-height: 1.7; }

/* Cards grid */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.hub-card {
  background: var(--hub-white);
  border-radius: 20px;
  padding: 40px 34px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hub-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 60px rgba(0,0,0,0.13);
}

/* Farbige linke Borderlinie */
.hub-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--card-color, var(--hub-teal));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s ease; border-radius: 0 0 0 20px;
}
.hub-card:hover::before { transform: scaleY(1); }

/* Dekorativer Buchstabe */
.hub-card-letter {
  position: absolute; right: -4px; bottom: -20px;
  font-family: 'Playfair Display', serif; font-size: 150px; font-weight: 900;
  color: var(--card-color, var(--hub-teal)); opacity: 0.04; line-height: 1;
  pointer-events: none; transition: opacity 0.3s, transform 0.3s;
  user-select: none;
}
.hub-card:hover .hub-card-letter { opacity: 0.08; transform: scale(1.05); }

/* Icon */
.hub-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: color-mix(in srgb, var(--card-color, var(--hub-teal)) 10%, white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hub-card:hover .hub-card-icon {
  background: var(--card-color, var(--hub-teal));
  transform: rotate(-4deg) scale(1.08);
}
.hub-card-icon svg {
  width: 26px; height: 26px;
  stroke: var(--card-color, var(--hub-teal)); stroke-width: 1.7; fill: none;
  transition: stroke 0.3s;
}
.hub-card:hover .hub-card-icon svg { stroke: #fff; }

/* Card body */
.hub-card-body { flex: 1; }
.hub-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--card-color, var(--hub-teal));
  display: block; margin-bottom: 10px; opacity: 0.85;
}
.hub-card h3 {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: #1a1a1a; margin-bottom: 12px; line-height: 1.25;
}
.hub-card p {
  font-size: 14px; color: #666; line-height: 1.75; margin-bottom: 20px;
}

/* Pills */
.hub-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.hub-pills span {
  font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 600;
  background: color-mix(in srgb, var(--card-color, var(--hub-teal)) 8%, white);
  color: var(--card-color, var(--hub-teal));
  border: 1px solid color-mix(in srgb, var(--card-color, var(--hub-teal)) 16%, white);
  letter-spacing: 0.02em;
}

/* Card CTA */
.hub-card-footer {
  display: inline-flex; align-items: center; gap: 8px; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px; font-weight: 700; color: var(--card-color, var(--hub-teal));
  margin-top: auto; transition: gap 0.25s;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hub-card:hover .hub-card-footer { gap: 14px; }
.hub-card-footer svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Card color assignments */
.hub-card-lernzentrum { --card-color: var(--lernzentrum-color); }
.hub-card-verwaltung  { --card-color: var(--verwaltung-color); }
.hub-card-transport   { --card-color: var(--transport-color); }

/* ══════════════════════════════════════════════════════════
   STÄRKEN
══════════════════════════════════════════════════════════ */
.hub-staerken {
  background: var(--hub-teal);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}
.hub-staerken::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.hub-staerken .hub-section-head h2 { color: #fff; }
.hub-staerken .hub-section-head > p { color: rgba(255,255,255,0.5); }
.hub-staerken .hub-tag             { color: var(--hub-gold); }

.hub-staerken-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

.hub-staerke {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 32px 26px;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.hub-staerke:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.2);
}
.hub-staerke-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(201,168,76,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: background 0.3s;
}
.hub-staerke:hover .hub-staerke-icon { background: rgba(201,168,76,0.2); }
.hub-staerke-icon svg { width: 20px; height: 20px; stroke: var(--hub-gold); fill: none; stroke-width: 2; }
.hub-staerke h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.hub-staerke p  { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.75; }

/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
.hub-stats {
  background: #153333;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 60px 40px;
}
.hub-stat {
  text-align: center; padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hub-stat:last-child { border-right: none; }
.hub-stat-num {
  font-family: 'Playfair Display', serif; font-size: 46px; font-weight: 900;
  color: var(--hub-gold); line-height: 1; margin-bottom: 10px;
}
.hub-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; }

/* ══════════════════════════════════════════════════════════
   KONTAKT
══════════════════════════════════════════════════════════ */
.hub-kontakt {
  background: linear-gradient(135deg, var(--hub-gold) 0%, #d4a83a 100%);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hub-kontakt::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,255,255,0.12) 0%, transparent 65%);
}
.hub-kontakt-inner { max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }
.hub-kontakt-inner h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; color: var(--hub-teal); margin-bottom: 16px; line-height: 1.2;
}
.hub-kontakt-inner > p { font-size: 16px; color: rgba(30,74,74,0.7); margin-bottom: 40px; line-height: 1.7; }
.hub-kontakt-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-outline-dark {
  border: 2px solid rgba(30,74,74,0.4); color: var(--hub-teal);
  padding: 14px 28px; border-radius: 9px; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-dark:hover { background: rgba(255,255,255,0.45); border-color: rgba(30,74,74,0.6); }
.btn-outline-dark svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.hub-footer { background: #0f2828; padding: 64px 60px 28px; }
.hub-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.hub-footer-name {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900;
  color: #fff; margin-bottom: 10px;
}
.hub-footer-brand p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.9; }
.hub-footer h4 {
  font-size: 11px; font-weight: 700; color: var(--hub-gold); margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.hub-footer ul { list-style: none; }
.hub-footer ul li { margin-bottom: 10px; }
.hub-footer a  { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.hub-footer a:hover { color: #fff; }
.hub-footer ul li:not(:has(a)) { font-size: 13px; color: rgba(255,255,255,0.4); }
.hub-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px; font-size: 12px;
  color: rgba(255,255,255,0.25); text-align: center; letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 10px 20px; }
  .hub-bereiche  { padding: 64px 20px; }
  .hub-staerken  { padding: 64px 20px; }
  .hub-kontakt   { padding: 64px 20px; }
  .hub-footer    { padding: 48px 20px 28px; }

  .hub-cards         { grid-template-columns: 1fr; gap: 18px; }
  .hub-staerken-grid { grid-template-columns: 1fr; gap: 14px; }

  .hub-stats { grid-template-columns: repeat(2, 1fr); padding: 40px 20px; }
  .hub-stat  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 18px; }
  .hub-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .hub-stat:nth-child(3),
  .hub-stat:nth-child(4)   { border-bottom: none; }
  .hub-stat-num { font-size: 36px; }

  .hub-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hub-hero-btns  { flex-direction: column; align-items: center; }
  .btn-gold, .btn-outline { width: 100%; justify-content: center; max-width: 280px; }
}

@media (max-width: 480px) {
  .hub-hero { padding: 80px 20px 60px; }
  .hub-hero-inner h1 { font-size: clamp(34px, 10vw, 52px); }
  .hub-logo  { width: 64px; height: 64px; }
  .hub-card  { padding: 30px 24px 24px; }
  .hub-staerke { padding: 24px 18px; }
  .hub-stats { padding: 32px 14px; }
  nav        { padding: 8px 14px; }
}
