/*
Theme Name: CWA Standalone
Theme URI: https://example.com/
Description: Standalone Theme fuer die deutschsprachige CW Academy Website.
Author: DD1MAT Niko
Version: 4.0.2
Text Domain: cwa-standalone
*/

:root {
  --cwa-primary: #1a5f9e;
  --cwa-accent: #d85a30;
  --cwa-bg: #f8f7f4;
  --cwa-text: #1e1e1e;
  --cwa-muted: #6b6b6b;
  --cwa-border: rgba(0, 0, 0, 0.1);
  --cwa-hero-image: url("img/hero/morse-keyer-modern.webp");
  --cwa-kurse-hero: url("img/hero/cw-keyer-modern.webp");
  --cwa-ablauf-hero: url("img/hero/vintage-amateur-radio-station-desk-morse-code-key.png");
  --cwa-anmeldung-hero: url("img/hero/vintage-amateur-radio-station-desk-morse-code-key.png");
  --cwa-materialien-hero: url("img/hero/vintage-amateur-radio-station-desk-morse-code-key.png");
  --cwa-advisor-hero: url("img/hero/vintage-amateur-radio-station-desk-morse-code-key.png");
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--cwa-text);
  background-color: #fff;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-name {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--cwa-primary);
}

a:hover {
  color: #124774;
}

.section-space {
  padding: 4rem 0;
  width: 100%;
  clear: both;
}

.section-space .container::after {
  content: "";
  display: table;
  clear: both;
}

.top-nav {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cwa-border);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background-color: var(--cwa-primary);
}

.brand-name {
  font-size: 1.2rem;
  color: var(--cwa-text);
}

.navbar .nav-link {
  color: var(--cwa-text);
  font-weight: 600;
  margin: 0 0.2rem;
  border-radius: 0.4rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--cwa-primary);
  background-color: rgba(26, 95, 158, 0.08);
}

.btn-cwa-primary {
  background-color: var(--cwa-primary);
  border-color: var(--cwa-primary);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-cwa-primary:hover {
  background-color: #124774;
  border-color: #124774;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(26, 95, 158, 0.2);
}

.btn-cwa-accent {
  background-color: var(--cwa-accent);
  border-color: var(--cwa-accent);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-cwa-accent:hover {
  background-color: #b94a26;
  border-color: #b94a26;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(216, 90, 48, 0.24);
}

.btn-cwa-outline {
  border: 1px solid var(--cwa-primary);
  color: var(--cwa-primary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-cwa-outline:hover {
  background-color: rgba(26, 95, 158, 0.08);
  color: var(--cwa-primary);
  transform: translateY(-1px);
}

.wp-block-button.btn-cwa-outline .wp-block-button__link {
  background-color: transparent;
  border: 1px solid var(--cwa-primary);
  border-radius: 0.5rem;
  color: var(--cwa-primary);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wp-block-button.btn-cwa-outline .wp-block-button__link:hover {
  background-color: rgba(26, 95, 158, 0.08);
  color: var(--cwa-primary);
  transform: translateY(-1px);
}

.hero {
  background-color: #dfe7ef;
  border-bottom: 1px solid var(--cwa-border);
  position: relative;
  overflow: hidden;
}

.hero-surface {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  min-height: 470px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(13, 28, 46, 0.58) 0%, rgba(17, 47, 76, 0.5) 44%, rgba(30, 72, 108, 0.42) 100%),
    radial-gradient(circle at 86% 20%, rgba(216, 90, 48, 0.18) 0%, rgba(216, 90, 48, 0) 36%),
    var(--cwa-hero-image),
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 2px,
      rgba(255, 255, 255, 0) 2px,
      rgba(255, 255, 255, 0) 19px
    );
  background-position: center, center, center, center;
  background-size: auto, auto, cover, auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 4.8rem 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 46rem;
}

.btn-hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-hero-outline:hover {
  color: #123d65;
  background-color: #fff;
  transform: translateY(-1px);
}

.hero-content .cwa-front-hero-content > *:last-child {
  margin-bottom: 0;
}

.hero-content .wp-block-buttons.cwa-hero-actions {
  gap: 0.75rem;
}

.hero-content .wp-block-button.btn-cwa-primary .wp-block-button__link,
.hero-content .wp-block-button.btn-hero-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-content .wp-block-button.btn-cwa-primary .wp-block-button__link {
  background-color: var(--cwa-primary);
  border: 1px solid var(--cwa-primary);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-content .wp-block-button.btn-cwa-primary .wp-block-button__link:hover {
  background-color: #124774;
  border-color: #124774;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(26, 95, 158, 0.2);
}

.hero-content .wp-block-button.btn-hero-outline .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-content .wp-block-button.btn-hero-outline .wp-block-button__link:hover {
  color: #123d65;
  background-color: #fff;
  transform: translateY(-1px);
}

.sub-hero {
  position: relative;
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--cwa-border);
}

.sub-hero-surface {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.sub-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 53, 84, 0.54) 0%, rgba(26, 95, 158, 0.42) 55%, rgba(216, 90, 48, 0.3) 100%),
    var(--cwa-subhero-image, var(--cwa-hero-image));
  background-position: center, center;
  background-size: auto, cover;
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3.2rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.sub-hero-content .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.hero .lead {
  max-width: 50rem;
}

.morse-decor {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.2rem;
  font-size: 1.1rem;
}

.term-banner {
  background: #ffe39c;
  border-bottom: 1px solid #e7c976;
  color: #4e3f15;
}

.term-banner a {
  color: #614f1e;
  font-weight: 700;
  text-decoration: none;
}

.term-banner a:hover {
  text-decoration: underline;
}

.cwa-term-banner-wrapper {
  background: #ffe39c;
  border-bottom: 1px solid #e7c976;
  color: #4e3f15;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 769px) {
  .cwa-term-banner-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cwa-term-banner-text {
  flex: 1;
}

.cwa-term-banner-link a {
  color: #614f1e;
  font-weight: 700;
  text-decoration: none;
}

.cwa-term-banner-link a:hover {
  text-decoration: underline;
}

.stat-card {
  border: 1px solid var(--cwa-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background-color: #fff;
  height: 100%;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cwa-primary);
}

.card-elevated {
  border: 1px solid var(--cwa-border);
  border-radius: 0.85rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
  background-color: #fff;
  height: 100%;
}

.card-elevated:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 95, 158, 0.35);
}

.card-muted {
  opacity: 0.78;
  border-color: rgba(0, 0, 0, 0.18);
}

.step-list {
  counter-reset: cwa-step;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.step-list li {
  counter-increment: cwa-step;
  margin-bottom: 1.25rem;
  padding-left: 3.2rem;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.step-list li::before {
  content: counter(cwa-step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background-color: var(--cwa-primary);
  flex-shrink: 0;
}

.advisor-strip {
  background-color: #f2f0ea;
  border-top: 1px solid var(--cwa-border);
  border-bottom: 1px solid var(--cwa-border);
}

.avatar-initial {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background-color: var(--cwa-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--cwa-border);
  flex-shrink: 0;
  object-fit: cover;
}

.avatar-initial[src] {
  display: block;
}

.site-footer {
  background-color: #1b2734;
  color: #e8edf2;
  font-size: 0.95rem;
}

.site-footer a {
  color: #f3b28f;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-partners {
  background-color: #243447;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-partners-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.9rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo img {
  width: 100%;
  max-width: 220px;
  height: 56px;
  object-fit: contain;
}

.footer-legal {
  background-color: #1b2734;
}

.footer-legal-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-legal-nav a {
  color: #f3b28f;
  text-decoration: none;
  font-weight: 600;
}

.footer-legal-nav a:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .footer-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.content-card {
  background-color: #fff;
  border: 1px solid var(--cwa-border);
  border-radius: 0.85rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 95, 158, 0.35);
}

.material-card,
.wp-block-group.content-card.material-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: auto !important;
  min-height: 0;
}

.material-card > * {
  margin-top: 0;
  margin-bottom: 0;
}

.material-card .wp-block-buttons {
  margin-top: auto;
}

.badge-soft {
  background-color: rgba(26, 95, 158, 0.1);
  color: var(--cwa-primary);
  border: 1px solid rgba(26, 95, 158, 0.3);
}

.stepper {
  display: grid;
  gap: 1rem;
}

.stepper-item {
  border: 1px solid var(--cwa-border);
  border-radius: 0.85rem;
  padding: 1rem 1rem 1rem 4rem;
  position: relative;
  background: #fff;
}

.stepper-item .step-index {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cwa-primary);
}

.login-wrap {
  min-height: calc(100vh - 76px);
  padding: 2.5rem 0;
  background: radial-gradient(circle at 15% 15%, #eef4fa 0%, #f7f7f5 45%, #faf9f7 100%);
}

.login-card {
  width: min(100%, 420px);
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid var(--cwa-border);
  border-radius: 1rem;
  padding: 2rem;
}

.dashboard-shell {
  background-color: #f9fafb;
  min-height: 100vh;
}

.dashboard-navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--cwa-border);
}

.upload-box {
  border: 1px dashed rgba(26, 95, 158, 0.4);
  border-radius: 0.8rem;
  padding: 1rem;
  background-color: rgba(26, 95, 158, 0.03);
}

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.advisor-card {
  border: 1px solid var(--cwa-border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  height: 100%;
}

.advisor-card .wp-block-image {
  margin-bottom: 12px;
}

.advisor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 991.98px) {
  .morse-decor {
    position: static;
    display: inline-block;
    margin-bottom: 0.8rem;
  }

  .footer-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    text-align: left;
  }

  .hero-surface {
    min-height: 400px;
  }

  .sub-hero-surface {
    min-height: 220px;
  }

  .sub-hero-content {
    padding: 2.4rem 0;
  }

  .advisors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-partners-grid {
    grid-template-columns: 1fr;
  }

  .advisors-grid {
    grid-template-columns: 1fr;
  }
}
