




@font-face {
    font-family: 'Heebo';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/heebo-v3-latin-300.woff2') format('woff2'),
         url('../fonts/heebo-v3-latin-300.woff') format('woff'),
         url('../fonts/heebo-v3-latin-300.ttf') format('truetype');
}

@font-face {
    font-family: 'Heebo';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/heebo-v3-latin-regular.woff2') format('woff2'),
         url('../fonts/heebo-v3-latin-regular.woff') format('woff'),
         url('../fonts/heebo-v3-latin-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Heebo';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/heebo-v3-latin-700.woff2') format('woff2'),
         url('../fonts/heebo-v3-latin-700.woff') format('woff'),
         url('../fonts/heebo-v3-latin-700.ttf') format('truetype');
}

@font-face {
    font-family: 'icons';
    font-weight: normal;
    font-style: normal;
    font-display: block;
    src: url('../fonts/icons.woff2') format('woff2'),
         url('../fonts/icons.woff') format('woff'),
         url('../fonts/icons.ttf') format('truetype'),
         url('../fonts/icons.svg#icons') format('svg');
}


.icon {
    font-family: 'icons';
    font-style: normal;
    font-weight: normal;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.icon-slider-down::before   { content: "\f101"; }
.icon-slider-left::before   { content: "\f102"; }
.icon-slider-right::before  { content: "\f103"; }
.icon-slider-up::before     { content: "\f104"; }




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

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 30px;
    margin: 0 0 20px 0;
}

h2 {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

h3 {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    margin: 0 0 10px 0;
}

p {
    margin: 0 0 16px 0;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

ul, ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

ul li, ol li {
    margin-bottom: 4px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

input, textarea, select, button {
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    font-size: 14px;
}

button {
    cursor: pointer;
}




#wrapper {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
    padding-bottom: 42px;
}

.page-content {
    padding: 40px 45px;
}

.page-content--narrow {
    padding: 40px 45px;
    max-width: 800px;
}

.impressum-dl {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 6px 20px;
    font-size: 14px;
    line-height: 1.8;
}
.impressum-dl dt { color: #999; font-weight: 300; }
.impressum-dl dd { margin: 0; }

@media (max-width: 480px) {
    .impressum-dl { grid-template-columns: 1fr; gap: 2px; }
    .impressum-dl dt { margin-top: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
}

.section {
    margin-bottom: 60px;
}

.container {
    padding: 0 45px;
}




#header {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100;
    padding: 10px 45px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#header::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
    background: #fff;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 70px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}


#main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

#main-nav li {
    margin: 0;
}

#main-nav li + li {
    margin-left: 40px;
}

#main-nav a {
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
    display: block;
    padding: 4px 0;
}

#main-nav a:hover {
    text-decoration: none;
    opacity: 0.6;
}

#main-nav li.active a,
#main-nav a.active {
    font-weight: 700;
}


#filter-nav li.active a,
#filter-nav a.active {
    font-weight: 700;
}

.toolbar-filter-select {
    border: none;
    padding-left: 0;
    font-size: 12px;
    font-weight: 300;
    color: #000;
    background: transparent;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 18px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}


ul.toolbar-filter {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #ddd;
    padding-left: 16px;
    gap: 0;
}
ul.toolbar-filter li + li::before {
    content: '|';
    color: #ccc;
    margin: 0 8px;
    font-weight: 300;
    font-size: 12px;
}
ul.toolbar-filter a {
    font-size: 12px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}
ul.toolbar-filter a:hover { opacity: 0.6; }
ul.toolbar-filter a.active { font-weight: 700; }


#hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 200;
    position: relative;
}

#hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

#hamburger span:nth-child(1) { margin-bottom: 5px; }
#hamburger span:nth-child(2) { }
#hamburger span:nth-child(3) { margin-top: 5px; }


body.menu-open #hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.menu-open #hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.menu-open #hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}




#mmenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 30px 40px;
    display: flex;
    flex-direction: column;
}

.mmenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mmenu-logo {
    display: block;
    line-height: 0;
}

.mmenu-logo img {
    height: 36px;
    width: auto;
}

#mmenu-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #000;
    padding: 0 4px;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}
#mmenu-close:hover { opacity: 1; }

.mmenu-contact {
    margin-top: auto;
    padding-top: 30px;
    font-size: 12px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mmenu-contact p {
    margin: 0 0 6px 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mmenu-contact a {
    color: #666;
    text-decoration: none;
}

.mmenu-contact a:hover {
    color: #000;
}

.mmenu-contact__firm {
    font-weight: 400;
    color: #000;
    margin-bottom: 10px !important;
}

.mmenu-contact__copy {
    margin-top: 16px !important;
    color: #aaa;
    font-size: 11px;
}

#mmenu.is-open {
    transform: translateX(0);
}

#mmenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.menu-open #mmenu-overlay {
    opacity: 1;
    pointer-events: all;
}

body.menu-open {
    overflow: hidden;
}

#mmenu nav ul {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

#mmenu nav ul li {
    border-bottom: none;
}

#mmenu nav ul li:first-child {
    border-top: none;
}

#mmenu nav ul li a {
    display: block;
    padding: 14px 0;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    font-size: 16px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.03em;
}

#mmenu nav ul li.active a,
#mmenu nav ul li a.active {
    font-weight: 700;
}

#mmenu .mmenu-filter {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

#mmenu .mmenu-filter li {
    margin-bottom: 6px;
}

#mmenu .mmenu-filter a {
    font-size: 13px;
    font-weight: 300;
    color: #666;
}

#mmenu .mmenu-filter li.active a {
    font-weight: 700;
    color: #000;
}

#mmenu .mmenu-filter-select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
    margin-bottom: 0;
}

li.mmenu-filters-item {
    padding: 0;
    border: none;
}
li.mmenu-filters-item a { display: none; }
.mmenu-filters {
    margin-bottom: 8px;
    margin-top: 2px;
}
.mmenu-news-filter {
    display: flex;
    gap: 20px;
    padding: 4px 0 16px;
}
.mmenu-news-filter__link {
    font-size: 14px;
    font-weight: 300;
    color: #aaa;
    text-decoration: none;
}
.mmenu-news-filter__link.active {
    color: #000;
    font-weight: 700;
}
.mmenu-filter-group {
    margin-bottom: 14px;
}
.mmenu-filter-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}




/* View-Toolbar */
.view-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 16px;
    padding: 10px 45px;
    position: sticky;
    top: 124px;
    z-index: 50;
    background: #fff;
}
.header-right .view-toolbar {
    position: static;
    top: auto;
    padding: 0;
    background: transparent;
    z-index: auto;
    gap: 12px;
}
.toolbar-filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.toolbar-filter-label {
    font-size: 9px;
    font-weight: 300;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.view-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
}
.view-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    display: flex;
    align-items: center;
    height: 100%;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.view-btn:hover { opacity: 0.7; }
.view-btn.active { opacity: 1; }
.view-btn svg { display: block; }

/* Container-Steuerung */
.projects-container.view-list  .projects-grid { display: none; }
.projects-container.view-grid  .projects-list { display: none; }

/* Kachelansicht — Masonry via explizite Spalten */
.projects-grid {
    display: flex;
    gap: 20px;
    padding: 0 45px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.projekt {
    width: 100%;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.projekt.img-ready {
    opacity: 1;
}

.projekt-thumb-img {
    transition: transform 0.4s ease;
}

.projekt.hidden {
    display: none;
}

.projekt.fade-out {
    opacity: 0;
    pointer-events: none;
}


@keyframes kda-pulse {
    0%, 100% { transform: scale(0.7); opacity: 0.2; }
    50%       { transform: scale(1.2); opacity: 0.8; }
}

@keyframes kda-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.img-wrap {
    position: relative;
    overflow: hidden;
}

.img-wrap img.lazy {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.img-wrap img.lazy.loaded {
    opacity: 1;
    transform: scale(1);
}


.img-wrap--hero {
    width: 100%;
    position: relative;
}

.img-wrap--hero img {
    width: 100%;
    height: auto;
    display: block;
}

.img-bg-wrap {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.img-bg-wrap.img-loaded {
    opacity: 1;
    transform: scale(1);
}


.projekt .thumb {
    width: 100%;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.projekt-thumb-img {
    width: 100%;
    height: auto;
    display: block;
}

.projekt:hover .projekt-thumb-img {
    transform: scale(1.03);
}


.projekt .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.projekt:hover .thumb::after {
    background: rgba(0, 0, 0, 0.06);
}

.projekt .info {
    margin-top: 6px;
    font-size: 11px;
}

.projekt .titel {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.3;
    color: #000;
}

.projekt .meta {
    color: #666;
    font-size: 12px;
    font-weight: 300;
}

.projekt a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.projekt a:hover {
    text-decoration: none;
}


.filter-header {
    padding: 30px 45px 10px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-header h1 {
    margin: 0 30px 0 0;
}


.no-results {
    padding: 40px 45px;
    font-size: 14px;
    color: #666;
    display: none;
    text-align: center;
}

.no-results.visible {
    display: block;
}

.paged-out { display: none !important; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 20px 28px 40px;
}
.page-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #000;
    transition: background 0.15s, border-color 0.15s;
    min-width: 36px;
}
.page-btn:hover { background: transparent; }
.page-btn.active { background: #000; color: #fff; border-color: #000; }

/* Listenansicht */
.projects-list {
    margin-bottom: 60px;
}

/* Shared grid template — guarantees header/row column alignment */
.plist-header,
.plist-row {
    display: grid;
    grid-template-columns: 136px minmax(0, 1.4fr) minmax(0, 0.75fr) 52px minmax(0, 1.8fr) 90px 90px;
    align-items: center;
    padding: 0 45px;
    text-decoration: none;
    color: #000;
    gap: 0;
}

.plist-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    padding-top: 10px;
    padding-bottom: 10px;
    position: fixed;
    top: var(--header-h, 100px);
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
}

.plist-row {
    width: 100%;
    font-size: 13px;
    transition: background 0.15s;
    min-height: 92px;
    opacity: 1;
}

.plist-row:hover { background: #f8f8f8; }
.plist-row.hidden { display: none; }

.plist-col { padding-right: 16px; min-width: 0; overflow: hidden; line-height: 1.4; }
.plist-col--name,
.plist-col--ort,
.plist-col--bauherr {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}
.plist-col--jahr,
.plist-col--flaeche,
.plist-col--status { white-space: nowrap; }
.plist-col--thumb   { padding-right: 12px; overflow: visible; }
.plist-col--name    { font-weight: 400; }
.plist-col--kat     { color: #555; }
.plist-col--ort     { color: #555; }
.plist-col--jahr    { color: #555; }
.plist-col--bauherr { color: #555; }
.plist-col--flaeche { color: #555; }
.plist-col--status  { color: #555; padding-right: 0; }

.plist-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 16px !important;
}
.plist-sortable::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #ccc;
    opacity: 0.4;
}
.plist-sortable:hover::before { opacity: 0.7; }
.plist-sortable.sort-asc::before {
    border-bottom: 5px solid #000;
    border-top: none;
    opacity: 1;
}
.plist-sortable.sort-desc::before {
    border-top: 5px solid #000;
    border-bottom: none;
    opacity: 1;
}

.plist-thumb {
    width: 120px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}


.projekt-detail {
    padding-bottom: 80px;
}

.projekt-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
    align-items: start;
}

.projekt-hero {
    padding: 6px 0 40px 45px;
    background: #fff;
}

.projekt-detail-content {
    padding: 0 45px 40px 0;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
    overflow-wrap: break-word;
    hyphens: none;
}

.projekt-info-table {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
    font-size: 14px;
    line-height: 1.6;
}

.pi-title {
    grid-column: 1 / -1;
    font-size: 30px;
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.2;
}

.pi-row {
    display: contents;
}

.pi-label {
    font-weight: 400;
    white-space: nowrap;
    color: #666;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.pi-value {
    font-size: 14px;
    line-height: 1.6;
}

.projekt-volltextbeschreibung,
.news-volltextbeschreibung {
    transition: opacity 0.25s ease;
}

.projekt-description,
.news-description {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}
.projekt-description *,
.news-description * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
.projekt-description b, .projekt-description strong,
.news-description b, .news-description strong {
    font-weight: 700 !important;
}

.projekt-kurzbeschreibung {
    margin-bottom: 12px;
    font-weight: 300 !important;
}
.projekt-kurzbeschreibung * { font-weight: 300 !important; }
.projekt-kurzbeschreibung b,
.projekt-kurzbeschreibung strong { font-weight: 700 !important; }

.news-kurzbeschreibung {
    margin-bottom: 12px;
    font-weight: 300 !important;
}
.news-kurzbeschreibung * { font-weight: 300 !important; }
.news-kurzbeschreibung b,
.news-kurzbeschreibung strong { font-weight: 700 !important; }

.projekt-mehr-link,
.news-mehr-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    line-height: 1.2;
    transition: opacity 0.15s;
}

.projekt-mehr-link:hover,
.news-mehr-link:hover { opacity: 0.5; }

.projekt-description h1,
.news-description h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.projekt-description p,
.news-description p {
    margin-bottom: 16px;
}


.projekt-gallery {
    padding: 0 45px 60px;
    margin-top: 20px;
}

.gallery-grid {
    columns: 4;
    column-gap: 8px;
}

.gallery-grid--2col {
    columns: 2;
}

.gallery-item {
    break-inside: avoid;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    position: relative;
    margin-bottom: 12px;
}

.gallery-item .img-wrap {
    height: auto;
    min-height: 80px;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

.gallery-item .img-wrap .gallery-img {
    height: auto;
}

.gallery-caption {
    font-size: 12px;
    color: #666;
    margin: 6px 0 0;
    line-height: 1.4;
    text-align: left;
}

.detail-back {
    padding: 20px 45px 0;
    font-size: 13px;
}

.detail-back a {
    color: #666;
    font-weight: 300;
}

.detail-back a:hover {
    color: #000;
}

.detail-back a::before {
    content: '← ';
}

/* Projekt-Navigation (Vor/Zurück) */
.projekt-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding: 40px 45px;
}
.projekt-nav__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: #000;
    width: 220px;
}
.projekt-nav__item--next { align-items: flex-end; text-align: right; margin-left: auto; }
.projekt-nav__thumb {
    width: 220px;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}
.projekt-nav__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.projekt-nav__label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.projekt-nav__name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}
.projekt-nav__item:hover .projekt-nav__name { text-decoration: underline; }




.team-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 30px;
    margin-bottom: 20px;
}

.team-member {
    width: 25%;
    padding: 8px 15px 15px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}
.team-member--bio {
    cursor: pointer;
}
.team-member--bio:hover .photo {
    opacity: .85;
}
.team-member--bio .photo {
    transition: opacity .25s;
}
.team-member--bio .photo::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") center/20px no-repeat;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity .2s;
}
.team-member--bio:hover .photo::after {
    opacity: 1;
}

#team-modal {
    opacity: 0;
    transition: opacity .22s ease;
}

.team-member .photo {
    flex: 0 0 100%;
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center top;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.team-member .name {
    font-weight: 400;
    font-size: clamp(10px, 1.3vw, 15px);
    order: 2;
}

.team-member .role {
    font-size: clamp(10px, 1.3vw, 15px);
    color: inherit;
    font-weight: 400;
    order: 1;
    margin-right: 5px;
}

.team-member .email {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.team-member .email a {
    color: #666;
}

.team-member .email a:hover {
    color: #000;
}


.office-hero {
    width: 100%;
    margin-bottom: 0;
}

.img-wrap--office-hero {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

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

.team-grid--management .team-member {
    width: 16.666%;
}

.team-grid--staff .team-member {
    width: 16.666%;
}

.office-section {
    padding: 20px 45px 0;
}

.office-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 40px;
}

.office-images img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.office-text {
    max-width: 700px;
    font-size: 14px;
    line-height: 1.7;
}




.kontakt-cta {
    padding: 80px 45px;
    text-align: center;
}

.kontakt-cta__inner {
    max-width: 680px;
    margin: 0 auto;
}

.kontakt-cta__heading {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 48px;
    line-height: 1.3;
}

.kontakt-cta__contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.kontakt-cta__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    padding: 0 48px;
    transition: opacity 0.2s;
}

.kontakt-cta__item:hover { opacity: 0.6; }

.kontakt-cta__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.kontakt-cta__value {
    font-size: 18px;
    font-weight: 300;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

.kontakt-cta__divider {
    width: 1px;
    height: 48px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.kontakt-cta__address {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    font-weight: 300;
}

.kontakt-cta__address p { margin: 0; }

/* --- Kontakt Projektraster --- */
.contact-projects {
    padding: 0 45px 60px;
}

.contact-proj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    opacity: 1;
    transition: opacity 0.4s ease;
    min-height: 160px;
}

.contact-proj-grid.fading { opacity: 0; }

.contact-proj-item {
    display: block;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: #111;
}

.contact-proj-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.contact-proj-item:hover .contact-proj-img { transform: scale(1.05); }

.contact-proj-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 14px 12px;
    font-size: 12px;
    font-weight: 300;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    line-height: 1.4;
}

/* --- Kategorie-Navigationsleiste (Work-Seite) --- */
.kat-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 44px;
    background: #fff;
    position: sticky;
    top: 80px;
    z-index: 90;
    box-sizing: border-box;
}

.kat-nav__scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0 45px;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kat-nav__scroll::-webkit-scrollbar { display: none; }

.kat-nav__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 100%;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}

.kat-nav__arrow:hover { color: #000; }
.kat-nav__arrow--prev { padding-left: 14px; }
.kat-nav__arrow--next { padding-right: 14px; }
.kat-nav__arrow.hidden { visibility: hidden; pointer-events: none; }

.kat-nav__link {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-right: -0.09em;
    color: #aaa;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s, font-weight 0.1s;
    white-space: nowrap;
    line-height: 1;
}

.kat-nav__link.active,
.kat-nav__link:hover { color: #000; font-weight: 700; }

/* News search */
/* News container view toggle */
.news-container.view-grid  .news-list-view { display: none; }
.news-container.view-list  .news-grid      { display: none; }

/* News Grid */
.news-grid {
    display: flex;
    gap: 20px;
    padding: 0 37px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.news-grid .masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.news-card {
    width: 100%;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.news-card.img-ready { opacity: 1; }

.news-card.hidden { display: none; }
.news-card.paged-out { display: none !important; }

.news-card a { display: block; color: #000; text-decoration: none; }

.news-card__thumb {
    width: 100%;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    margin-bottom: 10px;
}

/* Spinner solange Bild nicht fertig */

.news-thumb-img {
    width: 100%;
    display: block;
}

.news-card__thumb--empty { background: transparent; }

.news-card__date {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.news-card__titel {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-card:hover .news-card__titel { opacity: 0.6; }

/* News List View */
.news-list-view {
    margin-bottom: 60px;
}

.nlist-header,
.nlist-row {
    display: grid;
    grid-template-columns: 160px 100px 1fr;
    align-items: center;
    padding: 0 45px;
    gap: 0;
    text-decoration: none;
    color: #000;
}

.nlist-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    padding-top: 10px;
    padding-bottom: 10px;
    position: fixed;
    top: var(--header-h, 100px);
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
}

.nlist-row {
    font-size: 15px;
    min-height: 100px;
    transition: background 0.15s;
}

.nlist-row:hover { background: #f8f8f8; }
.nlist-row.hidden { display: none; }
.nlist-row.paged-out { display: none !important; }

.nlist-col { padding-right: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist-col--thumb { padding-right: 12px; overflow: visible; }
.nlist-col--datum { color: #999; }
.nlist-col--titel { white-space: normal; line-height: 1.4; }

.nlist-thumb {
    width: 130px;
    height: 86px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: block;
}

.nlist-sortable { cursor: pointer; user-select: none; position: relative; padding-left: 16px !important; }
.nlist-sortable::before { content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 4px solid #ccc; opacity: 0.4; }
.nlist-sortable:hover::before { opacity: 0.7; }
.nlist-sortable.sort-asc::before  { border-bottom: 5px solid #000; border-top: none; opacity: 1; }
.nlist-sortable.sort-desc::before { border-top: 5px solid #000; border-bottom: none; opacity: 1; }

.news-no-results { display: none; }
.news-no-results.visible { display: block; }


.contact-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #000;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #000;
    color: #fff;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #000;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-outline {
    background: transparent;
    color: #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}


.form-message {
    margin-top: 14px;
    font-size: 13px;
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #c62828;
}






/* --- News Detail — zwei­spaltig --- */
.news-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
}

.news-top__img {
    padding: 6px 0 40px 45px;
}

.img-wrap--news-hero {
    width: 100%;
    position: relative;
}

.img-wrap--news-hero.img-wrap--placeholder {
    aspect-ratio: 4/3;
}

.img-wrap--news-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.news-top__content {
    padding: 0 45px 40px 0;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
}

.news-detail-date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.news-detail-titel {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    margin: 0 0 0;
}

.news-detail-kurztitel {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.5;
    margin: 0 0 0;
}

.news-detail-text {
    font-size: 14px;
    line-height: 1.85;
    font-weight: 300;
    color: #222;
    text-align: left;
    hyphens: none;
}

.news-detail-gallery {
    padding: 0 45px 20px;
    margin-top: 20px;
}

.page-news-detail .projekt-nav {
    padding-top: 20px;
}

/* --- Andere News --- */
.news-andere {
    padding: 0 45px 60px;
    border-top: 1px solid #e8e8e8;
    margin-top: 20px;
    padding-top: 40px;
}

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

.news-andere__item {
    display: block;
    text-decoration: none;
    color: #000;
}

.news-andere__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: transparent;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.news-andere__thumb--empty { background: transparent; }

.news-andere__date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.news-andere__titel {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: opacity 0.2s;
}

.news-andere__item:hover .news-andere__titel { opacity: 0.6; }


.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 45px;
    margin-bottom: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 13px;
    color: #000;
    border: 1px solid transparent;
    text-decoration: none;
}

.pagination a:hover {
    border-color: #ccc;
}

.pagination .current {
    font-weight: 700;
    border-color: #000;
}




#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px 45px;
    font-size: 11px;
    font-weight: 300;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    background: #fff;
    z-index: 49;
}

#footer a {
    color: #666;
    text-decoration: none;
}

#footer a:hover {
    color: #000;
}

#footer .footer-links {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.footer-address {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}






#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lightbox-caption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 300;
    text-align: center;
    padding: 10px 20px 0;
    max-width: 80vw;
    line-height: 1.5;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    user-select: none;
}

#lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}

#lightbox-close:hover {
    opacity: 1;
}

#lightbox-prev,
#lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }

#lightbox-prev:hover,
#lightbox-next:hover {
    opacity: 1;
}

#lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 300;
    z-index: 1001;
}

#lightbox-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

#lightbox-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
}

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

#page-transition {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#page-transition.active {
    opacity: 1;
    pointer-events: all;
}

#page-transition-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: auto;
    animation: kda-pulse 1.6s ease-in-out infinite;
}




.password-page {
    min-height: 100vh;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px 20px;
}


body.page-password #wrapper {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-password #header {
    display: none;
}

.password-card {
    width: 100%;
    max-width: 380px;
    padding: 50px 40px;
    border: 1px solid #e0e0e0;
}

.password-card .logo-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.password-card .logo-wrap img {
    height: 50px;
    width: auto;
    margin: 0 auto;
}

.password-card h2 {
    font-size: 16px;
    font-weight: 300;
    text-transform: none;
    text-align: center;
    margin-bottom: 28px;
    color: #444;
    letter-spacing: 0;
}

.password-card .form-group input {
    text-align: center;
    letter-spacing: 2px;
    font-size: 16px;
}

.password-card .btn {
    width: 100%;
    display: block;
    text-align: center;
}

.password-error {
    text-align: center;
    font-size: 13px;
    color: #c62828;
    margin-top: 12px;
    display: none;
}

.password-error.visible {
    display: block;
}




body.page-admin #header {
    display: none;
}

body.page-admin #wrapper {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.admin-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 50px 40px;
}

.admin-login-card .admin-logo {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-card .admin-logo img {
    height: 45px;
    width: auto;
    margin: 0 auto;
}

.admin-login-card h1 {
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-login-card .btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px;
}

.admin-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    border-left: 3px solid;
}

.admin-alert.error {
    border-color: #c62828;
    color: #c62828;
    background: #fff5f5;
}

.admin-alert.success {
    border-color: #2e7d32;
    color: #2e7d32;
    background: #f5fff5;
}


.admin-bar {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.admin-bar a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    margin-left: 16px;
}

.admin-bar a:hover {
    opacity: 0.7;
}




.reveal {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reveal.visible {
    opacity: 1;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ===== HOME PAGE ===== */

.home-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: #111;
}

.home-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.home-slide.active {
    opacity: 1;
    pointer-events: all;
}

.home-slide__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.home-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 6s ease;
    will-change: transform;
}

.home-slide.active .home-slide__bg {
    transform: scale(1);
}

.home-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.home-slide__info {
    position: absolute;
    bottom: 80px;
    left: 45px;
    right: 45px;
    color: #fff;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.7s ease 0.3s, opacity 0.7s ease 0.3s;
}

.home-slide.active .home-slide__info {
    transform: translateY(0);
    opacity: 1;
}

.home-slide__meta {
    display: flex;
    gap: 20px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.home-slide__meta span + span::before {
    content: '·';
    margin-right: 20px;
}

.home-slide__name {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
}

/* Dots */
.home-slider__dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: background 0.2s;
}

.slider-arrow:hover { background: rgba(255,255,255,0.25); }
.slider-arrow--prev { left: 20px; }
.slider-arrow--next { right: 20px; }

/* News section */
.home-news {
    padding: 60px 45px;
    border-top: 1px solid #e8e8e8;
}

.home-news__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
}

.home-news__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.home-news__all {
    font-size: 12px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}

.home-news__all:hover { opacity: 0.5; }

.home-news__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.home-news__item {
    display: block;
    text-decoration: none;
    color: #000;
}

.home-news__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: transparent;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.home-news__thumb--empty { background: transparent; }

.home-news__date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.home-news__titel {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.home-news__item:hover .home-news__titel { opacity: 0.6; }

.home-news__teaser {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

/* CTA */
.home-cta {
    padding: 80px 45px;
    background: #fff;
    text-align: center;
}

.home-cta__inner {
    max-width: 560px;
    margin: 0 auto;
}

.home-cta__text {
    font-size: 20px;
    font-weight: 300;
    color: #000;
    margin: 0 0 32px;
    line-height: 1.5;
}

.home-cta__btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}

.home-cta__btn:hover {
    background: #000;
    color: #fff;
}



@media (max-width: 1170px) {
    .view-switcher { display: none; }
}

@media (max-width: 1024px) {
    /* masonry columns handled by JS (3 cols) */

    .team-member {
        width: 33.333%;
    }

    .projekt-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 30px 30px;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 30px;
    }

    .gallery-grid {
        columns: 2;
    }

    #main-nav li + li {
        margin-left: 24px;
    }
}


@media (max-width: 768px) {

    .contact-proj-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    #header {
        top: 0;
        height: 50px;
        padding: 0 15px 0 20px;
        align-items: center;
    }

    #wrapper {
        margin-top: 50px;
        min-height: calc(100vh - 50px);
    }

    .logo img {
        height: 32px;
    }

    
    #hamburger {
        display: flex;
    }

    .header-right {
        display: none;
    }

    
    .page-content {
        padding: 24px 15px;
    }

    .page-content--narrow {
        padding: 24px 15px;
    }

    .container {
        padding: 0 15px;
    }

    
    .projects-grid {
        padding: 0 10px;
        /* masonry columns handled by JS (2 cols) */
    }

    .news-grid { padding: 0 10px; }
    /* news masonry columns handled by JS (2 cols) */

    .filter-header {
        padding: 20px 15px 10px;
    }

    .no-results {
        padding: 30px 15px;
    }

    
    .detail-back {
        padding: 14px 15px 0;
    }

    .projekt-top {
        grid-template-columns: 1fr;
    }

    .projekt-hero {
        padding: 16px 15px 0;
    }

    .projekt-detail-content {
        padding: 20px 15px;
    }

    .projekt-gallery {
        padding: 0 15px 40px;
    }

    .projekt-nav {
        padding: 24px 15px;
        margin-top: 20px;
        gap: 12px;
    }

    .projekt-nav__item {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .projekt-nav__thumb {
        width: 100%;
        height: 90px;
    }

    .projekt-nav__name {
        font-size: 11px;
    }

    .projekt-nav__label {
        font-size: 10px;
    }

    .gallery-grid {
        columns: 1;
    }

    .gallery-img {
        height: 240px;
    }

    
    .team-grid {
        padding: 0 10px;
    }

    .team-member {
        width: 50%;
        padding: 10px;
    }

    .office-section {
        padding: 24px 15px;
    }

    .office-images {
        grid-template-columns: 1fr;
    }

    .office-images img {
        height: 220px;
    }

    
    .contact-page {
        padding: 24px 15px;
    }

    .contact-map {
        height: 260px;
    }

    
    .news-list {
        padding: 0 15px 40px;
    }

    .news-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }

    .news-detail {
        padding: 24px 15px 60px;
    }

    .pagination {
        padding: 16px 15px;
    }

    
    #footer {
        padding: 15px 15px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-address {
        display: none;
    }

    .view-toolbar {
        top: 50px;
        padding: 8px 12px;
    }

    .team-grid--staff .team-member,
    .team-grid--management .team-member {
        width: 33.333%;
    }

    .office-hero img {
        height: 40vw;
        min-height: 180px;
    }

    
    .admin-login-card {
        padding: 36px 24px;
        margin: 16px;
    }

    .password-card {
        padding: 36px 24px;
        margin: 16px;
    }

    
    #lightbox-prev { left: 4px; padding: 16px 10px; }
    #lightbox-next { right: 4px; padding: 16px 10px; }
}


@media (max-width: 480px) {
    .team-member {
        width: 100%;
    }

    .gallery-grid--2col {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 20px; line-height: 24px; }
    h2 { font-size: 18px; line-height: 22px; }

    .home-slider { height: 70vh; }
    .home-slide__name { font-size: 22px; }
    .home-slide__info { bottom: 60px; left: 20px; right: 20px; }
    .home-slide__meta { display: none; }
    .home-news { padding: 40px 20px; }
    .home-news__grid { grid-template-columns: 1fr; gap: 32px; }
    .home-cta { padding: 60px 20px; }
    .news-top { grid-template-columns: 1fr; }
    .news-top__img { padding: 16px 15px 8px; }
    .news-top__content { padding: 0 15px 32px; }
    .news-detail-gallery { padding: 0 15px 32px; }
    .news-andere { padding: 16px 15px 32px; }
    .news-andere__grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-projects { padding: 0 15px 32px; }
    .contact-proj-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kat-nav__scroll { gap: 16px; justify-content: flex-start; }

    /* Projekt-Detail: symmetrischer 15px Abstand, kompaktere Abstände */
    .projekt-top { grid-template-columns: 1fr; }
    .projekt-hero { padding: 12px 15px 0; }
    .projekt-detail-content { padding: 16px 15px 24px; gap: 24px; font-size: 13px; }
    .projekt-info-table { font-size: 12px; }
    .pi-title { font-size: 22px; }
    .pi-value { font-size: 12px; }
    .projekt-gallery { padding: 0 15px 32px; }
    .gallery-grid { gap: 8px; }
    .projekt-nav { padding: 16px 15px; margin-top: 0; gap: 8px; }
    .projekt-nav__thumb { height: 70px; }
    .projekt-nav__name { font-size: 11px; }
    .projekt-nav__label { font-size: 9px; }

    /* Footer */
    #footer { padding: 20px 15px; }

    /* Allgemein: alle 45px-Abstände auf 15px reduzieren */
    .news-detail-gallery { padding: 0 15px 32px; }
    .page-news-detail .projekt-nav { padding: 16px 15px; }
    .kontakt-cta { padding: 40px 15px; }
    .kontakt-cta__heading { font-size: 20px; margin-bottom: 32px; }
    .kontakt-cta__contacts { flex-direction: column; gap: 24px; }
    .kontakt-cta__item { padding: 0; }
    .kontakt-cta__value { font-size: 15px; }
    .kontakt-cta__divider { width: 40px; height: 1px; }
    .kontakt-cta__label { font-size: 9px; }
    .contact-projects { padding: 0 15px 32px; }
    .home-cta { padding: 40px 15px; }
    .pagination { padding: 16px 15px; }
}
