/* =============================================
   mediendesign.css
   Styles für die Mediendesign-Schwerpunkt-Seite
   + geteilte Navbar-Stile (Schwerpunkte-Dropdown)
   ============================================= */

/* ── Navbar: Schwerpunkte-Block ── */
.nav-schwerpunkte {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-schwerpunkte > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-schwerpunkte > a:hover,
.nav-schwerpunkte.open > a {
  color: #185FA5;
  border-bottom: 2px solid #185FA5;
  text-decoration: none;
}

.nav-squares {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 12px;
  flex-shrink: 0;
}

.nav-sq {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  transform-origin: center;
}

.nav-sq-red    { background: #E8302A; }
.nav-sq-blue   { background: #185FA5; }
.nav-sq-yellow { background: #F5C800; }
.nav-sq-green  { background: #2A7A2A; }
.nav-sq-orange { background: #E87A00; }

@keyframes sqBounce {
  0%   { transform: translateY(-6px) scaleX(1); }
  60%  { transform: translateY(2px) scaleX(1.35); }
  100% { transform: translateY(0) scaleX(1.25); }
}

.nav-schwerpunkte.open .nav-sq {
  animation: sqBounce 0.38s cubic-bezier(.34,1.3,.64,1) forwards;
}
.nav-schwerpunkte.open .nav-sq:nth-child(1) { animation-delay: 0.00s; }
.nav-schwerpunkte.open .nav-sq:nth-child(2) { animation-delay: 0.05s; }
.nav-schwerpunkte.open .nav-sq:nth-child(3) { animation-delay: 0.10s; }
.nav-schwerpunkte.open .nav-sq:nth-child(4) { animation-delay: 0.15s; }
.nav-schwerpunkte.open .nav-sq:nth-child(5) { animation-delay: 0.20s; }

.sp-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 0.5px solid #e0ddd6;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  min-width: 270px;
  z-index: 9999;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.nav-schwerpunkte.open .sp-nav-dropdown {
  opacity: 1;
  pointer-events: all;
}

.sp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-28px) scaleY(0.4);
  transform-origin: top center;
  transition:
    opacity 0.32s cubic-bezier(.4,0,.2,1),
    transform 0.38s cubic-bezier(.34,1.3,.64,1);
}

.sp-nav-item:nth-child(1) { transition-delay: 0.00s; }
.sp-nav-item:nth-child(2) { transition-delay: 0.07s; }
.sp-nav-item:nth-child(3) { transition-delay: 0.14s; }
.sp-nav-item:nth-child(4) { transition-delay: 0.21s; }
.sp-nav-item:nth-child(5) { transition-delay: 0.28s; }

.nav-schwerpunkte.open .sp-nav-item {
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

.sp-nav-item .dd-sq {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.sp-nav-item .dd-text {
  flex: 1;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  background: #ffffff;
  border: 2px solid;
  border-radius: 8px;
  transition: background 0.18s ease, padding-left 0.2s ease;
  display: block;
}

.sp-nav-item:hover .dd-text,
.sp-nav-item.active-sp .dd-text {
  background: #f0f5fb;
  padding-left: 20px;
}

.navbar { overflow: visible !important; }


/* =============================================
   Mediendesign Hero
   ============================================= */

.md-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.md-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #185FA5;
  margin-bottom: 1rem;
}

.md-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #185FA5;
}

.md-hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #0C447C;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.md-accent {
  color: #378ADD;
}

.md-hero-sub {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.md-hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.md-hero-visual {
  position: relative;
}

.md-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 12px 40px rgba(24, 95, 165, 0.18);
}

.md-hero-tag {
  position: absolute;
  background: white;
  border: 0.5px solid #e0ddd6;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.md-tag-1 { top: 18px;  left: -18px; }
.md-tag-2 { top: 50%;   right: -16px; transform: translateY(-50%); }
.md-tag-3 { bottom: 22px; left: -18px; }


/* =============================================
   Quote
   ============================================= */

.md-quote-section {
  background: #185FA5;
  padding: 2.5rem 2rem;
}

.md-quote {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  font-style: italic;
  color: white;
  line-height: 1.7;
  text-align: center;
  opacity: 0.95;
}


/* =============================================
   Intro
   ============================================= */

.md-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.md-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.md-pills-box {
  background: #f0f5fb;
  border: 0.5px solid #c5d8ee;
  border-radius: 14px;
  padding: 1.5rem;
}

.md-pills-title {
  font-size: 13px;
  font-weight: 600;
  color: #0C447C;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.md-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.md-pill {
  background: white;
  border: 1px solid #c5d8ee;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #0C447C;
}


/* =============================================
   Inhalte Grid
   ============================================= */

.md-inhalte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.md-card {
  background: #ffffff;
  border: 0.5px solid #e0ddd6;
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.md-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(24, 95, 165, 0.12);
}

.md-card-blue {
  border-top: 3px solid #185FA5;
}

.md-card-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.md-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0C447C;
  margin-bottom: 10px;
}

.md-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.md-card-list li {
  font-size: 13px;
  color: #555;
  padding-left: 14px;
  position: relative;
}

.md-card-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #378ADD;
}


/* =============================================
   Stundentafel
   ============================================= */

.md-stunden {
  background: #f0f5fb;
  border-radius: 16px;
  margin: 0 2rem;
  padding: 2rem !important;
  max-width: calc(1100px - 4rem);
}

.md-stunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.md-stunden-card {
  background: white;
  border: 0.5px solid #c5d8ee;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.md-stunden-kl {
  font-size: 12px;
  font-weight: 600;
  color: #185FA5;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.md-stunden-h {
  font-size: 22px;
  font-weight: 700;
  color: #0C447C;
  margin-bottom: 8px;
}

.md-stunden-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}


/* =============================================
   Projekte
   ============================================= */

.md-projekte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.md-projekt-card {
  background: white;
  border: 0.5px solid #e0ddd6;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.md-projekt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.md-projekt-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-projekt-emoji {
  font-size: 36px;
}

.md-projekt-body {
  padding: 1.25rem;
}

.md-projekt-tag {
  font-size: 11px;
  font-weight: 600;
  color: #185FA5;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.md-projekt-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.md-projekt-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}


/* =============================================
   Tools
   ============================================= */

.md-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}

.md-tool {
  background: white;
  border: 0.5px solid #e0ddd6;
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.md-tool:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(24, 95, 165, 0.12);
}

.md-tool-icon {
  font-size: 18px;
  font-weight: 700;
  color: #185FA5;
  font-family: monospace;
  margin-bottom: 6px;
}

.md-tool-name {
  font-size: 11px;
  color: #555;
  font-weight: 500;
}

.md-tools-note {
  font-size: 13px;
  color: #666;
  background: #f5f4f0;
  border-radius: 10px;
  padding: 12px 16px;
  line-height: 1.6;
}


/* =============================================
   CTA
   ============================================= */

.md-cta {
  background: linear-gradient(135deg, #0C447C, #185FA5);
  margin-top: 2rem;
  padding: 3rem 2rem;
  text-align: center;
}

.md-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.md-cta-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.md-cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.md-cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-dark {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}


/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
  .md-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .md-hero-title {
    font-size: 2.2rem;
  }

  .md-hero-img {
    height: 220px;
  }

  .md-tag-1, .md-tag-2, .md-tag-3 {
    display: none;
  }

  .md-intro-grid {
    grid-template-columns: 1fr;
  }

  .md-stunden {
    margin: 0 1rem;
  }
}
