/* =============================================
   TDK – Tief Dunkel Kalt: Custom Theme
   Tiefsee-Farbschema: Dunkles Blau + Cyan-Akzente
   ============================================= */

:root {
  /* Primary palette - deep ocean */
  --cassiopeia-color-primary: #0b1a2e;
  --cassiopeia-color-link: #1a9fba;
  --link-color: #1a9fba;
  --link-color-rgb: 26, 159, 186;
  --cassiopeia-color-hover: #14d4e6;
  --link-hover-color: #14d4e6;
  --link-hover-color-rgb: 20, 212, 230;

  /* Override Bootstrap primary */
  --primary: #0d2847;
  --primary-rgb: 13, 40, 71;
  --teal: #1a9fba;
  --cyan: #14d4e6;
}

/* ---- HEADER ---- */
.container-header {
  background: linear-gradient(135deg, #040d1a 0%, #0b1a2e 40%, #0d2847 100%);
  color: #e0e8f0;
  padding: 0.5rem 0;
  border-bottom: 3px solid #1a9fba;
}

.container-header .navbar-brand,
.container-header .navbar-brand a {
  color: #ffffff !important;
}

.container-header .site-description {
  color: #8ab4c8 !important;
  font-style: italic;
}

/* Logo sizing */
.container-header .navbar-brand img {
  max-height: 60px;
  width: auto;
}

/* ---- NAVIGATION (topbar) ---- */
.container-topbar {
  padding: 0.5rem 1.5rem;
}

.container-topbar .mod-menu {
  gap: 0.5rem;
}

.container-header .mod-menu a {
  color: #c8dce6 !important;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 2px solid transparent;
  padding: 0.3rem 0.75rem;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus,
.container-header .mod-menu .active > a {
  color: #14d4e6 !important;
  border-bottom-color: #1a9fba;
  text-decoration: none;
}

/* ---- BODY ---- */
body {
  background-color: #f4f7fa;
  color: #1e2a3a;
}

.container-component {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(11, 26, 46, 0.08);
}

/* ---- HERO SECTION (Welcome page) ---- */
.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 70vh;
  background-image: url('/images/bodensee-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 13, 26, 0.55) 0%,
    rgba(11, 26, 46, 0.45) 50%,
    rgba(4, 13, 26, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 3rem 2rem;
}

.hero-content .hero-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #a0dce8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #d8e8f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-content .hero-feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 159, 186, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-content .hero-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 159, 186, 0.7);
}

.hero-content .hero-feature h3 {
  color: #14d4e6;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-content .hero-feature p {
  font-size: 0.95rem;
  color: #b8d0dc;
  margin: 0;
}

.hero-cta {
  margin-top: 2.5rem;
}

.hero-cta a {
  display: inline-block;
  background: #1a9fba;
  color: #ffffff !important;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta a:hover {
  background: #14d4e6;
  transform: translateY(-2px);
  color: #0b1a2e !important;
}

/* Remove container styling for welcome page hero */
.view-featured .container-component,
body[class*="itemid-101"] .container-component {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* Style the blog items below the hero normally */
.blog-featured .items-leading + .blog-items,
.blog-featured .blog-items {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 1px 4px rgba(11, 26, 46, 0.08);
}

/* ---- ARTICLE STYLES ---- */
.com-content-article h1,
.com-content-article h2,
.blog h2 {
  color: #0b1a2e;
}

.com-content-article h3,
.blog h3 {
  color: #0d2847;
}

/* Article info bar */
.article-info,
.com-content-article .article-info {
  background: #e8f1f6;
  border-left: 4px solid #1a9fba;
  padding: 0.5rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
  color: #4a6070;
  font-size: 0.9rem;
}

/* ---- GALLERY ITEMS (migrated from old site) ---- */
figure.gallery-item {
  margin: 1.5rem 0;
  text-align: center;
}

figure.gallery-item img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

figure.gallery-item img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

figure.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #5a7080;
  font-style: italic;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background-color: #0d2847 !important;
  border-color: #0d2847 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1a9fba !important;
  border-color: #1a9fba !important;
}

a.readmore,
a.readmore:link {
  color: #1a9fba;
  font-weight: 600;
}

a.readmore:hover {
  color: #14d4e6;
}

/* ---- SIDEBAR ---- */
.sidebar-right .card,
.sidebar-right .module {
  border: none;
  border-top: 3px solid #1a9fba;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(11, 26, 46, 0.06);
}

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(135deg, #040d1a 0%, #0b1a2e 100%);
  color: #8ab4c8;
  border-top: 3px solid #1a9fba;
}

.footer a:not(.btn),
.footer .btn-link {
  color: #1a9fba !important;
}

.footer a:not(.btn):hover,
.footer .btn-link:hover {
  color: #14d4e6 !important;
}

/* ---- BREADCRUMBS ---- */
.container-breadcrumbs {
  background: #e8f1f6;
  font-size: 0.85rem;
}

/* Hide breadcrumbs on home/featured page */
body[class*="itemid-101"] .container-breadcrumbs {
  display: none;
}

/* ---- PAGINATION ---- */
.pagination .page-link {
  color: #0d2847;
}

.pagination .page-item.active .page-link {
  background-color: #0d2847;
  border-color: #0d2847;
}

/* ---- BLOG LAYOUT ---- */
.blog-items .blog-item {
  border-bottom: 1px solid #e0e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .container-component {
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .hero-banner {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .hero-content .hero-features {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- IFRAME EMBEDS (Google Docs) ---- */
iframe[src*="docs.google"] {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
