/* ═══════════════════════════════════════════════════════════════
   Reisen-Erlebnisse — Custom Theme
   Bold & Adventure | Navy #173451 + Turquoise #2ABFBF
   Georgia/serif display · System UI body
═══════════════════════════════════════════════════════════════ */

:root {
  --navy:            #173451;
  --navy-dark:       #0f2438;
  --navy-deeper:     #091929;
  --turquoise:       #2ABFBF;
  --turquoise-dark:  #1fa0a0;
  --turquoise-pale:  rgba(42, 191, 191, 0.12);
  --turquoise-glow:  rgba(42, 191, 191, 0.25);
  --white:           #ffffff;
  --off-white:       #f4f7f9;
  --light-gray:      #e8edf2;
  --mid-gray:        #8fa0b2;
  --text:            #1a2a3a;
  --text-light:      #55708a;

  --font-display: Georgia, 'Book Antiqua', Palatino, 'Palatino Linotype', serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;

  --shadow-sm:   0 2px 8px  rgba(23, 52, 81, 0.10);
  --shadow-md:   0 8px 28px rgba(23, 52, 81, 0.16);
  --shadow-lg:   0 20px 60px rgba(23, 52, 81, 0.24);
  --shadow-card: 0 3px 14px rgba(23, 52, 81, 0.09);

  --ease-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.35s var(--ease-out);
}

/* ─── Reset / Base ────────────────────────────────────────────── */

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--turquoise-dark);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--turquoise); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
}

img { max-width: 100%; height: auto; }

/* ─── Navigation ──────────────────────────────────────────────── */

.mainMenuWrapper {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 3px 24px rgba(9, 25, 41, 0.45);
  /* Subtle diagonal texture */
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.018) 8px,
    rgba(255, 255, 255, 0.018) 10px
  );
}

.mainMenuWrapper .container {
  padding-top:    0;
  padding-bottom: 0;
}

.mainMenuWrapper .navbar {
  padding:    0;
  min-height: 68px;
}

/* Logo */
.logo-wrapper {
  display:     flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  max-height: 50px;
  width:      auto;
  display:    block;
  /* Navy logo on navy bg — invert to white */
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.85; }

/* Nav links */
.mainMenuWrapper .navbar-nav .nav-link {
  color:          rgba(255, 255, 255, 0.82) !important;
  font-family:    var(--font-body);
  font-size:      0.82rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:        1.35rem 1rem !important;
  position:       relative;
  transition:     color 0.25s ease;
}

/* Turquoise underline slide-in */
.mainMenuWrapper .navbar-nav .nav-link::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             0.75rem;
  right:            0.75rem;
  height:           3px;
  background:       var(--turquoise);
  border-radius:    3px 3px 0 0;
  transform:        scaleX(0);
  transform-origin: center;
  transition:       transform 0.28s var(--ease-out);
}

.mainMenuWrapper .navbar-nav .nav-link:hover,
.mainMenuWrapper .navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.mainMenuWrapper .navbar-nav .nav-link:hover::after,
.mainMenuWrapper .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.mainMenuWrapper .dropdown-menu {
  background:    var(--navy-dark);
  border:        1px solid rgba(42, 191, 191, 0.22);
  border-top:    2px solid var(--turquoise);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow:    var(--shadow-lg);
  padding:       0.4rem 0;
  min-width:     190px;
  margin-top:    0 !important;
  animation:     dropIn 0.2s var(--ease-out);
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mainMenuWrapper .dropdown-item {
  color:          rgba(255, 255, 255, 0.78);
  font-size:      0.84rem;
  font-weight:    500;
  letter-spacing: 0.04em;
  padding:        0.6rem 1.25rem;
  transition:     var(--transition);
}

.mainMenuWrapper .dropdown-item:hover,
.mainMenuWrapper .dropdown-item.active {
  background: rgba(42, 191, 191, 0.14);
  color:      var(--turquoise);
}

/* Mobile toggler */
.mainMenuWrapper .navbar-toggler {
  border:        2px solid rgba(42, 191, 191, 0.55);
  border-radius: var(--radius-sm);
  padding:       0.35rem 0.6rem;
}
.mainMenuWrapper .navbar-toggler-icon { filter: invert(1); }
.mainMenuWrapper .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--turquoise-glow); }

/* ─── Breadcrumb ──────────────────────────────────────────────── */

/* The breadcrumb partial outputs a .container directly inside .container-fluid */
.container-fluid > .container {
  background:    var(--light-gray);
  border-bottom: 1px solid rgba(23, 52, 81, 0.08);
  max-width:     100%;
}

.breadcrumb {
  margin:     0;
  padding-top:   0.55rem;
  padding-bottom: 0.55rem;
  background: transparent;
  font-size:  0.78rem;
}

.breadcrumb-item a {
  color:       var(--navy);
  font-weight: 500;
  opacity:     0.65;
}
.breadcrumb-item a:hover { opacity: 1; color: var(--turquoise-dark); }

.breadcrumb-item.active { color: var(--mid-gray); }

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color:   var(--mid-gray);
}

/* ─── Page Wrapper ────────────────────────────────────────────── */

.container-fluid {
  padding-left:  0;
  padding-right: 0;
}

.inner-wrapper {
  padding: 2.5rem 0 3.5rem;
}

/* ─── Home Intro ──────────────────────────────────────────────── */

.intro {
  padding-bottom: 2rem;
  margin-bottom:  2.5rem;
  border-bottom:  2px solid var(--light-gray);
  position:       relative;
}

.intro::after {
  content:  '';
  position: absolute;
  bottom:   -2px;
  left:     0;
  width:    60px;
  height:   2px;
  background: var(--turquoise);
}

.intro h1 {
  font-family:  var(--font-display);
  font-size:    clamp(1.9rem, 4.5vw, 3rem);
  color:        var(--navy);
  font-style:   italic;
  line-height:  1.15;
  margin-bottom: 0.8rem;
}

.intro p {
  font-size:  1.05rem;
  color:      var(--text-light);
  max-width:  830px;
  line-height: 1.7;
  margin:     0;
}

/* ─── Article List ────────────────────────────────────────────── */

.article-list {
  margin-bottom: 3.5rem;
}

/* Category heading */
.article-list > h2 {
  font-family:    var(--font-display);
  font-size:      clamp(1.35rem, 2.5vw, 1.85rem);
  font-style:     italic;
  color:          var(--navy);
  border-left:    5px solid var(--turquoise);
  padding-left:   1rem;
  margin-bottom:  0.35rem;
  line-height:    1.2;
}

.article-list > p {
  font-size:      0.92rem;
  color:          var(--text-light);
  padding-left:   1.35rem;
  margin-bottom:  1.6rem;
  line-height:    1.6;
}

/* Cards row — flex so cards in same row stretch equal height */
.article-list .row > [class*="col-"] {
  display:       flex;
  margin-bottom: 0;
}

/* ─── Article Card ────────────────────────────────────────────── */

.article-item {
  width:         100%;
  background:    var(--white);
  border-radius: var(--radius-md);
  overflow:      hidden;
  box-shadow:    var(--shadow-card);
  margin-bottom: 1.5rem;
  transition:    transform 0.38s var(--ease-out),
                 box-shadow 0.38s var(--ease-out);
}

.article-item:hover {
  transform:  translateY(-6px);
  box-shadow: var(--shadow-md);
}

.article-item > a {
  display:         flex;
  flex-direction:  column;
  height:          100%;
  text-decoration: none;
  color:           inherit;
}

/* 16:10 image container */
.article-item .image {
  aspect-ratio: 16 / 10;
  overflow:     hidden;
  flex-shrink:  0;
  background:   var(--light-gray);
  position:     relative;
}

.article-item .image img {
  width:      100% !important;
  height:     100% !important;
  object-fit: cover;
  display:    block;
  transition: transform 0.6s var(--ease-out);
}

.article-item:hover .image img {
  /* transform: scale(1.07); */
}


/* Card text */
.article-item .date {
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--turquoise-dark);
  padding:        0.9rem 1.1rem 0.2rem;
  flex-shrink:    0;
  display: none;
}

.article-item h2,
.article-item h3 {
  font-family:    var(--font-display);
  font-size:      1.02rem;
  font-weight:    700;
  color:          var(--navy);
  padding:        0 1.1rem 0.45rem;
  line-height:    1.3;
  margin:         0;
  text-decoration: none;
  padding:        0.9rem 1.1rem 0.2rem;
}

.article-item .excerpt {
  font-size:         0.845rem;
  color:             var(--text-light);
  padding:           0.25rem 1.25rem 1.4rem;
  margin-bottom: 1.4rem;
  line-height:       1.55;
  flex-grow:         1;
  display:           -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}

/* ─── Article Detail ──────────────────────────────────────────── */

.col-lg-9 > h1:first-child,
.inner-wrapper h1 {
  font-family:  var(--font-display);
  font-size:    clamp(1.75rem, 4vw, 2.75rem);
  font-style:   italic;
  color:        var(--navy);
  line-height:  1.18;
  margin-bottom: 1.2rem;
  max-width:    820px;
}

/* Hero image */
.col-lg-9 > .image {
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  overflow:      hidden;
}

.col-lg-9 > .image img {
  width:      100%;
  max-height: 500px;
  object-fit: cover;
  display:    block;
}

/* Article date */
.col-lg-9 > .date {
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--turquoise-dark);
  margin-bottom:  1.75rem;
  display:        block;
  display: none;
}

.modified-date {
  color:       var(--mid-gray);
  font-weight: 400;
}

/* Rendered Markdown body */
.content {
  font-family: var(--font-body);
  font-size:   1.05rem;
  line-height: 1.8;
  color:       var(--text);
  max-width:   720px;
}

.content h2, .content h3, .content h4 {
  font-family:   var(--font-display);
  color:         var(--navy);
  margin-top:    2rem;
  margin-bottom: 0.7rem;
}

.content h2 {
  font-size:     1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--light-gray);
}

.content h3 { font-size: 1.2rem; }
.content h4 { font-size: 1.05rem; }

.content p { margin-bottom: 1.3rem; }

.content a {
  color:                var(--turquoise-dark);
  text-decoration:      underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42, 191, 191, 0.4);
}
.content a:hover {
  color:                var(--navy);
  text-decoration-color: var(--navy);
}

.content img {
  max-width:     100%;
  border-radius: var(--radius-sm);
  margin:        1rem 0;
}

.content blockquote {
  border-left: 4px solid var(--turquoise);
  margin:      1.75rem 0;
  padding:     0.85rem 1.5rem;
  background:  rgba(42, 191, 191, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style:  italic;
  color:       var(--navy);
  font-size:   1.05rem;
}

.content ul, .content ol {
  padding-left:  1.75rem;
  margin-bottom: 1.3rem;
}
.content li { margin-bottom: 0.45rem; }

.content strong { color: var(--navy); }

.content table {
  width:         100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size:     0.9rem;
}
.content th {
  background:   var(--navy);
  color:        var(--white);
  padding:      0.6rem 0.9rem;
  text-align:   left;
  font-family:  var(--font-body);
  font-weight:  600;
  font-size:    0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.content td {
  padding:     0.55rem 0.9rem;
  border-bottom: 1px solid var(--light-gray);
}
.content tr:last-child td { border-bottom: none; }
.content tr:nth-child(even) td { background: var(--off-white); }

/* Related articles */
.related-articles {
  margin-top:   3rem;
  padding-top:  2.5rem;
  border-top:   3px solid var(--light-gray);
  position:     relative;
}

.related-articles::before {
  content:    'Weitere Artikel';
  display:    block;
  font-family: var(--font-display);
  font-style: italic;
  font-size:  1.15rem;
  color:      var(--navy);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--turquoise);
}

/* ─── Sidebar ─────────────────────────────────────────────────── */

.col-lg-3 {
  padding-top: 0.5rem;
}

/* Newsletter box */
.newsletter {
  background:    var(--navy);
  color:         var(--white);
  border-radius: var(--radius-md);
  padding:       1.75rem 1.5rem;
  margin-bottom: 1.75rem;
  position:      relative;
  overflow:      hidden;
}

/* Decorative turquoise circle */
.newsletter::before {
  content:       '';
  position:      absolute;
  top:           -40px;
  right:         -40px;
  width:         140px;
  height:        140px;
  border-radius: 50%;
  background:    rgba(42, 191, 191, 0.14);
  pointer-events: none;
}

.newsletter::after {
  content:       '';
  position:      absolute;
  bottom:        -20px;
  left:          -20px;
  width:         80px;
  height:        80px;
  border-radius: 50%;
  background:    rgba(42, 191, 191, 0.08);
  pointer-events: none;
}

.newsletter h3 {
  color:        var(--white);
  font-family:  var(--font-display);
  font-size:    1.2rem;
  font-style:   italic;
  margin-bottom: 0.5rem;
}

.newsletter p {
  color:         rgba(255, 255, 255, 0.72);
  font-size:     0.875rem;
  margin-bottom: 1.25rem;
  line-height:   1.55;
}

/* Categories list */
.categories {
  list-style:    none;
  padding:       0;
  margin:        0 0 1.75rem;
  background:    var(--white);
  border-radius: var(--radius-md);
  box-shadow:    var(--shadow-sm);
  overflow:      hidden;
  border:        1px solid var(--light-gray);
}

.categories li {
  border-bottom: 1px solid var(--light-gray);
}
.categories li:last-child { border-bottom: none; }

.categories li a {
  display:     flex;
  align-items: center;
  padding:     0.7rem 1.1rem;
  color:       var(--navy);
  font-size:   0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:  var(--transition);
}

.categories li a::before {
  content:      '→';
  color:        var(--turquoise);
  margin-right: 0.6rem;
  font-size:    0.9rem;
  transition:   transform 0.25s ease;
  display:      inline-block;
}

.categories li a:hover {
  background:   var(--turquoise-pale);
  color:        var(--turquoise-dark);
  padding-left: 1.35rem;
}

.categories li a:hover::before {
  transform: translateX(3px);
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn,
a.btn {
  display:          inline-flex;
  align-items:      center;
  justify-content:  center;
  background:       var(--turquoise);
  color:            var(--white) !important;
  font-family:      var(--font-body);
  font-weight:      700;
  font-size:        0.82rem;
  letter-spacing:   0.1em;
  text-transform:   uppercase;
  padding:          0.65rem 1.4rem;
  border-radius:    var(--radius-sm);
  border:           none;
  cursor:           pointer;
  text-decoration:  none !important;
  transition:       var(--transition);
  box-shadow:       0 4px 16px rgba(42, 191, 191, 0.35);
  position:         relative;
  overflow:         hidden;
}

.btn::after,
a.btn::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn:hover,
a.btn:hover {
  background:  var(--turquoise-dark);
  color:       var(--white) !important;
  box-shadow:  0 6px 22px rgba(42, 191, 191, 0.45);
  transform:   translateY(-2px);
}

/* ─── Footer ──────────────────────────────────────────────────── */

.footer-wrapper {
  background:  var(--navy-deeper);
  border-top:  3px solid var(--turquoise);
  padding:     2rem 0;
  margin-top:  0;
}

.footer-wrapper p {
  margin:     0;
  font-size:  0.85rem;
  color:      rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.footer-wrapper a {
  color:          rgba(42, 191, 191, 0.85);
  font-size:      0.85rem;
  font-weight:    500;
  text-decoration: none;
  transition:     var(--transition);
}
.footer-wrapper a:hover {
  color:      var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer menu (footermenu partial renders plain <a> tags) */
.footer-wrapper nav a,
.footer-wrapper .col-lg-8 a {
  margin-left: 1.5rem;
}

.footer-wrapper .col-lg-8 {
  display:         flex;
  align-items:     center;
  justify-content: flex-end;
  flex-wrap:       wrap;
  gap:             0.2rem 0;
}

/* ─── Pagination ──────────────────────────────────────────────── */

.pagination {
  justify-content: center;
  margin-top:      2.5rem;
  gap:             0.25rem;
}

.page-link {
  color:         var(--navy);
  border:        1px solid var(--light-gray);
  border-radius: var(--radius-sm) !important;
  font-weight:   600;
  font-size:     0.875rem;
  padding:       0.45rem 0.85rem;
  transition:    var(--transition);
}

.page-link:hover {
  background:    var(--turquoise);
  border-color:  var(--turquoise);
  color:         var(--white);
  box-shadow:    0 4px 12px rgba(42, 191, 191, 0.3);
}

.page-item.active .page-link {
  background:   var(--navy);
  border-color: var(--navy);
  color:        var(--white);
  box-shadow:   none;
}

.page-item.disabled .page-link {
  opacity: 0.4;
}

/* ─── Turnstile / Forms ───────────────────────────────────────── */

.turnstile-wrapper {
  margin: 1.5rem 0;
}

/* ─── 404 ─────────────────────────────────────────────────────── */

.inner-wrapper .container > h1:only-child,
.error-404 h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  /* Mobile nav collapse panel */
  .mainMenuWrapper .navbar-collapse {
    background:    var(--navy-dark);
    padding:       0.75rem 1rem 1.25rem;
    border-top:    2px solid rgba(42, 191, 191, 0.25);
    margin-top:    0.4rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow:    0 12px 28px rgba(9, 25, 41, 0.35);
  }

  .mainMenuWrapper .navbar-nav .nav-link::after { display: none; }

  .mainMenuWrapper .navbar-nav .nav-link {
    padding:       0.6rem 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mainMenuWrapper .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .mainMenuWrapper .dropdown-menu {
    background:  rgba(0, 0, 0, 0.25);
    border:      none;
    box-shadow:  none;
    padding-left: 0.75rem;
    animation:   none;
  }

  .mainMenuWrapper .dropdown-item {
    padding: 0.5rem 1rem;
  }

  .inner-wrapper { padding: 1.75rem 0 2.5rem; }

  .col-lg-3 { margin-top: 2rem; }
}

@media (max-width: 767.98px) {
  .intro h1   { font-size: 1.75rem; }
  .intro p    { font-size: 0.975rem; }

  .article-list > h2    { font-size: 1.25rem; }
  .article-item h3      { font-size: 0.96rem; }
  .article-item .excerpt { line-clamp: 2; }

  .content       { font-size: 1rem; }
  .content h2    { font-size: 1.3rem; }

  .footer-wrapper .col-lg-4,
  .footer-wrapper .col-lg-8 {
    text-align:      center;
    justify-content: center;
    margin-bottom:   0.75rem;
  }

  .footer-wrapper .col-lg-8 a:first-child { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .article-list .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
