/* ========================================================================== */
/* Root Variablen                                                             */
/* ========================================================================== */

:root{
    --dark:#072534;
    --tangerine:#F68D1C;
    --white:#FFFFFD;
    --greenish:#A1BEAA;
    --metallic:#4B778D;
}


/* ========================================================================== */
/* Basics                                                                     */
/* ========================================================================== */

html { scroll-behavior:smooth; }

body {
    margin:0;
    background:var(--dark);
    color:var(--white);
    font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial;
}

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

a { color:var(--tangerine); text-decoration:none; }
a:hover { opacity:.9; }

.container {
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
}


/* ========================================================================== */
/* Navigation                                                                 */
/* ========================================================================== */

.topbar{
    position:fixed;
    top:0; left:0; right:0;
    height:64px;
    z-index:50;
    display:flex; align-items:center;
    backdrop-filter:saturate(110%) blur(6px);
    background:linear-gradient(180deg,rgba(7,37,52,.8),rgba(7,37,52,.35));
    border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar .inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    gap:.75rem;
    align-items:center;
    font-weight:600;
}

.brand img{
    height:36px;
    width:36px;
    object-fit:contain;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.25));
}

.nav{
    display:flex;
    gap:1.25rem;
}

.nav a{
    font-weight:500;
    opacity:.9;
}

.nav a:hover{
    opacity:1;
}

.menu-toggle{
    display:none;
    flex-direction:column;
    gap:4px;
    width:28px;
    height:22px;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    height:3px;
    background:var(--tangerine);
    border-radius:2px;
    transition:.3s;
}

/* Burger Animation */
.menu-toggle.active span:nth-child(1){ transform:rotate(45deg) translateY(8px); }
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){ transform:rotate(-45deg) translateY(-8px); }

#headertext { margin-right:15px; }


/* ========================================================================== */
/* Hero                                                                       */
/* ========================================================================== */

.hero{
    position:relative;
    min-height:60vh;
    display:flex;
    align-items:center;
    margin-top:64px;
    overflow:hidden;
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:40px;
    padding:60px 0;
}

.hero-left,
.hero-right{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.hero-right{
    text-align:center;
}

.hero-right h1{
    font-size:clamp(26px, 3vw, 38px);
    margin:0 0 .6rem;
    color:var(--tangerine);
    text-shadow:0 2px 6px rgba(0,0,0,0.4);
}

.hero-right .subtitle{
    font-size:clamp(15px,1.4vw,18px);
    margin-bottom:1.2rem;
}

.hero-right .rule {
    margin-left:auto;
    margin-right:auto;
}

.hero-right .section-title {
    font-size:31px;
}

#start {
    margin-top:6vw;
}


/* ========================================================================== */
/* Logo-Box                                                                   */
/* ========================================================================== */

.logo-box{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:400px;
    height:283px;
    margin:0 auto 20px;
    background:#fff;

    /* WICHTIG: Diese Masken dürfen NICHT gelöscht werden */
    /*
    -webkit-mask-image:
        linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-composite:intersect;
    mask-composite:intersect;
    */

    border-radius:8px;
}

.logo-box img{
    width:100%;
    height:auto;
    position:relative;
    z-index:1;
}


/* ========================================================================== */
/* Buttons                                                                    */
/* ========================================================================== */

.btn {
    display:inline-block; 
   padding:.8rem 1.1rem;
    border-radius:999px;
    font-weight:600;
}

.btn.primary {
    background:var(--tangerine);
    color:#071b29;
    max-width:200px;
    text-align:center;
}

.btn.ghost {
    border:1px solid rgba(255,255,255,.25);
}

.hero-right .btn {
    margin:0 auto;
    display:block;
}


/* ========================================================================== */
/* Sections                                                                   */
/* ========================================================================== */

section {
    padding:80px 0;
    position:relative;
}

#wer, #wie, #haltung {
    padding-top:10px;
}

.section-title {
    font-size:clamp(22px,2.6vw,34px);
    margin:0 0 14px;
}

.eyebrow {
    display:inline-block;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:12px;
    color:var(--greenish);
    margin-bottom:10px;
}

.card{
    background:linear-gradient(180deg,rgba(75,119,141,.12),rgba(75,119,141,.06));
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:24px;
}
.card-alt{
    text-align: center;
    background:linear-gradient(180deg,rgba(75,119,141,.12),rgba(75,119,141,.06));
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:24px;
}

.grid{
    display:grid;
    gap:22px;
}

@media(min-width:820px){
    .grid.cols-2{
        grid-template-columns:1.1fr 1fr;
    }
}


/* ========================================================================== */
/* Photos                                                                     */
/* ========================================================================== */

.photo-panel{
    border-radius:18px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
}

.photo-panel img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* ========================================================================== */
/* Footer                                                                     */
/* ========================================================================== */

.contact{
    background:linear-gradient(180deg,rgba(161,190,170,.15),rgba(7,37,52,.6));
    border-top:1px solid rgba(255,255,255,.08);
}

footer{
    padding:26px 0;
    color:rgba(255,255,255,.7);
    font-size:14px;
    border-top:1px solid rgba(255,255,255,.08);
}

.rule{
    height:3px;
    width:90px;
    background:var(--tangerine);
    border-radius:2px;
    margin:14px 0 18px;
}
.rule-alt {
    height:3px;
    width:90px;
    background:var(--tangerine);
    border-radius:2px;
    margin:14px auto 18px; /* <— auto does the job */
}


/* ========================================================================== */
/* Responsive                                                                 */
/* ========================================================================== */

@media(max-width:768px){

    .nav{
        position:absolute; 
        top:64px; 
        right:0;
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        width:100%;
        max-height:0;
        overflow:hidden;
        background:rgba(7,37,52,0.95);
        transition:max-height .4s ease;
    }

    .nav a{
        width:100%;
        display:block;
        padding:14px 20px;
        border-bottom:1px solid rgba(255,255,255,.08);
    }

    .nav.open{ max-height:320px; }

    .menu-toggle{ display:flex; }

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
        gap:15px;
    }

    .hero-right{
        text-align:center;
    }
}

/* ========================================================= */
/* Haltung – 2 Column Version                                */
/* ========================================================= */

#haltung .cols-2-haltung {
    display: grid;
    gap: 22px;
}

@media (min-width: 821px) {
    #haltung .cols-2-haltung {
        grid-template-columns: 1.9fr 0.1fr;
        /* left column gets more space */
    }
}

/* Make columns stretch equal height */
#haltung .cols-2-haltung > div {
    display: flex;
    flex-direction: column;
    /* height: 100%; REMOVE THIS */
}


/* Keep contact column stacked */

/* Boxes remain full-height */
#haltung .kontakt-box {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0;
}
.cont_button {
    background:var(--tangerine);
    color:#071b29;
    max-width:200px;
    text-align:center;
     display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical */
    padding:.8rem 1.1rem;
    border-radius:16px;
    width: 150px;
    height: 50px;
    font-weight:600;
}


#haltung .contact-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Right box grows to full height so both sides match */
#haltung .kontakt-box-combined {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* <— moves inner content to bottom */
    gap: 20px;
}

/* ========================================================= */
/* Offcanvas Impressum                                       */
/* ========================================================= */

.impressum-panel {
    position: fixed;
    top: 0;
    right: -480px; /* hidden */
    width: 420px;
    height: 100vh;
    background: rgba(7,37,52,0.97);
    border-left: 1px solid rgba(255,255,255,.15);
    box-shadow: -4px 0 20px rgba(0,0,0,0.35);
    transition: right .35s ease;
    z-index: 2000;
    overflow-y: auto;
    padding: 28px;
}

.impressum-panel.open {
    right: 0;
}

.impressum-content {
    color: var(--white);
}

.close-impressum {
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 14px;
}
.photo-panel {
    position: relative;
    overflow: hidden;
}

.photo-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(75, 119, 141, 0.0);
    pointer-events: none;
}

