/* =========================
   BASIS
========================= */

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background-color: #f8f7f5;
    line-height: 1.7;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================
   WRAPPER (EINHEITLICH)
========================= */

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

main {
    flex: 1;
}


/* =========================
   TYPOGRAFIE
========================= */

h1 {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 0 30px 0;
}

h2 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 60px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* =========================
   HEADER
========================= */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;

    position: sticky;
    top: 0;
    background-color: #f8f7f5;
    z-index: 1000;
}

.logo {
    height: 100px;
}

.nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #6c6c6c;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    background: #e6e6e6;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    width: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.05)
    );
    z-index: 1;
}

.hero-text {
    position: absolute;
    bottom: 20%;
    left: 40px;
    z-index: 2;
    color: white;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.hero-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =========================
   BILDUNTERSCHRIFTEN (GLOBAL)
========================= */

.bild-wrapper {
    position: relative;
}

.bildunterschrift {
    position: absolute;
    bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
    padding: 4px 8px;
    opacity: 0.9;
    letter-spacing: 0.2px;
}

.links-weiss { left: 15px; color: white; }
.links-schwarz { left: 15px; color: rgb(36, 36, 36); }
.rechts-weiss { right: 15px; color: white; text-align: right; }
.rechts-schwarz { right: 15px; color: rgb(36, 36, 36); text-align: right; }

/* =========================
   CONTACT BANNER
========================= */

.contact-banner {
    width: 100%;
    background-color: #e6e6e6;
    margin-top: 80px;
    padding: 25px 0;
}

.banner-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact {
    flex: 1;
    text-align: left;
}

.contact h2 {
    margin-bottom: 15px;
    font-weight: 400;
}

.banner-member {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.banner-member img {
    width: 300px;
    height: auto;
    display: block;
    margin-left: auto;
}

.note {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* =========================
   VITA TABLE
========================= */

.vita-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.vita-table td {
    vertical-align: top;
    padding: 10px 15px;
}

.vita-table td:first-child {
    width: 110px;
    font-weight: bold;
    color: #2c2c2c;
}


/* =========================
   VITA INTRO
========================= */

.vita-intro {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* WICHTIG: Text bekommt Flex-Verhalten */
.vita-intro-text {
    flex: 1;
}

/* Bild bleibt fix */
.vita-intro-image {
    flex: 0 0 280px;
}

.vita-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   REFERENZEN
========================= */

.projekt-card {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d8d4cf;
}

.projekt-bild {
    width: 320px;
    height: auto;
    border-radius: 4px;
}

.weiterlesen-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    background-color: #9f9283;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* =========================
   GALERIE
========================= */

.bild-reihe img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   GALERIE / BILDREIHEN
========================= */

.bild-reihe {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* 1 Bild */
.bild-reihe.voll img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2 Bilder */
.bild-reihe.zwei img {
    width: calc(50% - 10px);
    height: auto;
    display: block;
}

/* 3 Bilder */
.bild-reihe.drei img {
    width: calc((100% - 40px) / 3);
    height: auto;
    display: block;
}

/* 4 Bilder */
.bild-reihe.vier {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bild-reihe.vier img {
    width: 100%;
    height: auto;
    display: block;
}

.bild-reihe.vier img.korrektur {
    transform: scale(0.96);
    transform-origin: top;
    margin-bottom: -30px;
}

/* =========================
   KONTAKT
========================= */
.two-column {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.two-column .left {
    flex: 1;
}

.two-column .right {
    flex: 0 0 400px;
}

.two-column .right img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid #e5e5e5;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.85rem;
}

.copyright {
    color: rgba(0, 0, 0, 0.5);
}

.footer-right {
    display: flex;
    gap: 15px;
}

.legal-links {
    display: flex;
    gap: 15px;
}

.legal-links a,
.to-top {
    color: rgba(0, 0, 0, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
}

.legal-links a:hover,
.to-top:hover {
    color: rgba(0, 0, 0, 0.85);
}