/*
Theme Name:   MitoHack Warm
Theme URI:    https://mito-hacking.de
Author:       MitoHack Team
Author URI:   https://mito-hacking.de
Description:  Warmes, helles WordPress-Theme für mito-hacking.de mit Amber-Gold-Farbschema, prominentem IHHT-Spotlight, zweizeiligem Header (Logo+Menü / Suche), dreispaltigem Footer und 1400px Inhaltsbreite.
Version:      2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  mito-warm
Tags:         warm, amber, biohacking, health, blog, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

/* =========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================= */
:root {
	--c-primary:        #d97706;
	--c-primary-dark:   #92400e;
	--c-primary-light:  #fde68a;
	--c-primary-bg:     #fffbeb;

	--c-accent:         #ea580c;
	--c-accent-dark:    #7c2d12;
	--c-accent-light:   #fed7aa;
	--c-accent-bg:      #fff7ed;

	--c-ihht:           #dc2626;
	--c-ihht-dark:      #7f1d1d;
	--c-ihht-bg:        #fef2f2;
	--c-ihht-border:    #fca5a5;

	--c-bg:             #fffdf7;
	--c-surface:        #ffffff;
	--c-surface-warm:   #fef9f0;
	--c-border:         #e7d9c4;
	--c-border-light:   #f5ede0;

	--c-text:           #292524;
	--c-text-muted:     #78716c;
	--c-text-light:     #a8a29e;

	--c-header-bg:      #ffffff;
	--c-header-search:  #fef9f0;
	--c-footer-bg:      #292524;
	--c-footer-text:    #e7e5e4;
	--c-footer-heading: #fde68a;
	--c-footer-link:    #fbbf24;

	--radius-sm:  6px;
	--radius-md:  10px;
	--radius-lg:  16px;
	--radius-xl:  24px;

	--shadow-sm:   0 1px 3px rgba(0,0,0,.08);
	--shadow-md:   0 4px 12px rgba(0,0,0,.10);
	--shadow-lg:   0 10px 30px rgba(0,0,0,.12);
	--shadow-warm: 0 4px 20px rgba(217,119,6,.18);

	--transition:  all .25s ease;

	/* ── Breiten ── */
	--max-width:     1400px;   /* Volle Inhaltsbreite */
	--content-width: 960px;    /* Fließtext-Breite (Artikel) */
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--c-text);
	background-color: var(--c-bg);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	font-weight: 800;
	color: var(--c-text);
	margin: 0 0 .75rem;
}

/* =========================================================================
   SKIP LINK
   ========================================================================= */
.skip-link {
	position: absolute;
	top: -999px;
	left: 1rem;
	background: var(--c-primary);
	color: #fff;
	padding: .5rem 1rem;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	z-index: 9999;
	font-weight: 700;
}
.skip-link:focus { top: 0; }

/* =========================================================================
   LAYOUT
   ========================================================================= */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 2rem;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

/* =========================================================================
   HEADER – ZWEIZEILIG
   =========================================================================
   Zeile 1 (header-row-top):   Logo  |  Hauptmenü  |  Hamburger (mobil)
   Zeile 2 (header-row-search): ───────── Suchleiste ─────────────────────
   ========================================================================= */
.site-header {
	background: var(--c-header-bg);
	border-bottom: 2px solid var(--c-border);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 200;
}

/* Gemeinsames Zeilen-Layout */
.header-row-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
}

/* ── Zeile 1 ── */
.header-row-top { border-bottom: 1px solid var(--c-border-light); }
.header-row-top .header-row-inner {
	gap: 2rem;
	min-height: 64px;
}

/* Logo / Branding */
.site-branding { flex-shrink: 0; }
.site-title-link {
	display: flex;
	align-items: center;
	gap: .5rem;
	text-decoration: none;
}
.site-title {
	font-size: 1.65rem;
	font-weight: 900;
	color: var(--c-text);
	letter-spacing: -.03em;
	white-space: nowrap;
}
.site-title span { color: var(--c-primary); }

/* Navigation */
.main-navigation { flex: 1; }

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .1rem;
}

.main-navigation ul li { position: relative; }

.main-navigation ul li a {
	display: block;
	padding: .5rem .9rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--c-text);
	border-radius: var(--radius-sm);
	white-space: nowrap;
	transition: var(--transition);
	text-decoration: none;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
	background: var(--c-primary-bg);
	color: var(--c-primary);
}

/* Dropdown */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	background: var(--c-surface);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	min-width: 230px;
	z-index: 300;
	flex-direction: column;
	gap: 0;
	padding: .4rem;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul { display: flex; }
.main-navigation ul ul li a {
	padding: .55rem .9rem;
	border-radius: var(--radius-sm);
	font-size: .88rem;
}

/* Mobile Toggle – standardmäßig versteckt */
.menu-toggle {
	display: none;
	background: var(--c-primary-bg);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-sm);
	padding: .45rem .8rem;
	font-size: 1.2rem;
	cursor: pointer;
	color: var(--c-text);
	line-height: 1;
	margin-left: auto;
}

/* ── Zeile 2: Suchleiste ── */
.header-row-search {
	background: var(--c-header-search);
}
.header-row-search .header-row-inner {
	padding-top: .6rem;
	padding-bottom: .6rem;
}

.header-search { width: 100%; }
.header-search form {
	display: flex;
	align-items: center;
	background: var(--c-surface);
	border: 1.5px solid var(--c-border);
	border-radius: 999px;
	padding: .35rem .35rem .35rem 1.1rem;
	gap: .5rem;
	max-width: 680px;          /* zentriert, nicht zu breit */
	margin: 0 auto;
	transition: var(--transition);
}
.header-search form:focus-within {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(217,119,6,.15);
}
.search-icon {
	font-size: 1rem;
	color: var(--c-text-muted);
	flex-shrink: 0;
}
.header-search input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	font-size: .95rem;
	color: var(--c-text);
	outline: none;
	min-width: 0;
}
.header-search input[type="search"]::placeholder { color: var(--c-text-light); }
.header-search button {
	background: var(--c-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: .45rem 1.25rem;
	font-size: .88rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: var(--transition);
	flex-shrink: 0;
}
.header-search button:hover { background: var(--c-primary-dark); }

/* =========================================================================
   HERO
   ========================================================================= */
.site-hero {
	background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fef9f0 100%);
	border-bottom: 2px solid var(--c-border-light);
	padding: 5rem 2rem 4rem;
	text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--c-primary-bg);
	border: 1px solid var(--c-primary-light);
	color: var(--c-primary-dark);
	border-radius: 999px;
	padding: .35rem 1rem;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	margin-bottom: 1.5rem;
}
.hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.15;
	color: var(--c-text);
	margin-bottom: 1.25rem;
	letter-spacing: -.04em;
}
.hero-title em { color: var(--c-primary); font-style: normal; }
.hero-subtitle {
	font-size: 1.15rem;
	color: var(--c-text-muted);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}
.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 3rem;
}
.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
	padding-top: 2rem;
	border-top: 1px solid var(--c-border-light);
}
.trust-item {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .85rem;
	color: var(--c-text-muted);
	background: var(--c-surface);
	border: 1px solid var(--c-border-light);
	border-radius: var(--radius-md);
	padding: .45rem .9rem;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .9rem 2.25rem;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}
.btn-primary {
	background: var(--c-primary);
	color: #fff;
	border-color: var(--c-primary);
	box-shadow: var(--shadow-warm);
}
.btn-primary:hover {
	background: var(--c-primary-dark);
	border-color: var(--c-primary-dark);
	color: #fff;
	text-decoration: none;
}
.btn-secondary {
	background: var(--c-surface);
	color: var(--c-text);
	border-color: var(--c-border);
}
.btn-secondary:hover {
	background: var(--c-primary-bg);
	border-color: var(--c-primary);
	color: var(--c-primary);
	text-decoration: none;
}
.btn-ihht {
	background: var(--c-ihht);
	color: #fff;
	border-color: var(--c-ihht);
	box-shadow: 0 4px 16px rgba(220,38,38,.25);
}
.btn-ihht:hover {
	background: var(--c-ihht-dark);
	border-color: var(--c-ihht-dark);
	color: #fff;
	text-decoration: none;
}

/* =========================================================================
   IHHT SPOTLIGHT
   ========================================================================= */
.ihht-spotlight {
	background: linear-gradient(135deg, var(--c-ihht-bg) 0%, #fff5f5 100%);
	border-top: 4px solid var(--c-ihht);
	border-bottom: 4px solid var(--c-ihht);
	padding: 4.5rem 2rem;
}
.ihht-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 4rem;
	align-items: center;
}
.ihht-label {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--c-ihht);
	color: #fff;
	border-radius: 999px;
	padding: .3rem .9rem;
	font-size: .75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin-bottom: 1rem;
}
.ihht-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 900;
	color: var(--c-ihht-dark);
	line-height: 1.2;
	margin-bottom: 1rem;
}
.ihht-desc {
	font-size: 1rem;
	color: var(--c-text-muted);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}
.ihht-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
}
.ihht-benefits li {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	font-size: .95rem;
	color: var(--c-text);
}
.ihht-benefits li::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	min-width: 20px;
	background: var(--c-ihht);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-size: 12px;
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 2px;
}
.ihht-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.ihht-stat {
	background: var(--c-surface);
	border: 1.5px solid var(--c-ihht-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	text-align: center;
}
.ihht-stat-num {
	display: block;
	font-size: 2.25rem;
	font-weight: 900;
	color: var(--c-ihht);
	line-height: 1;
	margin-bottom: .4rem;
}
.ihht-stat-label { font-size: .82rem; color: var(--c-text-muted); }

/* =========================================================================
   THEMENGEBIETE
   ========================================================================= */
.topics-section {
	padding: 5rem 2rem;
	background: var(--c-bg);
}
.topics-inner { max-width: var(--max-width); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
	display: inline-block;
	background: var(--c-primary-bg);
	color: var(--c-primary-dark);
	border: 1px solid var(--c-primary-light);
	border-radius: 999px;
	padding: .3rem 1rem;
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin-bottom: .75rem;
}
.section-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 900;
	color: var(--c-text);
	letter-spacing: -.03em;
	margin-bottom: .75rem;
}
.section-subtitle {
	font-size: 1.05rem;
	color: var(--c-text-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.7;
}

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

.topic-card {
	background: var(--c-surface);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	position: relative;
	overflow: hidden;
	transition: var(--transition);
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.topic-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
}
.topic-grundlagen::before { background: var(--c-primary); }
.topic-methoden::before   { background: var(--c-accent); }
.topic-anwendung::before  { background: #b45309; }
.topic-hacks::before      { background: var(--c-ihht); }

.topic-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-md);
	background: var(--c-primary-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}
.topic-methoden .topic-icon  { background: var(--c-accent-bg); }
.topic-anwendung .topic-icon { background: #fef3c7; }
.topic-hacks .topic-icon     { background: var(--c-ihht-bg); }

.topic-card-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.topic-card-desc  { font-size: .88rem; color: var(--c-text-muted); line-height: 1.6; margin-bottom: 1.25rem; }

.topic-links {
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.topic-links li a {
	font-size: .85rem;
	font-weight: 600;
	color: var(--c-primary);
	display: flex;
	align-items: center;
	gap: .3rem;
}
.topic-links li a::before { content: '›'; font-size: 1rem; }
.topic-methoden .topic-links li a  { color: var(--c-accent); }
.topic-anwendung .topic-links li a { color: #b45309; }
.topic-hacks .topic-links li a     { color: var(--c-ihht); }
.topic-links li a:hover { text-decoration: underline; }

.topic-more {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-size: .85rem;
	font-weight: 700;
	color: var(--c-primary);
	border-top: 1px solid var(--c-border-light);
	padding-top: 1rem;
}
.topic-methoden .topic-more  { color: var(--c-accent); }
.topic-anwendung .topic-more { color: #b45309; }
.topic-hacks .topic-more     { color: var(--c-ihht); }
.topic-more:hover { text-decoration: underline; }

/* =========================================================================
   BLOG SECTION
   ========================================================================= */
.blog-section {
	background: var(--c-surface-warm);
	border-top: 2px solid var(--c-border-light);
	padding: 5rem 2rem;
}
.blog-inner { max-width: var(--max-width); margin: 0 auto; }

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin-top: 2rem;
}

.post-card {
	background: var(--c-surface);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.post-card-thumb-link { display: block; }
.post-card-thumb-link img,
.post-card-thumb-placeholder {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}
.post-card-thumb-placeholder {
	background: linear-gradient(135deg, var(--c-primary-bg), var(--c-accent-bg));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
}
.post-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.post-card-meta {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: .8rem;
	color: var(--c-text-muted);
	margin-bottom: .75rem;
	flex-wrap: wrap;
}
.post-card-cat {
	background: var(--c-primary-bg);
	color: var(--c-primary-dark);
	border-radius: 999px;
	padding: .2rem .7rem;
	font-weight: 700;
	font-size: .75rem;
	text-decoration: none;
}
.post-card-cat:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.post-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; margin-bottom: .6rem; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--c-primary); text-decoration: none; }
.post-card-excerpt { font-size: .88rem; color: var(--c-text-muted); line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }
.post-card-read-more {
	font-size: .88rem;
	font-weight: 700;
	color: var(--c-primary);
	display: flex;
	align-items: center;
	gap: .3rem;
	margin-top: auto;
}
.post-card-read-more:hover { text-decoration: underline; }

/* Pagination */
.pagination { margin-top: 3rem; text-align: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 .75rem;
	border-radius: var(--radius-sm);
	border: 1.5px solid var(--c-border);
	font-size: .9rem;
	font-weight: 600;
	color: var(--c-text);
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
	text-decoration: none;
}

/* =========================================================================
   SINGLE / PAGE
   ========================================================================= */
.single-main, .page-main { padding: 3.5rem 2rem; }

.single-article, .page-article {
	max-width: var(--content-width);
	margin: 0 auto;
}
.entry-header { margin-bottom: 2rem; }
.entry-meta {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: .85rem;
	color: var(--c-text-muted);
	margin-bottom: .75rem;
	flex-wrap: wrap;
}
.entry-cat {
	background: var(--c-primary-bg);
	color: var(--c-primary-dark);
	border-radius: 999px;
	padding: .2rem .7rem;
	font-weight: 700;
	font-size: .78rem;
}
.entry-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.2;
}
.entry-thumbnail { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumbnail img { width: 100%; }

.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 { font-size: 1.65rem; margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 2rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content a  { color: var(--c-primary); }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content blockquote {
	border-left: 4px solid var(--c-primary);
	padding: 1rem 1.5rem;
	background: var(--c-primary-bg);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	margin: 1.5rem 0;
	font-style: italic;
}
.entry-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border-light); }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tag {
	background: var(--c-surface-warm);
	border: 1px solid var(--c-border);
	color: var(--c-text-muted);
	border-radius: 999px;
	padding: .25rem .75rem;
	font-size: .8rem;
}
.entry-tag:hover { background: var(--c-primary-bg); color: var(--c-primary); text-decoration: none; }

.post-navigation { max-width: var(--content-width); margin: 2.5rem auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--c-surface);
	border: 1.5px solid var(--c-border);
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
}
.post-navigation a { font-size: .9rem; font-weight: 600; color: var(--c-text); }
.post-navigation a:hover { color: var(--c-primary); text-decoration: none; }

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .35rem;
	font-size: .82rem;
	color: var(--c-text-muted);
	margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); text-decoration: none; }
.breadcrumb-sep { color: var(--c-text-light); }
.breadcrumb span[aria-current] { color: var(--c-text); font-weight: 600; }

/* =========================================================================
   ARCHIVE / SEARCH
   ========================================================================= */
.archive-main, .search-main { padding: 3.5rem 2rem; }
.archive-header, .search-header { max-width: var(--max-width); margin: 0 auto 2.5rem; }
.archive-title, .search-title { font-size: 2rem; font-weight: 900; }
.search-title span { color: var(--c-primary); }
.archive-description { color: var(--c-text-muted); margin-top: .5rem; }
.search-form-wrap { margin-top: 1rem; max-width: 520px; }
.no-results { max-width: var(--max-width); margin: 0 auto; text-align: center; padding: 3rem 0; }
.no-results-links { margin-top: 2rem; text-align: left; }

/* =========================================================================
   404
   ========================================================================= */
.error-404-main { padding: 5rem 2rem; }
.error-404 { max-width: 560px; margin: 0 auto; text-align: center; }
.error-404-icon { font-size: 4rem; margin-bottom: 1rem; }
.error-404-title { font-size: 6rem; font-weight: 900; color: var(--c-primary); line-height: 1; margin-bottom: .5rem; }
.error-404-subtitle { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.error-404-desc { color: var(--c-text-muted); margin-bottom: 2rem; }
.error-404-links { text-align: left; }
.error-404-links ul { margin-top: .75rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
	background: var(--c-footer-bg);
	color: var(--c-footer-text);
}
.footer-widgets-area {
	padding: 4rem 2rem 3rem;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-widgets-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 3.5rem;
}
.footer-brand { margin-bottom: 1.5rem; }
.footer-logo-text {
	display: inline-block;
	font-size: 1.65rem;
	font-weight: 900;
	color: #fff;
	letter-spacing: -.03em;
	margin-bottom: .75rem;
	text-decoration: none;
}
.footer-logo-text span { color: var(--c-footer-link); }
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.7; margin: 0; }

.widget-title {
	color: var(--c-footer-heading);
	font-size: .9rem;
	font-weight: 800;
	margin-bottom: 1rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid rgba(253,230,138,.2);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.footer-col .widget { margin-bottom: 2rem; }
.footer-col .widget:last-child { margin-bottom: 0; }
.footer-col .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.footer-col .widget ul li a {
	font-size: .88rem;
	color: rgba(255,255,255,.7);
	display: flex;
	align-items: center;
	gap: .35rem;
	transition: var(--transition);
}
.footer-col .widget ul li a::before { content: '›'; color: var(--c-footer-link); font-size: 1rem; }
.footer-col .widget ul li a:hover { color: var(--c-footer-link); text-decoration: none; }

.footer-bottom { padding: 1.5rem 2rem; }
.footer-bottom-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.footer-copyright { font-size: .82rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-legal-nav { display: flex; gap: 1.5rem; }
.footer-legal-nav a { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-legal-nav a:hover { color: var(--c-footer-link); text-decoration: none; }

/* =========================================================================
   RESPONSIVE – TABLET  ≤ 1024px
   ========================================================================= */
@media (max-width: 1024px) {
	.topics-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-grid   { grid-template-columns: repeat(2, 1fr); }
	.ihht-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
	.footer-widgets-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
	.footer-col-3 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* =========================================================================
   RESPONSIVE – MOBIL  ≤ 768px
   ========================================================================= */
@media (max-width: 768px) {

	/* Header Zeile 1 */
	.header-row-top .header-row-inner { gap: 1rem; min-height: 56px; }

	/* Navigation: versteckt, per Toggle einblendbar */
	.main-navigation {
		order: 10;
		width: 100%;
	}
	.main-navigation ul {
		display: none;
		flex-direction: column;
		gap: 0;
		background: var(--c-surface);
		border: 1.5px solid var(--c-border);
		border-radius: var(--radius-md);
		padding: .5rem;
		margin-top: .25rem;
	}
	.main-navigation ul.toggled { display: flex; }
	.main-navigation ul ul {
		position: static;
		box-shadow: none;
		border: none;
		border-left: 3px solid var(--c-border-light);
		margin-left: 1rem;
		padding: .25rem 0 .25rem .5rem;
		border-radius: 0;
	}
	.main-navigation ul ul { display: flex; }
	.menu-toggle { display: block; }

	/* Header Zeile 1 – Wrapper für Toggle */
	.header-row-top .header-row-inner { flex-wrap: wrap; }

	/* Suchzeile */
	.header-row-search .header-row-inner { padding-top: .5rem; padding-bottom: .5rem; }
	.header-search form { max-width: 100%; }

	/* Hero */
	.site-hero { padding: 3rem 1.25rem 2.5rem; }
	.hero-cta { flex-direction: column; align-items: center; }
	.hero-cta .btn { width: 100%; max-width: 340px; }

	/* IHHT */
	.ihht-spotlight { padding: 2.5rem 1.25rem; }
	.ihht-stats { grid-template-columns: 1fr 1fr; }

	/* Topics */
	.topics-section { padding: 3rem 1.25rem; }
	.topics-grid { grid-template-columns: 1fr; }

	/* Blog */
	.blog-section { padding: 3rem 1.25rem; }
	.blog-grid { grid-template-columns: 1fr; }

	/* Single / Page */
	.single-main, .page-main { padding: 2rem 1.25rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }

	/* Footer */
	.footer-widgets-area { padding: 2.5rem 1.25rem 2rem; }
	.footer-widgets-inner { grid-template-columns: 1fr; gap: 2rem; }
	.footer-col-3 { grid-column: auto; display: block; }
	.footer-bottom { padding: 1.25rem; }
	.footer-bottom-inner { flex-direction: column; text-align: center; }
	.footer-legal-nav { justify-content: center; }

	/* Container */
	.container { padding: 0 1.25rem; }
}

/* =========================================================================
   WORDPRESS CORE CLASSES
   ========================================================================= */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: calc(var(--max-width) + 4rem); margin-left: auto; margin-right: auto; }

/* =========================================================================
   H1 SEITENÜBERSCHRIFT UNTERDRÜCKEN
   Auf Seiten (page.php) und Beiträgen (single.php) wird die H1-Überschrift
   nicht angezeigt – der Inhalt bringt seine eigene Überschrift mit.
   ========================================================================= */
.page-article .entry-header,
.single-article .entry-header { display: none; }

/* Breadcrumb bleibt sichtbar */
.page-main .breadcrumb,
.single-main .breadcrumb { display: flex; }

.alignfull  { max-width: 100%; width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--c-text-muted); text-align: center; margin-top: .5rem; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
	height: 1px; width: 1px;
	overflow: hidden;
	word-wrap: normal;
}
.screen-reader-text:focus {
	clip: auto;
	height: auto; width: auto;
	position: static;
	overflow: visible;
}
