/*
Theme Name: WPDemo Blank
Theme URI: https://wpdemo.zennkoa.de
Author: zennkoa
Description: Eigenständiges Theme im modernen Non-Profit-Look – mit Hero-Slider, Projekt-Karten, Blog und großzügigem Footer.
Version: 2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wpdemo-blank
*/

/* =========================================================
   Design-Tokens
   ========================================================= */
:root {
    --color-primary: #e23744;
    --color-primary-dark: #c12533;
    --color-secondary: #1f9b8e;
    --color-secondary-dark: #167a70;

    --color-ink: #1f1f29;
    --color-body: #4d4d5a;
    --color-muted: #8b8b97;

    --color-bg: #ffffff;
    --color-bg-soft: #fbf4f2;
    --color-bg-rose: #fdedef;
    --color-bg-teal: #eef8f6;
    --color-border: #ececef;

    --color-dark: #1b1b24;
    --color-dark-soft: #24242f;
    --color-dark-line: #3a3a47;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --shadow-sm: 0 4px 14px rgba(25, 20, 35, 0.06);
    --shadow-md: 0 14px 36px rgba(25, 20, 35, 0.10);

    --max-width: 1200px;
    --gutter: 24px;
    --header-h: 84px;

    --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   Reset / Basis
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-body);
    background: var(--color-bg);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--color-ink);
    font-weight: 700;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

/* =========================================================
   Layout-Helfer
   ========================================================= */
.section {
    padding: 84px 0;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.full-bleed {
    width: 100%;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.eyebrow--light {
    color: #ffd2d6;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin: 0 0 0.4em;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 620px;
    margin: 0;
}

.section-head {
    margin-bottom: 48px;
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.section--soft {
    background: var(--color-bg-soft);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn,
button,
input[type="submit"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary,
button,
input[type="submit"],
.wp-block-button__link {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-ink);
}

.btn-ghost:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #fff;
}

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

.btn-outline-light:hover {
    background: #fff;
    color: var(--color-ink);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.text-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.text-link::after {
    content: " →";
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: height 0.25s ease;
}

.site-header.is-scrolled .site-header-inner {
    height: 68px;
}

.site-branding {
    display: flex;
    align-items: center;
    height: var(--header-h);
    overflow: hidden;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    height: var(--header-h);
    overflow: hidden;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    height: var(--header-h);
    overflow: hidden;
    line-height: 0;
}

.site-logo img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: max-height 0.25s ease;
}

.site-header.is-scrolled .site-branding,
.site-header.is-scrolled .brand-link,
.site-header.is-scrolled .site-logo {
    height: 68px;
}

.site-header.is-scrolled .site-logo img {
    max-height: 58px;
}

.site-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-ink);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--color-ink);
    position: relative;
    padding: 6px 0;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Dropdown-Menüs (Submenus) */
.main-navigation ul li {
    position: relative;
}

.main-navigation .menu-item-has-children {
    display: flex;
    align-items: center;
}

.sub-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 2px;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-ink);
    cursor: pointer;
}

.sub-menu-toggle svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.menu-item-has-children:hover > .sub-menu-toggle svg,
.menu-item-has-children.is-open > .sub-menu-toggle svg {
    transform: rotate(180deg);
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 6px;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu .menu-item-has-children {
    width: 100%;
    justify-content: space-between;
}

.sub-menu a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-body);
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.sub-menu a::after {
    display: none;
}

.sub-menu a:hover,
.sub-menu .current-menu-item > a {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-social {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

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

.header-social svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-donate:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-donate svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
}

/* Mobile-Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Hero-Slider
   ========================================================= */
.hero-slider {
    position: relative;
    height: clamp(460px, 72vh, 660px);
    overflow: hidden;
    background: var(--color-dark);
}

.slider-track {
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 7s ease;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(20, 14, 16, 0.82) 0%, rgba(20, 14, 16, 0.55) 45%, rgba(20, 14, 16, 0.15) 100%);
}

.slide-content {
    max-width: 640px;
}

.slide .hero-title {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 0.4em;
}

.slide .hero-lead {
    color: #f1ecea;
    font-size: 1.15rem;
    margin-bottom: 1.8em;
    max-width: 540px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.slider-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%);
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
}

.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
}

.slider-dot.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.15);
}

/* =========================================================
   Statistik-Banner
   ========================================================= */
.section--stats {
    background: var(--color-primary);
    padding: 56px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 0 16px;
}

.stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-icon {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    margin: 0 auto 12px;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.98rem;
    color: #ffe6e8;
}

/* =========================================================
   Media-Split (Über uns Teaser)
   ========================================================= */
.media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.media-split-image {
    position: relative;
}

.media-split-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.media-split-badge {
    position: absolute;
    right: -18px;
    bottom: -18px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.media-split-badge-number {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
}

.media-split-badge-text {
    display: block;
    font-size: 0.82rem;
    margin-top: 4px;
}

.checklist {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    color: var(--color-body);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-bg-teal);
}

.checklist li svg {
    position: absolute;
    left: 5px;
    top: 7px;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--color-secondary);
}

/* =========================================================
   Projekte
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.project-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.06);
}

.project-body {
    padding: 26px 24px 28px;
}

.project-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}

.project-body p {
    color: var(--color-muted);
    margin-bottom: 1em;
}

/* =========================================================
   Carousel (Aktuelles)
   ========================================================= */
.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

@media (min-width: 700px) {
    .carousel-item { flex: 0 0 calc(50% - 14px); }
}

@media (min-width: 1000px) {
    .carousel-item { flex: 0 0 calc(33.333% - 19px); }
}

.carousel-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.carousel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item:hover .carousel-media img {
    transform: scale(1.06);
}

.carousel-body {
    padding: 22px 22px 26px;
}

.carousel-body h3 {
    font-size: 1.2rem;
    margin: 6px 0 0;
}

.carousel-body h3 a {
    color: var(--color-ink);
}

.carousel-body h3 a:hover {
    color: var(--color-primary);
}

.carousel-controls {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: center;
}

.carousel-controls button {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.carousel-controls button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.carousel-controls svg {
    width: 20px;
    height: 20px;
}

/* =========================================================
   Newsletter
   ========================================================= */
.section--newsletter {
    padding-top: 0;
}

.newsletter-box {
    background: var(--color-secondary);
    background-image: linear-gradient(120deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border-radius: var(--radius);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.newsletter-text h2 {
    color: #fff;
    margin-bottom: 0.3em;
}

.newsletter-text p {
    color: #e2f5f2;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 280px;
    max-width: 460px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 22px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn-primary {
    background: var(--color-ink);
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    background: #000;
}

/* =========================================================
   Inhalt: Blog / Seiten
   ========================================================= */
.content-area-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px var(--gutter);
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: 290px;
    flex-shrink: 0;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 0 0 0.3em;
}

.archive-description {
    color: var(--color-muted);
}

/* Beitragsliste */
.post-list {
    display: grid;
    gap: 36px;
}

.post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.post-card .entry-thumbnail {
    margin: 0;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.post-card .entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .entry-title,
.post-card .entry-meta,
.post-card .entry-content,
.post-card .read-more {
    margin-left: 30px;
    margin-right: 30px;
}

.post-card .entry-title {
    margin-top: 24px;
    font-size: 1.5rem;
}

.post-card .entry-title a {
    color: var(--color-ink);
}

.post-card .entry-title a:hover {
    color: var(--color-primary);
}

.post-card .read-more {
    display: inline-block;
    margin-bottom: 26px;
    font-family: var(--font-head);
    font-weight: 600;
}

.entry-meta {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.entry-meta a {
    color: var(--color-muted);
}

/* Single / Page */
.entry-header {
    margin-bottom: 24px;
}

article.page .entry-title,
article.single .entry-title,
.single .content-area > article .entry-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.entry-thumbnail {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-content {
    font-size: 1.06rem;
}

.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }

.entry-content img {
    border-radius: var(--radius);
}

.wp-block-image figcaption,
.wp-element-caption {
    color: var(--color-muted);
    font-size: 0.88rem;
    text-align: center;
    margin-top: 8px;
}

.entry-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font-family: var(--font-head);
    font-weight: 600;
}

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

/* =========================================================
   Sidebar / Widgets
   ========================================================= */
.widget {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 26px 24px;
    margin-bottom: 28px;
}

.widget-title {
    margin-top: 0;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

/* =========================================================
   Formulare
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-ink);
    background: #fff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(226, 55, 68, 0.15);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
}

/* =========================================================
   Kommentare
   ========================================================= */
.comments-area {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    color: #c7c7d0;
    font-size: 0.96rem;
}

.footer-main {
    background: var(--color-dark);
    border-top: 4px solid var(--color-primary);
}

.footer-cta {
    border-bottom: 1px solid var(--color-dark-line);
}

.footer-cta-inner {
    padding: 48px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-cta-text h2 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.7rem;
}

.footer-cta-text p {
    margin: 0;
    color: #b6b6c2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 44px;
    padding: 56px 0;
}

.footer-col .footer-logo img {
    max-height: 56px;
    margin-bottom: 18px;
    background: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.footer-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-col p {
    color: #b6b6c2;
}

.footer-heading {
    position: relative;
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 22px;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
}

.footer-col a {
    color: #c7c7d0;
}

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

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a::before {
    content: "›";
    color: var(--color-primary);
    font-weight: 700;
}

.footer-bank {
    background: var(--color-dark-soft);
    border-left: 3px solid var(--color-secondary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 0 0 18px;
    font-size: 0.92rem;
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-dark-soft);
    color: #fff;
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-primary);
    margin-top: 3px;
}

.footer-bottom {
    background: #14141b;
}

.footer-bottom-inner {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: #8b8b97;
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: #8b8b97;
}

.footer-legal a:hover {
    color: #fff;
}

/* =========================================================
   Utility
   ========================================================= */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .media-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 12px var(--gutter) 24px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .main-navigation.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation a {
        display: block;
        padding: 14px 0;
    }

    .main-navigation a::after {
        display: none;
    }

    /* Dropdown-Menüs (mobil als Akkordeon) */
    .main-navigation .menu-item-has-children {
        flex-wrap: wrap;
    }

    .main-navigation .menu-item-has-children > a {
        flex: 1;
    }

    .sub-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .sub-menu {
        position: static;
        width: 100%;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--color-bg-soft);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .menu-item-has-children.is-open > .sub-menu {
        max-height: 600px;
    }

    .sub-menu .sub-menu {
        background: var(--color-bg);
    }

    .sub-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .sub-menu li:last-child {
        border-bottom: none;
    }

    .sub-menu a {
        padding: 12px 0 12px 18px;
    }

    .header-actions {
        margin-top: 18px;
        justify-content: space-between;
    }

    .content-area-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .widget-area {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 56px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stat-item + .stat-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        padding-top: 24px;
    }

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

    .newsletter-box {
        padding: 32px 24px;
    }

    .newsletter-form {
        max-width: none;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }

    .media-split-badge {
        right: 16px;
    }
}
