/* =========================================================
   Spenglerei Sonnleitner - finale style.css
   Einheitlich: Hero-Bild auf allen Seiten, grünes Menü,
   Logo links, Footer als Glasbox mit grünen Pillen.
   ========================================================= */

/* Reset / Basis */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, sans-serif;
    color:#111827;
    background:
        url('/assets/images/hero.jpg') center center / cover no-repeat fixed;
}

a{
    text-decoration:none;
}

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

.container{
    width:min(1400px,92%);
    margin:auto;
}

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

header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:100;
    background:transparent;
}

.nav{
    width:min(1400px,94%);
    margin:auto;
    padding:24px 0;
    display:flex;
    align-items:center;
    gap:24px;
}

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    padding:0;
    background:rgba(255,255,255,.35);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.30);
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
    overflow:hidden;
    transition:.25s;
}

.logo:hover{
    background:rgba(255,255,255,.45);
}

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

.menu{
    display:flex;
    gap:14px;
    margin-left:auto;
    margin-right:20px;
}

.menu a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    color:#fff;
    font-size:16px;
    font-weight:700;
    background:rgba(34,197,94,.38);
    border:1px solid rgba(34,197,94,.45);
    border-radius:999px;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    transition:.25s;
}

.menu a:hover,
.menu a:focus{
    background:rgba(34,197,94,.60);
    border-color:rgba(34,197,94,.85);
    color:#fff;
    transform:translateY(-2px);
}

/* Burger / Mobile */
.burger{
    display:none;
    color:#fff;
    background:rgba(34,197,94,.38);
    border:1px solid rgba(34,197,94,.45);
    border-radius:12px;
    font-size:34px;
    cursor:pointer;
    padding:8px 14px;
    line-height:1;
}

.mobile-menu{
    display:none;
    width:min(1400px,94%);
    margin:0 auto;
    padding:12px 0 22px;
    background:rgba(17,24,39,.96);
    border-top:1px solid rgba(255,255,255,.12);
    border-radius:0 0 18px 18px;
}

.mobile-menu.open{
    display:block;
}

.mobile-menu a{
    display:block;
    color:#fff;
    padding:15px 18px;
    font-weight:700;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.mobile-menu a:hover,
.mobile-menu a:focus{
    color:#16a34a;
}

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

.hero{
    min-height:420px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:180px 20px 90px;
    background:transparent;
    color:#fff;
    text-align:center;
}

.hero h1{
    font-size:60px;
    margin-bottom:20px;
    line-height:1.15;
}

.hero p{
    max-width:850px;
    font-size:22px;
    line-height:1.6;
}

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

body.home .hero{
    min-height:100vh;
    justify-content:center;
    align-items:flex-start;
    text-align:left;
    padding:190px 0 190px;
}

.hero-inner{
    width:min(1400px,94%);
    margin:auto;
}

body.home .hero-box{
    width:min(920px,82%);
    min-height:360px;
    padding:34px 40px;
    margin-top:120px;
    border-radius:26px;
    background:rgba(18,24,32,.03);
    border:1px solid rgba(255,255,255,.12);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:34px;
}

.hero-left{
    width:55%;
}

.hero-left h1{
    display:flex;
    flex-direction:column;
    line-height:.95;
    margin-bottom:16px;
    font-weight:800;
}

.main-title{
    font-size:100px;
    letter-spacing:-2px;
}

.sub-title{
    margin-top:12px;
    color:rgba(255,255,255,.72);
    font-size:24px;
    font-weight:600;
    letter-spacing:4px;
    text-transform:uppercase;
}

.owner-name{
    margin-bottom:22px;
    color:#22c55e;
    font-size:48px;
    font-weight:800;
}

.hero-left p{
    color:rgba(255,255,255,.96);
    font-size:20px;
    line-height:1.55;
}

.hero-right{
    width:38%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.logo-frame{
    padding:10px 14px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}

.hero-right img{
    width:100%;
    max-width:360px;
}

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

.hero-buttons{
    margin-top:34px;
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
    border-radius:14px;
    font-size:20px;
    font-weight:700;
}

.btn-primary{
    background:#16a34a;
    color:#fff;
    padding:16px 30px;
}

.btn-primary:hover,
.btn-primary:focus{
    background:#15803d;
}

.btn-secondary{
    color:#fff;
    border:2px solid rgba(255,255,255,.75);
    padding:14px 30px;
}

.btn-secondary:hover,
.btn-secondary:focus{
    background:rgba(255,255,255,.12);
}

input,
textarea{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font:inherit;
}

textarea{
    min-height:150px;
    resize:vertical;
}

button{
    padding:14px 30px;
    background:#16a34a;
    color:#fff;
    border:none;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

button:hover,
button:focus{
    background:#15803d;
}

.hidden{
    display:none;
}

.mapbtn{
    display:inline-block;
    margin-top:20px;
    padding:14px 22px;
    background:#16a34a;
    color:#fff!important;
    border-radius:10px;
    font-weight:700;
}

.mapbtn:hover,
.mapbtn:focus{
    background:#15803d;
}

/* =========================================================
   Layout / Inhalte
   ========================================================= */

.section{
    padding:80px 20px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

body:not(.home) .grid{
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.section h2{
    margin-bottom:18px;
    color:#ffffff;
}

.section p{
    margin-bottom:16px;
    line-height:1.7;
    color:#ffffff;
}

/* =========================================================
   Boxen / Karten
   ========================================================= */

.box{
    background:#fff;
    padding:35px;
    border-radius:18px;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.box a{
    color:#16a34a;
}
.box h2,
.card h2{
    color:#111827;
}

.box p,
.box li,
.box strong,
.card p,
.card li,
.card strong{
    color:#111827;
}
.box h2{
    color:#111827;
}

.box p,
.box li{
    color:#111827;
}

.card{
    display:block;
    background:#fff;
    padding:35px;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    color:inherit;
    transition:.25s;
}

.card:hover,
.card:focus{
    transform:translateY(-8px);
    box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.card h2{
    margin-top:0;
    color:#111827;
}

.card p{
    margin-bottom:16px;
    line-height:1.7;
    color:#111827;
}

.card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.content{
    padding:20px;
}

.title{
    margin-bottom:10px;
    font-size:24px;
    font-weight:700;
}

.meta{
    color:#64748b;
}

.success{
    background:#dcfce7;
    color:#166534;
    padding:15px;
    border-radius:12px;
    margin-bottom:20px;
}

/* =========================================================
   Über uns
   ========================================================= */

.values{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-top:40px;
}

.value{
    background:#f3f4f6;
    padding:30px;
    border-radius:16px;
    text-align:center;
    font-weight:700;
    font-size:22px;
}

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

footer{
    background:transparent;
    color:#fff;
    padding:60px 20px;
}

footer .container{
    width:fit-content;
    max-width:900px;
    margin:auto;

    text-align:center;

    background:rgba(255,255,255,.06);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);

    border:1px solid rgba(255,255,255,.10);
    border-radius:20px;

    padding:18px 36px;
}

footer p{
    margin:0 0 14px;
    color:#ffffff;
    font-size:22px;
    font-weight:600;
}

footer .footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px 22px;
    margin-top:20px;
}

footer .footer-links a,
.hero-footer .footer-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 16px;
    color:#fff;
    text-decoration:none;
    font-weight:700;
    background:rgba(34,197,94,.14);
    border:1px solid rgba(34,197,94,.35);
    border-radius:999px;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    transition:.25s;
}

footer .footer-links a:hover,
footer .footer-links a:focus,
.hero-footer .footer-links a:hover,
.hero-footer .footer-links a:focus{
    background:rgba(34,197,94,.28);
    border-color:rgba(34,197,94,.60);
    transform:translateY(-2px);
}

/* Falls die Startseite einen Hero-Footer verwendet */
.hero-footer{
    width:min(1400px,92%);
    margin:-150px auto 42px;
    text-align:center;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    border-radius:24px;
    padding:28px;
    color:#fff;
    position:relative;
    z-index:50;
}

.hero-footer p{
    margin:0;
    color:#fff;
}

.hero-footer .footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px 22px;
    margin-top:20px;
}

.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:999;
    background:#25D366;
    color:#fff;
    padding:16px 20px;
    border-radius:999px;
    font-weight:700;
}

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

@media (max-width:1200px){
    .main-title{
        font-size:72px;
    }

    .sub-title{
        font-size:20px;
    }

    .owner-name{
        font-size:34px;
    }

    .hero-left p{
        font-size:18px;
    }
}

@media (max-width:900px){
    .nav{
        justify-content:space-between;
        gap:16px;
    }

    .logo img{
        height:72px;
    }

    .menu{
        display:none;
    }

    .burger{
        display:block;
    }

    body.home .hero{
        padding:160px 0 210px;
    }

    body.home .hero-box{
        flex-direction:column;
        width:min(92%,92%);
        padding:28px 22px;
        text-align:center;
        margin-top:80px;
    }

    .hero-left,
    .hero-right{
        width:100%;
    }

    .main-title{
        font-size:52px;
    }

    .sub-title{
        font-size:18px;
    }

    .owner-name{
        font-size:28px;
    }

    .hero-left p{
        font-size:17px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .btn-primary,
    .btn-secondary{
        font-size:18px;
        padding:14px 24px;
    }

    .hero-right img{
        max-width:240px;
    }

    .hero h1,
    body:not(.home) .hero h1{
        font-size:40px;
    }

    body:not(.home) .grid{
        grid-template-columns:1fr;
    }

    .hero-footer{
        margin:-190px auto 36px;
        padding:24px 18px;
    }
}

@media (max-width:520px){
    .nav{
        width:min(100% - 24px,1400px);
    }

    .logo img{
        height:62px;
    }

    .main-title{
        font-size:42px;
    }

    .owner-name{
        font-size:24px;
    }

    .hero-left p{
        font-size:16px;
    }

    footer .container,
    .hero-footer{
        padding:22px 16px;
    }
}




/* =========================================================
   Rechtliche Seiten: Impressum, Datenschutz, AGB
   Kein Hero, klarer Inhaltsbereich
   ========================================================= */

body.legal-page{
    background:#f8fafc;
    color:#111827;
}

body.legal-page header{
    position:relative;
    background:#111827;
}

body.legal-page .section,
body.legal-page .legal-section{
    padding:70px 20px;
}

body.legal-page .container{
    max-width:1100px;
}

body.legal-page .box,
body.legal-page .agb-box{
    background:#ffffff;
    color:#111827;
    padding:45px;
    border-radius:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

body.legal-page h1{
    margin-bottom:28px;
    color:#111827;
    font-size:42px;
    line-height:1.2;
}

body.legal-page h2{
    margin-top:34px;
    margin-bottom:16px;
    color:#111827;
    line-height:1.25;
}

body.legal-page p,
body.legal-page li{
    color:#111827;
    line-height:1.8;
}

body.legal-page ul,
body.legal-page ol{
    margin-left:28px;
    margin-bottom:24px;
}

body.legal-page a{
    color:#16a34a;
}

body.legal-page .company{
    margin-bottom:35px;
    line-height:1.9;
}

body.legal-page .company strong{
    font-size:22px;
}

body.legal-page .pdf-btn,
body.legal-page .top-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:20px 0 35px;
    padding:12px 22px;
    background:#16a34a;
    color:#fff;
    border-radius:999px;
    font-weight:700;
    transition:.25s;
}

body.legal-page .pdf-btn:hover,
body.legal-page .top-link:hover{
    background:#15803d;
    color:#fff;
}

body.legal-page .agb-nav{
    background:#f7f7f7;
    border:1px solid #ddd;
    border-radius:14px;
    padding:30px;
    margin-bottom:45px;
}

body.legal-page .agb-nav ul{
    columns:2;
    list-style:none;
    margin-left:0;
}

body.legal-page .agb-nav li{
    margin:12px 0;
}

body.legal-page .agb-box h2{
    margin-top:50px;
    padding-left:15px;
    border-left:5px solid #16a34a;
}

body.legal-page .scroll-top{
    display:none;
}

@media(max-width:900px){
    body.legal-page .section,
    body.legal-page .legal-section{
        padding:40px 20px;
    }

    body.legal-page .box,
    body.legal-page .agb-box{
        padding:28px;
    }

    body.legal-page h1{
        font-size:34px;
    }

    body.legal-page .agb-nav ul{
        columns:1;
    }
}
