/*
Theme Name: BZ Architekten
Author: ceylos.com
Description: Eigenständiges Theme für BZ Architekten – kein Parent-Theme.
Version: 1.1.0
Text Domain: bz-architekten
*/

/* ============================
   FONTS
   ============================ */

/* Jost (Variable, 100–900), lokal gehostet – SIL Open Font License */
@font-face {
    font-family: "Jost";
    src: url("Fonts/jost/jost-latin-ext-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Jost";
    src: url("Fonts/jost/jost-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================
   CUSTOM PROPERTIES
   ============================ */

:root {
    --color-black:      #111111;
    --color-dark:       #2a2a2a;
    --color-mid:        #666666;
    --color-light:      #999999;
    --color-border:     #e0e0e0;
    --color-bg:         #ffffff;
    --color-bg-soft:    #f7f7f7;
    --color-accent:     #c8a84b;   /* Gold */
    --color-dark-bg:    #1e1e1e;

    --font-main:        "Jost", "Futura PT", Futura, "Century Gothic", Arial, sans-serif;
    --font-size-base:   16px;
    --line-height:      1.7;

    --header-height:    100px;
    --max-width:        1400px;
    --gutter:           clamp(20px, 4vw, 60px);
    --section-gap:      clamp(60px, 8vw, 120px);

    /* Einheitliche Abstände im oberen Seitenbereich (alle Unterseiten) */
    --abstand-hero-oben:   clamp(32px, 3.5vw, 48px);
    --abstand-hero-unten:  clamp(28px, 3vw, 40px);
    --abstand-inhalt-oben: clamp(28px, 3vw, 40px);
    --transition:       0.25s ease;
}

/* ============================
   RESET & BASE
   ============================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    line-height: var(--line-height);
    color: var(--color-dark);
    background: var(--color-bg) !important;
    -webkit-font-smoothing: antialiased;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

html {
    background: var(--color-bg) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--color-black);
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h4 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--color-mid); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

/* ============================
   LAYOUT
   ============================ */

.breite {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ============================
   BUTTONS
   ============================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: #fff;
}

/* ============================
   HEADER
   ============================ */

#masthead {
    position: sticky;
    top: 0;
    z-index: 500;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Logo */
/* Logo nimmt gut ein Drittel der Kopfzeile ein (min. 322 px, max. 530 px) */
.site-logo {
    flex: 0 0 auto;
    width: clamp(322px, 37%, 530px);
    margin-right: 32px;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-name {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: normal;
}

/* ============================
   NAVIGATION
   ============================ */

#site-navigation ul {
    display: flex;
    align-items: center;
    gap: 0;
}

#site-navigation > ul > li {
    position: relative;
}

#site-navigation > ul > li > a {
    display: block;
    padding: 8px 18px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark);
    transition: color var(--transition);
}

#site-navigation > ul > li > a:hover,
#site-navigation > ul > li.current-menu-item > a,
#site-navigation > ul > li.current-menu-ancestor > a {
    color: var(--color-accent);
}

/* Kontakt als Button */
#site-navigation > ul > li.menu-item-kontakt > a,
#site-navigation > ul > li:nth-last-child(2) > a {
    border: 1px solid var(--color-dark);
    padding: 10px 24px;
    margin-left: 12px;
}

#site-navigation > ul > li:nth-last-child(2) > a:hover {
    background: var(--color-dark);
    color: #fff;
}

/* Login dezent */
#site-navigation > ul > li:last-child > a {
    color: var(--color-light);
    font-size: 0.85rem;
    padding: 8px 0 8px 18px;
}

#site-navigation > ul > li:last-child > a:hover {
    color: var(--color-mid);
}

/* Dropdown */
#site-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 320px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-black);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex-direction: column;
    align-items: stretch;
}

#site-navigation ul li:hover > ul {
    display: flex;
}

#site-navigation ul ul li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-align: left;
    color: var(--color-dark) !important;
    transition: background var(--transition);
    white-space: normal;
}

#site-navigation ul ul li:last-child a {
    border-bottom: none;
}

#site-navigation ul ul li a:hover {
    background: var(--color-bg-soft);
}

/* Burger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    z-index: 600;
}

.menu-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================
   HERO SECTION
   ============================ */

.hero-section {
    position: relative;
    overflow: hidden;
}

/* Slider im Hero */
.hero-section .your-slider {
    display: block;
}

.hero-section .your-slider .slick-slide img,
.hero-section .your-slider img {
    width: 100%;
    height: 80vh;
    min-height: 480px;
    max-height: 860px;
    object-fit: cover;
    display: block;
}

/* Slick: kein zusätzlicher Abstand unter dem Slider (sonst grauer Streifen unter dem Overlay) */
.hero-section .slick-dotted.slick-slider { margin-bottom: 0; }

/* Slider-Navigation: feine Linien unten rechts statt Punkte */
.hero-section .slick-dots {
    bottom: clamp(28px, 4vh, 44px);
    left: auto;
    right: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
    width: auto;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-section .slick-dots li {
    width: 32px;
    height: 20px;
    margin: 0;
}

.hero-section .slick-dots li button {
    width: 32px;
    height: 20px;
    padding: 0;
}

.hero-section .slick-dots li button::before {
    content: '';
    top: 9px;
    left: 0;
    width: 32px;
    height: 2px;
    background: #fff;
    opacity: 0.45;
    transition: opacity var(--transition), background var(--transition);
}

.hero-section .slick-dots li button:hover::before { opacity: 0.85; }

.hero-section .slick-dots li.slick-active button::before {
    background: var(--color-accent);
    opacity: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.55) 38%,
        rgba(0,0,0,0.28) 65%,
        rgba(0,0,0,0.08) 100%
    );
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.hero-content {
    pointer-events: auto;
    padding-bottom: clamp(48px, 9vh, 110px);
    max-width: none;
    text-align: center;
}

/* Headline (z. B. „Architekten | Generalplaner“): weiß, Großbuchstaben */
.hero-headline {
    font-size: clamp(1.9rem, 3.6vw, 3.2rem);
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0 0 clamp(14px, 2vh, 24px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

/* Label (z. B. „Von der Idee zum Werk“): darunter, groß, gold, gesperrt */
.hero-label {
    font-size: clamp(1.9rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 400;
    margin: 0 0 24px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-text { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }

.hero-text {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================
   PROJECT FILTER BAR
   ============================ */

.project-filter {
    background: var(--color-dark-bg);
    padding: 0;
}

.project-filter-inner {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
}

.project-filter-inner::-webkit-scrollbar { display: none; }

.filter-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666;
    white-space: nowrap;
    padding-right: 28px;
    flex-shrink: 0;
}

.filter-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.filter-list li a {
    display: block;
    padding: 16px 20px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #aaa;
    white-space: nowrap;
    transition: color var(--transition);
    border-left: 1px solid #333;
}

.filter-list li a:hover {
    color: #fff;
}

.filter-list li:first-child a {
    border-left: none;
}

/* ============================
   STATS BAR
   ============================ */

.stats-bar {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(var(--stats-anzahl, 4), 1fr);
    padding-top: 0;
    padding-bottom: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 36px 20px;
    border-right: 1px solid var(--color-border);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--color-black);
    letter-spacing: -0.01em;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-mid);
    line-height: 1.5;
}

/* ============================
   HOME CONTENT
   ============================ */

.homecontent {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

/* ============================
   STARTSEITE: TEXT-BILD-BLOCK (template-parts/expertise.php)
   Stil wie die früheren Kompetenz-Reihen: Bild links, Text rechts, goldene Kennzeichnung
   ============================ */

.start-block {
    padding-top: clamp(48px, 6vw, 88px);
    padding-bottom: clamp(56px, 7vw, 104px);
}

/* Optionale Überschrift über den Kompetenz-Kacheln (Startseite) */
.start-komp-kopf {
    padding-top: clamp(40px, 5vw, 72px);
    border-top: 1px solid var(--color-border);
}

.start-block + .start-komp-kopf { margin-top: 0; }

.start-komp-titel {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0;
}

.start-block--bild {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 96px);
    align-items: center;
}

.start-block:not(.start-block--bild) .start-block-text { max-width: 900px; }

.start-block-bild { overflow: hidden; aspect-ratio: 16 / 9.3; background: var(--color-bg-soft); }
.start-block-bild a, .start-block-bild img { display: block; width: 100%; height: 100%; }
.start-block-bild img { object-fit: cover; transition: transform 0.6s ease; }
.start-block-bild a:hover img { transform: scale(1.03); }

.start-block-kenn {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a6d1f;
    margin-bottom: 18px;
}

.start-block-kenn::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.start-block-titel {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--color-black);
    margin: 0 0 14px;
}

.start-block-inhalt { font-size: 1.1rem; line-height: 1.75; color: var(--color-dark); }
.start-block-inhalt p { margin: 0 0 1em; }
.start-block-inhalt p:last-child { margin-bottom: 0; }
.start-block-inhalt h2, .start-block-inhalt h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }

.start-block-mehr {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a6d1f;
    text-decoration: none;
}

.start-block-mehr::after { content: ' →'; }
.start-block-mehr:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .start-block--bild { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================
   KOMPETENZKACHEL
   ============================ */

.kompetenzkachel {
    background: var(--color-bg-soft);
}

/* ============================
   PAGE CONTENT
   ============================ */

.entry-content {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    max-width: 860px;
}

/* ============================
   PROJEKTE — SINGLE
   ============================ */

.projektwrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(40px, 5vw, 80px);
    max-width: var(--max-width);
    margin: var(--abstand-hero-oben) auto var(--section-gap);
    padding: 0 var(--gutter);
    align-items: start;
}

.project-thumbnail {
    margin-bottom: 32px;
}

.project-thumbnail img {
    width: 100%;
    height: auto;
}

.project-title h1 {
    margin-bottom: 28px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.project-description {
    color: var(--color-mid);
    line-height: 1.85;
    margin-bottom: 32px;
}

.project-description p { color: var(--color-mid); }

/* Sidebar rechts */
.projektrechts {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 32px;
    background: var(--color-bg-soft);
    border-top: 2px solid var(--color-black);
}

.projektrechts > div {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.projektrechts > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.projektrechts h3 {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-light);
    margin-bottom: 4px;
}

.projektrechts p {
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================
   PROJEKTBILDER
   ============================ */

.projektbilder-wrap {
    max-width: var(--max-width);
    margin: 0 auto clamp(40px, 6vw, 80px);
    padding: 0 var(--gutter);
    columns: 3;
    column-gap: 12px;
}

.projektbild-item {
    break-inside: avoid;
    margin-bottom: 12px;
    overflow: hidden;
}

.projektbild-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.projektbild-item:hover img {
    transform: scale(1.03);
}

/* ============================
   PARTNER / AUFTRAGGEBER
   ============================ */

.partner-section,
.auftraggeber-section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    border-top: 1px solid var(--color-border);
}

.partner-section h3,
.auftraggeber-section h3 {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 28px;
}

.partner-intro {
    margin-bottom: 40px;
    color: var(--color-mid);
    max-width: 600px;
}

.partner-list,
.auftraggeber-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px 64px;
}

.partner-item img,
.auftraggeber-item img {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.partner-item:hover img,
.auftraggeber-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================
   KOMPETENZEN-ÜBERSICHT (page-kompetenzen.php)
   ============================ */

.kompetenzen-intro {
    padding-top: var(--abstand-inhalt-oben);
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 900px;
}

.kompetenzen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 48px);
    padding-top: var(--abstand-inhalt-oben);
    padding-bottom: var(--section-gap);
}

.kompetenz-card {
    display: flex;
    flex-direction: column;
    color: var(--color-black);
    text-decoration: none;
}

.kompetenz-card-bild {
    aspect-ratio: 16 / 9;
    background: var(--color-bg-soft);
    overflow: hidden;
    margin-bottom: 24px;
}

.kompetenz-card-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.kompetenz-card:hover .kompetenz-card-bild img { transform: scale(1.04); }

.kompetenz-card-title {
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 12px;
    transition: color var(--transition);
}

.kompetenz-card:hover .kompetenz-card-title { color: #8a6d1f; }

.kompetenz-card-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-dark);
    margin: 0 0 18px;
}

.kompetenz-card-more {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a6d1f;
}

.kompetenz-card-more::after {
    content: ' →';
    transition: margin-left var(--transition);
}

.kompetenz-card:hover .kompetenz-card-more::after { margin-left: 6px; }

@media (max-width: 1100px) {
    .kompetenzen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .kompetenzen-grid { grid-template-columns: 1fr; }
}

/* ============================
   TEAM-ÜBERSICHT (template-parts/team-grid.php)
   ============================ */

.team-grid-section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    border-top: 1px solid var(--color-border);
}

.team-grid-title {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 28px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px clamp(24px, 3vw, 48px);
}

.team-card-bild {
    aspect-ratio: 4 / 5;
    background: var(--color-bg-soft);
    overflow: hidden;
    margin-bottom: 20px;
}

.team-card-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.team-card-name {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--color-black);
    margin-bottom: 4px;
}

.team-card-bezeichnung {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--color-dark);
}

a.team-card-bild { display: block; }
a.team-card-bild img { transition: transform 0.5s ease; }
a.team-card-bild:hover img { transform: scale(1.04); }
.team-card-name a { color: inherit; text-decoration: none; transition: color var(--transition); }
.team-card--profil:hover .team-card-name a { color: #8a6d1f; }
.team-card--profil .team-card-name a::after { content: ' →'; color: #8a6d1f; }

/* ============================
   PROFILSEITE ANSPRECHPARTNER (single-ansprechpartner.php)
   ============================ */

.profil-person {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    padding-top: var(--abstand-hero-oben);
    padding-bottom: var(--section-gap);
}

.profil-person-name {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 8px;
}

.profil-person-bezeichnung {
    font-size: 1.1rem;
    color: var(--color-mid);
    margin: 0 0 20px;
}

.profil-person-kontakt {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 36px;
}

.profil-person-kontakt > div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.profil-person-kontakt .bz-icon { color: #8a6d1f; }

.profil-person-kontakt a {
    color: #8a6d1f;
    text-decoration: none;
}

.profil-person-kontakt a:hover { text-decoration: underline; }

.profil-person-lebenslauf.entry-content {
    padding: 0;
    margin: 0;
}

/* Lebenslauf: Jahreszahl (fett im Editor) als feste Spalte */
.profil-person-lebenslauf p {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    column-gap: 16px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 10px;
}

.profil-person-lebenslauf p > strong:first-child {
    font-weight: 400;
    color: var(--color-black);
}

.profil-person-back {
    display: inline-block;
    margin-top: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a6d1f;
    text-decoration: none;
}

.profil-person-back::before { content: '← '; }

.profil-person-bild img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .profil-person { grid-template-columns: 1fr; }
    .profil-person-bild { order: -1; max-width: 280px; }
    .profil-person-lebenslauf p { grid-template-columns: 70px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}

/* ============================
   PROJEKTAUSWAHL (ACF „Projektauswahl“)
   ============================ */

.projekte-auswahl {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    border-top: 1px solid var(--color-border);
}

.projekte-auswahl-title {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 28px;
}

.projekte-auswahl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px clamp(24px, 4vw, 80px);
}

.projekte-auswahl-item {
    display: block;
    color: var(--color-black);
    text-decoration: none;
}

.projekte-auswahl-bild {
    aspect-ratio: 16 / 9.3;
    background: var(--color-bg-soft);
    overflow: hidden;
    margin-bottom: 26px;
}

.projekte-auswahl-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.projekte-auswahl-item:hover .projekte-auswahl-bild img { transform: scale(1.04); }

.projekte-auswahl-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.55;
    transition: color var(--transition);
}

.projekte-auswahl-item:hover .projekte-auswahl-name { color: #8a6d1f; }

@media (max-width: 1100px) {
    .projekte-auswahl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .projekte-auswahl-grid { grid-template-columns: 1fr; }
}

/* ============================
   RELATED
   ============================ */

.related-section {
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--color-border);
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.related-section h3 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-light);
    margin-bottom: 40px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.related-item:hover img { opacity: 0.8; }

.related-item h4 {
    font-size: 0.85rem;
    font-weight: normal;
    letter-spacing: 0.04em;
}

/* ============================
   BEITRÄGE
   ============================ */

.beitraege-section {
    margin-top: clamp(40px, 5vw, 64px);
}

.beitraege-title {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 24px;
}

.beitraege-list {
    border-top: 1px solid var(--color-border);
}

.beitrag-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-black);
    text-decoration: none;
}

.beitrag-bild {
    aspect-ratio: 16 / 10;
    background: var(--color-bg-soft);
    overflow: hidden;
}

.beitrag-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.beitrag-item:hover .beitrag-bild img { transform: scale(1.04); }

.beitrag-titel {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 8px;
    transition: color var(--transition);
}

.beitrag-item:hover .beitrag-titel { color: #8a6d1f; }

.beitrag-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-dark);
    margin: 0 0 12px;
}

.beitrag-more {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a6d1f;
}

.beitrag-more::after { content: ' →'; }

/* Seitenbild als Hero (wenn kein Slider gepflegt) */
.page-hero-image img {
    width: 100%;
    height: clamp(320px, 30vw, 560px);
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .beitrag-item { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================
   FOOTER
   ============================ */

#main-footer {
    margin-top: var(--section-gap);
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    width: 100%;
}

/* Footer 4-spaltig */
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 56px;
}

.footer-col-title {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-mid);
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    line-height: 1;
    margin-bottom: 14px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-link-accent {
    color: var(--color-accent) !important;
}

/* Logo-Spalte */
.footer-logo {
    display: block;
    margin-bottom: 24px;
    text-decoration: none;
}

.footer-logo-img {
    max-height: 40px;
    width: auto;
}

.footer-site-name {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-black);
}

.footer-address {
    font-size: 0.85rem;
    color: var(--color-mid);
    line-height: 1.9;
    font-style: normal;
}

.footer-address a {
    color: var(--color-mid);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-address a:hover { color: var(--color-accent); }

.footer-placeholder {
    color: var(--color-light);
}

/* Footer Bodenzeile */
.footer-bottom {
    border-top: 1px solid var(--color-border);
}

.footer-bottom-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-mid);
    letter-spacing: 0.03em;
    margin: 0;
}

/* ========================
   INNER PAGE HERO
   ======================== */

.page-slider {
    width: 100%;
    overflow: hidden;
}

.page-slider .slick-slide img,
.page-slider img {
    width: 100%;
    height: clamp(320px, 30vw, 560px);
    object-fit: cover;
    display: block;
}

/* ============================
   INNER PAGE HERO (Titel + Untertitel)
   ============================ */

.inner-hero {
    padding: var(--abstand-hero-oben) 0 var(--abstand-hero-unten);
    border-bottom: 1px solid var(--color-border);
}

.inner-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
}

.inner-hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a6d1f;   /* dunkleres Gold für Kontrast */
    margin-bottom: 12px;
    font-weight: 500;
}

.inner-hero-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}

/* Ohne Untertitel nutzt der Titel die volle Breite */
.inner-hero-title:only-child { grid-column: 1 / -1; }

.inner-hero-title h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.06;
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.inner-hero-subtitle {
    padding-top: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6px;
}

.inner-hero-subtitle p {
    font-size: 1.5rem;
    line-height: 1.75;
    color: var(--color-dark);
    margin: 0;
}

/* ============================
   INNER PAGE 2-SPALTEN-LAYOUT
   ============================ */

.inner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(48px, 6vw, 96px);
    padding-top: var(--abstand-inhalt-oben);
    padding-bottom: clamp(40px, 5vw, 64px);
    align-items: start;
}

.inner-layout.inner-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.inner-layout--full .inner-content {
    max-width: 900px;
}

/* SUBHEADLINE (ACF-Feld „Kompetenzkachel“ / abschnitt3) */
.inner-subheadline {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-black);
    letter-spacing: -0.01em;
    margin: 0 0 1.4em;
}

/* LINKS: Inhalt */
.inner-content .entry-content {
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.9;
}

.inner-content .entry-content p {
    margin-bottom: 1.5em;
}

.inner-content .entry-content h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    margin-top: 2.2em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.inner-content .entry-content h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    line-height: 1.3;
}

.inner-content .entry-content > h2:first-child {
    margin-top: 0;
}

.inner-content .entry-content > h2:first-child::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: 24px;
}

.inner-content .entry-content ul,
.inner-content .entry-content ol {
    padding-left: 0;
    margin-bottom: 1.5em;
}

.inner-content .entry-content li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 0.4em;
    line-height: 1.8;
}

/* Aufzählung: kurzer goldener Strich (Linien-Motiv der Seite) */
.inner-content .entry-content ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 10px;
    height: 2px;
    background: var(--color-accent);
}

/* Nummerierung: goldene Ziffern */
.inner-content .entry-content ol { counter-reset: bz-ol; }
.inner-content .entry-content ol > li { counter-increment: bz-ol; }
.inner-content .entry-content ol > li::before {
    content: counter(bz-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 500;
    color: #8a6d1f;
}

/* RECHTE SIDEBAR */
.inner-sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.sidebar-widget {
    padding: 28px 28px 26px;
    background: var(--color-bg-soft);
    border-top: 2px solid var(--color-accent);
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-mid);
    font-weight: 500;
    margin: 0 0 22px;
}

.sidebar-stat {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-stat:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-stat-wert {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

.sidebar-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-mid);
    margin-top: 3px;
    line-height: 1.4;
}

/* Kontaktkarte */
.sidebar-contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.sidebar-contact-card:last-of-type { margin-bottom: 0; }

.contact-avatar {
    width: 72px;
    height: 72px;
    background: var(--color-border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.contact-avatar-initials {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-mid);
    letter-spacing: 0.05em;
}

.contact-info-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 4px;
    line-height: 1.3;
}

.contact-info-role {
    font-size: 0.95rem;
    color: var(--color-dark);
    margin: 0 0 8px;
    line-height: 1.45;
}

/* Kontakt-Symbole (Telefon, E-Mail, Profil) */
.bz-kontakt--icons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.bz-kontakt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-mid);
    background: #fff;
    transition: color var(--transition), border-color var(--transition);
}

.bz-kontakt--icons a.bz-kontakt-btn { color: var(--color-mid); }

.bz-kontakt-btn .bz-icon {
    width: 14px;
    height: 14px;
    stroke-width: 1.4;
}

.bz-kontakt--icons a.bz-kontakt-btn:hover,
.bz-kontakt--icons a.bz-kontakt-btn:focus-visible {
    color: #8a6d1f;
    border-color: #8a6d1f;
}

.bz-icon { display: block; flex-shrink: 0; }

a.contact-avatar { display: flex; }
a.contact-avatar img { transition: opacity var(--transition); }
a.contact-avatar:hover img { opacity: 0.85; }
.contact-info-name a { color: inherit; text-decoration: none; transition: color var(--transition); }
.contact-info-name a:hover { color: #8a6d1f; }

.contact-links a {
    color: #8a6d1f;   /* dunkleres Gold für Lesbarkeit auf hellem Grund */
    text-decoration: none;
}

.contact-links a:hover { text-decoration: underline; }

.contact-placeholder { color: var(--color-mid); }

/* ============================
   SCREEN-READER / SKIP
   ============================ */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1200px) {
    .inner-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 48px;
    }
}

@media (max-width: 1100px) {
    .projektwrap {
        grid-template-columns: 1fr 300px;
    }

    .projektbilder-wrap {
        columns: 2;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 28px 0;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--color-border);
        padding-right: var(--gutter);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .inner-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .inner-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .inner-sidebar-right {
        position: static;
    }
    .inner-sidebar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .sidebar-widget { margin-bottom: 0; }




    .projektwrap {
        grid-template-columns: 1fr;
    }

    .projektrechts {
        position: static;
    }

    .related-list {
        grid-template-columns: 1fr 1fr;
    }

    .hero-section .your-slider img {
        height: 60vw;
        min-height: 320px;
    }

    .hero-headline,
    .hero-label {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
    }
}

/* Zwischengrößen: Logo + Navigation passen nebeneinander */
@media (max-width: 1280px) and (min-width: 769px) {
    .site-logo { width: clamp(276px, 34.5%, 414px); margin-right: 20px; }
    #site-navigation > ul > li > a { font-size: 0.85rem; padding: 8px 12px; }
    #site-navigation > ul > li:nth-last-child(2) > a { padding: 9px 18px; }
    #site-navigation > ul > li:last-child > a { font-size: 0.75rem; padding-left: 12px; }
}

@media (max-width: 768px) {
    #site-navigation {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--color-bg);
        z-index: 550;
        padding: calc(var(--header-height) + 24px) var(--gutter) 40px;
        overflow-y: auto;
    }

    #site-navigation.open {
        display: block;
    }

    #site-navigation > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    #site-navigation > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    #site-navigation > ul > li > a {
        padding: 16px 0;
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    /* Kontakt-Button im Mobile-Menü normalisieren */
    #site-navigation > ul > li:nth-last-child(2) > a {
        border: none;
        padding: 16px 0;
        margin-left: 0;
    }

    #site-navigation ul ul {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        border-top: none;
        padding-left: 16px;
    }

    #site-navigation ul li.open > ul {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .project-filter-inner {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .filter-label {
        display: none;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    .projektbilder-wrap {
        columns: 1;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid var(--color-border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Footer-Adresse: Leerzeile zwischen Anschrift und Kontakt */
.footer-address-lines,
.footer-address-contact { display: block; }
.footer-address-contact { margin-top: 1em; }

/* ============================
   KATEGORIESEITEN (category.php)
   ============================ */

/* Projekt-Raster wie Referenz: Titel in normaler Schreibweise, gesperrt */
.projekte-auswahl--kategorie {
    border-top: none;
    padding-top: var(--abstand-inhalt-oben);
}

.projekte-auswahl--kategorie .projekte-auswahl-grid {
    gap: clamp(48px, 5vw, 80px) clamp(24px, 4vw, 72px);
}

.projekte-auswahl--kategorie .projekte-auswahl-bild { margin-bottom: 18px; }

.projekte-auswahl--kategorie .projekte-auswahl-name {
    text-transform: none;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.kategorie-beitraege {
    margin-top: 0;
    padding-top: var(--abstand-inhalt-oben);
    padding-bottom: var(--section-gap);
    max-width: calc(900px + 2 * var(--gutter));
}

.kategorie-leer {
    padding-top: var(--abstand-inhalt-oben);
    padding-bottom: var(--section-gap);
    color: var(--color-mid);
}

/* Kompetenz-Seite: Projekt-Raster mit Linie und Überschrift */
.projekte-auswahl--kompetenz {
    border-top: 1px solid var(--color-border);
    padding-top: var(--section-gap);
}

/* ============================
   ARBEITSÜBERSICHT PROJEKTE (page-uebersicht.php)
   ============================ */

.uebersicht {
    padding-top: var(--abstand-inhalt-oben);
    padding-bottom: var(--section-gap);
}

.uebersicht-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.uebersicht-tabelle th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mid);
    padding: 12px 16px 12px 0;
    border-bottom: 2px solid var(--color-accent);
}

.uebersicht-tabelle td {
    padding: 11px 16px 11px 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.uebersicht-nr { white-space: nowrap; font-variant-numeric: tabular-nums; width: 110px; }
.uebersicht-komp { width: 32%; }
.uebersicht-status { width: 140px; white-space: nowrap; }
.uebersicht-tabelle .uebersicht-bilder { width: 80px; text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }

.uebersicht-tabelle a { color: var(--color-black); text-decoration: none; border-bottom: 1px solid var(--color-border); }
.uebersicht-tabelle a:hover { color: #8a6d1f; border-bottom-color: #8a6d1f; }
.uebersicht-komp a { color: #8a6d1f; border-bottom: none; font-variant-numeric: tabular-nums; }
.uebersicht-komp a:hover { text-decoration: underline; }
.uebersicht-leer { color: var(--color-light); }

.uebersicht-status span {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.is-online .uebersicht-status span { color: #3f6b3a; }
.is-entwurf .uebersicht-status span { color: #8a6d1f; }
.is-fehlt .uebersicht-status span { color: #a23a2c; }
.is-fehlt .uebersicht-name { color: var(--color-mid); }

.uebersicht-summe {
    margin-top: 20px;
    color: var(--color-mid);
}

.uebersicht-legende {
    margin-top: 48px;
}

.uebersicht-legende h3 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mid);
    margin: 0 0 12px;
}

.uebersicht-legende ol {
    list-style: decimal;
    padding-left: 1.6em;
    columns: 2;
    column-gap: 48px;
}

.uebersicht-legende li { margin-bottom: 4px; }
.uebersicht-legende a { color: var(--color-black); text-decoration: none; }
.uebersicht-legende a:hover { color: #8a6d1f; }

@media (max-width: 768px) {
    .uebersicht-tabelle { font-size: 0.9rem; }
    .uebersicht-komp { width: auto; }
    .uebersicht-legende ol { columns: 1; }
}

/* ============================
   DIASHOW / LIGHTBOX (assets/js/diashow.js)
   ============================ */

.bz-diashow-link {
    display: block;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

/* Kleines Lupen-Symbol beim Überfahren */
.bz-diashow-link::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6d1f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition);
}

.bz-diashow-link:hover::after,
.bz-diashow-link:focus-visible::after { opacity: 1; transform: none; }

.project-thumbnail .bz-diashow-link img { transition: transform 0.6s ease; }
.project-thumbnail .bz-diashow-link:hover img { transform: scale(1.02); }

html.bz-diashow-offen { overflow: hidden; }

.bz-diashow {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bz-diashow.is-open { opacity: 1; visibility: visible; }

.bz-diashow-figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 96px 24px;
}

.bz-diashow-figure img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease;
}

.bz-diashow.is-loading .bz-diashow-figure img { opacity: 0.25; }

.bz-diashow-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, 1200px);
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bz-diashow-counter { color: var(--color-accent); font-variant-numeric: tabular-nums; }

.bz-diashow button {
    position: absolute;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #fff;
}

.bz-diashow button:focus-visible { outline: 1px solid var(--color-accent); outline-offset: 6px; }

/* Schließen: feines X */
.bz-diashow-close {
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
}

.bz-diashow-close::before,
.bz-diashow-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 1.5px;
    background: currentColor;
    transition: background var(--transition);
}

.bz-diashow-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.bz-diashow-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.bz-diashow-close:hover::before,
.bz-diashow-close:hover::after { background: var(--color-accent); }

/* Pfeile: dünne Linien mit Spitze */
.bz-diashow-prev,
.bz-diashow-next {
    top: 50%;
    width: 64px;
    height: 64px;
    margin-top: -32px;
}

.bz-diashow-prev { left: 16px; }
.bz-diashow-next { right: 16px; }

.bz-diashow-prev::before,
.bz-diashow-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transition: border-color var(--transition), transform var(--transition);
}

.bz-diashow-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.bz-diashow-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.bz-diashow-prev:hover::before { border-color: var(--color-accent); transform: translate(-50%, -50%) rotate(-45deg); }
.bz-diashow-next:hover::before { border-color: var(--color-accent); transform: translate(-50%, -50%) rotate(135deg); }

.bz-diashow.is-single .bz-diashow-prev,
.bz-diashow.is-single .bz-diashow-next { display: none; }

@media (max-width: 768px) {
    .bz-diashow-figure { padding: 64px 12px 20px; }
    .bz-diashow-prev,
    .bz-diashow-next { top: auto; bottom: 8px; margin-top: 0; }
    .bz-diashow-figure figcaption { padding-bottom: 56px; }
}

/* ============================
   KARTE (Zwei-Klick, [bz_karte])
   ============================ */

.bz-karte {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 32px 0 12px;
    background:
        linear-gradient(rgba(247, 247, 247, 0.9), rgba(247, 247, 247, 0.9)),
        repeating-linear-gradient(0deg, transparent 0 39px, #e4e4e4 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, #e4e4e4 39px 40px);
    border-top: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bz-karte iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.35);
}

.bz-karte-hinweis {
    max-width: 440px;
    padding: 24px;
}

.bz-karte-hinweis .bz-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    color: #8a6d1f;
}

.inner-content .entry-content .bz-karte-hinweis p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin: 0 0 16px;
}

.inner-content .entry-content .bz-karte-hinweis .bz-karte-titel {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 8px;
}

.bz-karte-laden {
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: #8a6d1f;
    border: 1px solid #8a6d1f;
    padding: 12px 26px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.bz-karte-laden:hover,
.bz-karte-laden:focus-visible { background: #fff; color: #8a6d1f; }

.bz-karte-merken {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--color-mid);
    cursor: pointer;
}

.inner-content .entry-content .bz-karte-route { font-size: 0.9rem; margin: 0 0 1.5em; }
.bz-karte-route a { color: #8a6d1f; text-decoration: none; }
.bz-karte-route a::after { content: ' →'; }
.bz-karte-route a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .bz-karte { aspect-ratio: 4 / 5; }
}

/* ============================
   KONTAKTSEITE: Adresse + Karte zweispaltig
   ============================ */

.inner-layout--full .inner-content:has(.kontakt-grid),
.inner-content .entry-content:has(.kontakt-grid) { max-width: none; }

.inner-content .entry-content .kontakt-unterzeile { margin-bottom: 2em; }

/* Erste Überschrift der Adressspalte ohne Abstand nach oben, damit sie mit der Karte bündig ist */
.kontakt-adresse > h3:first-child { margin-top: 0; }

.kontakt-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.kontakt-karte .bz-karte {
    margin-top: 0;
    aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
    .kontakt-grid { grid-template-columns: 1fr; }
    .kontakt-karte .bz-karte { aspect-ratio: 16 / 10; }
}

/* ============================
   MOBILES MENÜ (Burger) – Korrekturen
   ============================ */

@media (max-width: 768px) {
    /* backdrop-filter würde das fixierte Vollbild-Menü in die Kopfzeile einsperren */
    #masthead {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #fff;
    }

    /* Logo und Burger bleiben über dem geöffneten Menü sichtbar */
    .site-logo,
    .menu-toggle {
        position: relative;
        z-index: 600;
    }

    #site-navigation {
        z-index: 550;
    }

    /* Burger → X */
    .menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* Untermenüs untereinander, mit Plus/Minus am Elternpunkt */
    #site-navigation ul li.open > ul { flex-direction: column; padding-bottom: 12px; }

    #site-navigation > ul > li.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #site-navigation > ul > li.menu-item-has-children > a::after {
        content: '+';
        font-size: 1.4rem;
        line-height: 1;
        color: var(--color-accent);
        transition: transform var(--transition);
    }

    #site-navigation > ul > li.menu-item-has-children.open > a::after { transform: rotate(45deg); }

    #site-navigation ul ul li a {
        padding: 10px 0;
        font-size: 0.95rem;
    }
}

html.bz-menu-offen { overflow: hidden; }

/* Schmale Desktops/Tablets quer: Navigation kompakter, damit nichts überläuft */
@media (max-width: 1024px) and (min-width: 769px) {
    .site-logo { width: clamp(218px, 31%, 322px); margin-right: 12px; }
    #site-navigation > ul > li > a { font-size: 0.78rem; padding: 8px 9px; letter-spacing: 0.06em; }
    #site-navigation > ul > li:nth-last-child(2) > a { padding: 8px 14px; margin-left: 6px; }
    #site-navigation > ul > li:last-child { display: none; }
}

/* Handy: Logo füllt die Zeile neben dem Burger */
@media (max-width: 768px) {
    .site-logo { width: min(334px, calc(100% - 56px)); margin-right: 12px; }
}

/* ============================
   BUTTON IM SEITENINHALT (z. B. Login-Seite)
   ============================ */

.inner-content .entry-content .bz-button-wrap { margin: 2em 0; }

.inner-content .entry-content a.bz-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: #8a6d1f;
    border: 1px solid #8a6d1f;
    padding: 16px 30px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.inner-content .entry-content a.bz-button::after { content: '↗'; font-size: 1rem; letter-spacing: 0; }

.inner-content .entry-content a.bz-button:hover,
.inner-content .entry-content a.bz-button:focus-visible {
    background: #fff;
    color: #8a6d1f;
}

.inner-content .entry-content .bz-hinweis {
    font-size: 0.95rem;
    color: var(--color-mid);
}

/* ============================
   PROJEKT-DETAILSEITE (single-projekte.php) – ruhig und großzügig
   ============================ */

.projekt {
    padding-top: var(--abstand-hero-oben);
    padding-bottom: clamp(40px, 5vw, 72px);
}

.projekt-bild {
    margin: 0 0 clamp(32px, 4vw, 56px);
}

.projekt-bild a { display: block; }

.projekt-bild img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    object-fit: cover;
}

.projekt-kopf { margin-bottom: 24px; }

.projekt-kopf .projekt-bereich a { color: inherit; text-decoration: none; }
.projekt-kopf .projekt-bereich a:hover { text-decoration: underline; }

.projekt-kopf h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

.projekt .projekt-text.entry-content {
    padding: 0;
    max-width: none;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--color-dark);
}

.projekt .projekt-text p { margin-bottom: 1.2em; }

/* Fakten wie „Besondere Anforderungen“: kleine Überschrift, darunter der Wert */
.projekt-fakten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px 48px;
    margin: 36px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.projekt-fakt { margin: 0; }
.projekt-fakt--breit { grid-column: 1 / -1; }

.projekt-fakt dt {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mid);
    margin-bottom: 6px;
}

.projekt-fakt dd {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-black);
}

.projekt-fakt dd a { color: #8a6d1f; text-decoration: none; }
.projekt-fakt dd a:hover { text-decoration: underline; }

/* Handy: etwas mehr Seitenabstand */
@media (max-width: 600px) {
    :root { --gutter: 24px; }
}
