/*
Theme Name: The Mountaineer - Hero
Theme URI: https://derbergsteiger.com
Description: Modern Outdoor & Mountaineering Magazine Theme
Author: Mario
Author URI: https://derbergsteiger.com
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themountaineer-hero
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

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

:root {
  --color-primary:      #3D6680;
  --color-primary-dark: #2a4a5e;
  --color-primary-light:#5a8aa8;
  --color-accent:       #CC0000;
  --color-bg:           #F7F7F7;
  --color-bg-alt:       #FFFFFF;
  --color-text:         #1A1A1A;
  --color-text-muted:   #5a5a5a;
  --color-border:       #e0e0e0;

  --container-max:      1360px;
  --space-inline:       24px;

  --radius-card:        12px;
  --radius-btn:         8px;
  --shadow-card:        0 2px 12px rgba(0,0,0,0.07);
  --shadow-card-hover:  0 8px 32px rgba(0,0,0,0.14);
  --transition:         0.25s ease;

  --font-heading:       'Poppins', system-ui, sans-serif;
  --font-body:          'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  padding-top: var(--header-height, 90px);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-primary-dark); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-inline);
}

/* ============================================================
   STICKY NAVBAR
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.site-header.scrolled .site-nav {
  border-color: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.site-header.scrolled .site-nav::before {
  display: none;
}

.home .site-header:not(.scrolled) .site-nav,
.category .site-header:not(.scrolled) .site-nav,
.archive .site-header:not(.scrolled) .site-nav {
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.home .site-header:not(.scrolled) .site-nav::before,
.category .site-header:not(.scrolled) .site-nav::before,
.archive .site-header:not(.scrolled) .site-nav::before {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.home .site-header:not(.scrolled) .site-logo,
.home .site-header:not(.scrolled) .site-logo:hover,
.category .site-header:not(.scrolled) .site-logo,
.category .site-header:not(.scrolled) .site-logo:hover,
.archive .site-header:not(.scrolled) .site-logo,
.archive .site-header:not(.scrolled) .site-logo:hover {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.home .site-header:not(.scrolled) .hero-nav li a,
.category .site-header:not(.scrolled) .hero-nav li a,
.archive .site-header:not(.scrolled) .hero-nav li a {
  color: #fff;
}

.home .site-header:not(.scrolled) .hero-nav li a:hover,
.category .site-header:not(.scrolled) .hero-nav li a:hover,
.archive .site-header:not(.scrolled) .hero-nav li a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.home .site-header:not(.scrolled) .hero-nav li ul a,
.category .site-header:not(.scrolled) .hero-nav li ul a,
.archive .site-header:not(.scrolled) .hero-nav li ul a {
  color: var(--color-text);
}

.home .site-header:not(.scrolled) .hero-nav li ul a:hover,
.category .site-header:not(.scrolled) .hero-nav li ul a:hover,
.archive .site-header:not(.scrolled) .hero-nav li ul a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.home .site-header:not(.scrolled) .hero-nav li.current-menu-item a,
.category .site-header:not(.scrolled) .hero-nav li.current-menu-item a,
.archive .site-header:not(.scrolled) .hero-nav li.current-menu-item a {
  color: #fff;
  opacity: 0.85;
}

.home .site-header:not(.scrolled) .header-search form,
.category .site-header:not(.scrolled) .header-search form,
.archive .site-header:not(.scrolled) .header-search form {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}

.home .site-header:not(.scrolled) .header-search input[type="search"],
.category .site-header:not(.scrolled) .header-search input[type="search"],
.archive .site-header:not(.scrolled) .header-search input[type="search"] {
  color: #fff;
}

.home .site-header:not(.scrolled) .header-search input[type="search"]::placeholder,
.category .site-header:not(.scrolled) .header-search input[type="search"]::placeholder,
.archive .site-header:not(.scrolled) .header-search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.65);
}

.home .site-header:not(.scrolled) .header-search button,
.category .site-header:not(.scrolled) .header-search button,
.archive .site-header:not(.scrolled) .header-search button {
  color: rgba(255,255,255,0.8);
}

.home .site-header:not(.scrolled) .menu-toggle-hero span,
.category .site-header:not(.scrolled) .menu-toggle-hero span,
.archive .site-header:not(.scrolled) .menu-toggle-hero span {
  background: #fff;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  height: auto;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-inline);
  padding-block: 0.65rem;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 0.25rem 1.5rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  width: 100%;
  text-align: center;
  padding-block: 0.4rem 0;
}

.site-logo:hover { color: var(--color-primary-dark); }

/* Nav Menu */
.hero-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.hero-nav li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}

.hero-nav li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.hero-nav li.current-menu-item a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Suche */
.header-search {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  gap: 0.4rem;
}

.header-search input[type="search"] {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  outline: none;
  width: 140px;
  color: var(--color-text);
}

.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Mobile Toggle – see extended definition below */

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
  margin-top: calc(-1 * var(--header-height, 90px));
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section--archive {
  height: 600px;
}

.hero-archive-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-archive-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.hero-archive-count {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero-bg {
  display: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08) translateZ(0);
  animation: heroZoom 12s ease-out forwards;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes heroZoom {
  from { transform: scale(1.08) translateZ(0); }
  to   { transform: scale(1.0) translateZ(0); }
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-inline: var(--space-inline);
  max-width: 760px;
}

.hero-tagline {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47,93,98,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */

.category-filter {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.category-filter__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-inline);
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.filter-btn {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.site-main {
  padding-block: 3rem;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
  text-decoration: none;
}

.section-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================================
   FEATURED POST
   ============================================================ */

.featured-post {
  margin-bottom: 3rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.featured-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-card__image img {
  transform: scale(1.04);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.featured-4k-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  color: #fff;
  line-height: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.featured-card__body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.featured-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.featured-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.featured-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ============================================================
   POST GRID
   ============================================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   POST CARD
   ============================================================ */

.post-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.post-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-border);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.06);
}

.post-card__category {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.post-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-card--no-image .post-card__body {
  padding-top: 1.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-decoration: none;
}

.hero-pagination .page-numbers:hover,
.hero-pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer-hero {
  background: #111c1d;
  color: rgba(255,255,255,0.7);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}

.site-footer-hero__top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-brand__4k {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }

.site-footer-hero__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.single-layout {
  max-width: 100%;
  margin: 0 auto;
  padding-block: 2.5rem;
}

.single-post-header {
  margin-bottom: 2rem;
}

.single-post-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.single-hero-image {
  width: 100%;
  height: 500px;
  margin-bottom: 0;
  overflow: hidden;
}

.single-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.single-thumbnail {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/7;
}

.single-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.single-content h2,
.single-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single-content p { margin-bottom: 1.25rem; }

.single-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content img {
  border-radius: 8px;
  margin-block: 1.5rem;
}

/* WordPress Gallery - 3 columns like original theme */
.single-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 2rem 0;
}

.single-content .wp-block-gallery figure.wp-block-image {
  flex: 0 0 auto;
  width: calc(33.33% - 0.5em * 0.66);
  margin: 0;
}

.single-content .wp-block-gallery figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Override column classes to use our 3-column layout */
.single-content .wp-block-gallery.columns-1 figure.wp-block-image { width: 100%; }
.single-content .wp-block-gallery.columns-2 figure.wp-block-image { width: calc(50% - 0.5em * 0.5); }
.single-content .wp-block-gallery.columns-3 figure.wp-block-image { width: calc(33.33% - 0.5em * 0.66); }
.single-content .wp-block-gallery.columns-4 figure.wp-block-image { width: calc(33.33% - 0.5em * 0.66); }
.single-content .wp-block-gallery.columns-5 figure.wp-block-image { width: calc(33.33% - 0.5em * 0.66); }
.single-content .wp-block-gallery.columns-6 figure.wp-block-image { width: calc(33.33% - 0.5em * 0.66); }
.single-content .wp-block-gallery.columns-default figure.wp-block-image { width: calc(33.33% - 0.5em * 0.66); }

/* Multiple images not in gallery - 3 columns */
.single-content p img:only-child,
.single-content p img:not(:only-child) {
  display: inline-block;
  width: calc(33.33% - 0.5rem);
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  vertical-align: top;
  border-radius: 8px;
}

.single-content p img:nth-child(3n) {
  margin-right: 0;
}

/* Responsive - match original theme */
@media (max-width: 600px) {
  .single-content .wp-block-gallery figure.wp-block-image {
    width: calc(50% - 0.5em * 0.5);
  }
  
  .single-content p img:only-child,
  .single-content p img:not(:only-child) {
    width: calc(50% - 0.25rem);
    margin-right: 0.5rem;
  }
  
  .single-content p img:nth-child(2n) {
    margin-right: 0;
  }
}

/* Full-Width Title Bar für Single */
.full-width-title-wrap {
  background: var(--color-primary);
  padding: 1.5rem 0;
  margin-bottom: 0;
}

.full-width-title-wrap .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.full-width-title-wrap .post-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb-sep { margin: 0 0.3rem; opacity: 0.5; }

.breadcrumb-current { color: rgba(255,255,255,0.9); }

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: var(--color-bg-alt);
  z-index: 201;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-menu.active { right: 0; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem;
}

.mobile-menu-content ul {
  list-style: none;
}

.mobile-menu-content ul li a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-menu-content ul li a:hover {
  color: var(--color-primary);
}

/* ============================================================
   MISC / UTILITIES
   ============================================================ */

.no-posts {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

/* Search Form */
.searchform {
  display: flex;
  gap: 0.5rem;
}

.searchform input[type="text"],
.searchform input[type="search"] {
  flex: 1;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  outline: none;
  background: var(--color-bg);
}

.searchform input:focus {
  border-color: var(--color-primary);
}

.searchform button,
.searchform input[type="submit"] {
  padding: 0.55rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
}

.searchform button:hover { background: var(--color-primary-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__image {
    aspect-ratio: 16/7;
  }
}

@media (max-width: 768px) {
  :root {
    --space-inline: 16px;
  }

  .hero-nav,
  .header-search {
    display: none;
  }

  .menu-toggle-hero {
    display: block;
  }

  .hero-section {
    height: 70vh;
    max-height: 600px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__body {
    padding: 1.25rem;
  }

  .site-footer-hero__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand__4k {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer-hero__bottom {
    flex-direction: column;
    text-align: center;
  }

  .toc-wrapper {
    display: block;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  .hero-title { font-size: 1.9rem; }

  .footer-brand__4k svg {
    width: min(100%, 200px);
    height: auto;
  }
}

/* ============================================================
   DARK MODE VORBEREITUNG
   ============================================================ */

@media (prefers-color-scheme: dark) {
  /* Vorbereitet - aktivieren wenn gewünscht */
  /*
  :root {
    --color-bg: #0f1a1b;
    --color-bg-alt: #182426;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-border: #2a3a3b;
  }
  */
}

/* ============================================================
   NAVIGATION – DROPDOWN & FLEXBOX FIX
   ============================================================ */

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Ensure ul is flex */
.hero-nav {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown parent */
.hero-nav li {
  position: relative;
}

/* Dropdown submenu */
.hero-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem 0;
  padding-top: 12px;
  list-style: none;
  z-index: 200;
  animation: dropdownIn 0.15s ease;
}

/* Invisible bridge to prevent gap losing hover */
.hero-nav li ul::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

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

.hero-nav li:hover > ul,
.hero-nav li:focus-within > ul {
  display: block;
}

.hero-nav li ul li a {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  border-radius: 0;
  white-space: nowrap;
}

.hero-nav li ul li a:hover {
  background: var(--color-bg);
  padding-left: 1.4rem;
}

/* Dropdown indicator */
.hero-nav li:has(> ul) > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}

/* Mobile Toggle – Hamburger Lines */
.menu-toggle-hero {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.menu-toggle-hero span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav List */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav-list li a:hover {
  color: var(--color-primary);
}

.mobile-nav-list li ul {
  list-style: none;
  padding-left: 1rem;
}

.mobile-nav-list li ul li a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  border-bottom-color: transparent;
  padding: 0.5rem 0;
}

/* ============================================================
   ARCHIVE / CATEGORY HEADER
   ============================================================ */

.archive-header {
  background: var(--color-primary);
  padding-block: 2.5rem;
  border-bottom: none;
}

.archive-header--category {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.archive-header__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archive-header__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.archive-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  /* Strip HTML from get_the_archive_title "prefix: title" */
}

.archive-header__title span {
  font-weight: 400;
  opacity: 0.7;
}

/* WordPress wraps archive title in "Kategorie: Name" – style the prefix */
.archive-header__title > * {
  display: contents;
}

.archive-header__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 640px;
  margin-top: 0.25rem;
}

.archive-header__meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ============================================================
   PAGE LAYOUT (page.php)
   ============================================================ */

.page-layout {
  max-width: 800px;
  margin: 0 auto;
  padding-block: 2.5rem;
}

.page-thumbnail {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/7;
}

.page-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-content {
  font-size: 1.025rem;
  line-height: 1.78;
  color: var(--color-text);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.page-content h2 { font-size: 1.6rem; }
.page-content h3 { font-size: 1.25rem; }

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

.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content img {
  border-radius: 10px;
  margin-block: 1.5rem;
  max-width: 100%;
  height: auto;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form {
  max-width: 640px;
  margin-top: 2rem;
}

.contact-form__field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color var(--transition);
  outline: none;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-primary);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

.page-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(47,93,98,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.page-content th,
.page-content td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.page-content th {
  background: var(--color-bg);
  font-weight: 600;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */

.search-header {
  background: var(--color-primary);
  padding-block: 2rem;
}

.search-header .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-header__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.search-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.search-header__query {
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 1024px) {
  .archive-header {
    padding-block: 2rem;
  }
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .site-nav,
  .header-search {
    display: none;
  }

  .menu-toggle-hero {
    display: flex;
  }

  /* Archive / category header */
  .archive-header {
    padding-block: 1.5rem;
  }

  /* Page layout */
  .page-layout {
    padding-block: 1.5rem;
  }
}
