/* ===========================================================
   ahoi.plus — shared stylesheet
   Used by: index.php, impressum.php, contractForm.php, danke.php, contact.php
   Keep page-specific rules out of here — put them back in a
   <style> block on that page instead.
=========================================================== */

:root{
    --primary:#00c2ff;
    --accent:#ff4fd8;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    min-height:100vh;
    background:#7ec8ff;
    color:white;

    display:flex;
    flex-direction:column;
}

/* Wraps each page's main content (between header and footer) so the
   footer sticks to the bottom of the viewport even on short pages. */
.site-main{
    flex:1 0 auto;
}

section{
    scroll-margin-top:220px;
}

/* =========================
   GLASS CARD (reusable base)
   Add this class to any translucent
   panel instead of repeating the
   background/blur/shadow trio.
========================= */
.glass-card{
    background:rgba(20,25,35,.35);
    backdrop-filter:blur(16px);
    border-radius:20px;
    box-shadow:0 18px 55px rgba(0,0,0,.25);
}

/* =========================
   HEADER / NAV
========================= */
.header{
    position:fixed;
    top:40px;
    left:50%;
    transform:translateX(-50%);

    width:calc(100% - 40px);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 40px;

    z-index:1000;

    background:rgba(20,25,35,.35);
    backdrop-filter:blur(16px);

    border:2px solid rgba(255,79,216,.25);
    border-radius:20px;

    overflow:visible;
}

.logo{
    position:relative;
    z-index:2;
}

.logo img{
    height:150px;
    width:auto;
    display:block;

    margin-top:-35px;
    margin-bottom:-35px;
}

/* Modifier for pages that want the larger hero logo (e.g. index.php) */
.logo-lg img{
    height:190px;
    margin-top:-50px;
    margin-bottom:-50px;
}

.cta{
    padding:14px 28px;
    background:var(--primary);
    color:white;
    border-radius:999px;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
}

.cta:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(255,79,216,.35);
}

.menu{
    display:flex;
    gap:25px;
}

.menu a{
    color:white;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    opacity:.9;
    transition:.2s;
}

.menu a:hover{
    opacity:1;
    color:var(--primary);
}

/* MOBILE MENU TOGGLE */
.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
    z-index:2000;
}

@media(max-width:900px){

    .logo img{height:100px;}
    .logo-lg img{height:110px;}

    .menu{
        opacity:0;
        transform:translateY(-10px);
        transition:.3s;
        position:absolute;
        top:100%;
        left:0;
        width:100%;

        flex-direction:column;
        align-items:center;
        gap:20px;

        padding:25px 0;

        display:none;

        background:rgba(20,25,35,.35);
        backdrop-filter:blur(16px);

        border:2px solid rgba(255,79,216,.25);
        border-top:none;

        border-radius:0 0 20px 20px;

        box-shadow:0 20px 60px rgba(0,0,0,.25);
    }

    .menu.show{
        display:flex;
        opacity:1;
        transform:translateY(0);
    }

    .menu-toggle{
        display:block;
    }
}

/* =========================
   SECTION TITLE (reusable heading)
========================= */
.section-title{
    text-align:center;
    font-size:65px;
    margin-bottom:40px;
    font-weight:900;
    color:#ffffff;
    text-shadow:
        0 3px 18px rgba(0,0,0,.4),
        0 0 25px rgba(255,79,216,.35);

    letter-spacing:1px;
}

/* =========================
   TARIFE
========================= */
.tariffs{
    position:relative;
    z-index:5;

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:34px;

    padding:280px 20px 120px;
}

.tariff-card{
    flex:0 0 560px;

    min-height:520px;
    padding:48px;

    border-radius:24px;

    background:rgba(20,25,35,.35);
    backdrop-filter:blur(16px);

    border:4px solid var(--primary);

    box-shadow:0 18px 55px rgba(0,0,0,.25);

    text-align:center;
    color:#eaf2ff;

    transition:.35s;
}

.tariff-card:hover{
    transform:translateY(-16px) scale(1.05);
    background:rgba(20,25,35,.45);
}

.tariff-card.active{
    background:rgba(30,10,25,.45);
    box-shadow:
        0 0 0 6px rgba(255,79,216,.15),
        0 0 35px rgba(255,79,216,.30),
        0 40px 140px rgba(255,0,180,.25);
    transform:scale(1.06);
}

/* TYPO */
.title{font-size:55px;font-weight:900;margin-bottom:24px;}
.speed{font-size:22px;color:#d6e6ff;margin:10px 0;}
.price{font-size:58px;font-weight:900;margin:30px 0 18px;}
.sub{font-size:18px;color:#d6e6ff;margin-bottom:20px;}
.meta{font-size:15px;color:#c9d9f2;line-height:1.7;}

/* =========================
   CONTACT SECTION
========================= */
.contact{
    position:relative;
    z-index:5;

    padding:120px 20px 140px;

    display:flex;
    justify-content:center;
}

.contact-container{
    width:100%;
    max-width:820px;

    background:rgba(20,25,35,.35);
    backdrop-filter:blur(20px);

    border:4px solid rgba(255,79,216,.6);

    border-radius:30px;

    padding:50px;

    box-shadow:0 25px 80px rgba(0,0,0,.25);

    text-align:center;
}

.contact-container h2{
    font-size:42px;
    margin-bottom:10px;
}

.contact-container p{
    color:#d6e6ff;
    margin-bottom:30px;
}

/* FORM (reusable — any page with a form can use these) */
.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.full{grid-column:1/-1;}

label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:#dbe7ff;
}

input,textarea{
    width:100%;
    padding:16px;
    border-radius:16px;

    border:1px solid rgba(255,255,255,.15);

    background:rgba(255,255,255,.06);
    color:white;

    outline:none;
}

textarea{min-height:160px;}

button{
    width:100%;
    margin-top:20px;

    padding:16px;

    border:none;
    border-radius:16px;

    background:var(--primary);
    color:white;

    font-weight:700;

    cursor:pointer;
}

/* =========================
   ADDONS + BUSINESS GRID
========================= */
.addons,
.business{
    position:relative;
    z-index:5;
    padding:60px 20px 120px;
}

.addon-grid{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
}

.addon-card{
    width:320px;
    padding:30px;

    border-radius:22px;

    background:rgba(20,25,35,.35);
    backdrop-filter:blur(16px);

    border:2px solid rgba(255,79,216,.6);

    text-align:center;

    color:#eaf2ff;

    transition:.3s;

    box-shadow:0 18px 55px rgba(0,0,0,.15);
}

.addon-card:hover{
    transform:translateY(-10px) scale(1.16);
    border-color:var(--primary);
}

.addon-card h3{
    font-size:26px;
    margin-bottom:12px;
}

.addon-card p{
    font-size:18px;
    color:#cfe3ff;
    margin-bottom:10px;
}

.addon-card span{
    display:block;
    margin-top:10px;
    font-weight:700;
    color:#E8527F;
}

.addon-img{
    width:110px;
    height:110px;
    object-fit:contain;
    margin:12px auto 16px;
    display:block;

    filter:drop-shadow(0 10px 20px rgba(0,0,0,.25));
    transition:transform .3s ease;
}

.addon-card:hover .addon-img{
    transform:scale(1.18) rotate(-15deg);
}

/* BUSINESS SPECIAL */
.business-card{
    border:2px solid rgba(0,200,255,.6);
}

.business-card span{
    color:#00c2ff;
}

.highlight{
    border:3px solid var(--primary);
    transform:scale(1.05);
}

/* =========================
   NOTICE (reusable callout box)
========================= */
.notice{
    margin-top:24px;
    padding:20px 24px;
    border-radius:16px;

    background:rgba(0,194,255,.12);
    border:2px solid var(--primary);

    color:#eaf2ff;
    font-size:15px;
    line-height:1.6;
    text-align:left;
}

.notice strong{
    color:var(--primary);
}

/* =========================
   POPUP (reusable modal — see js/site.js for openPopup()/closePopup())
========================= */
.popup-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(6px);
    z-index:99999;
    justify-content:center;
    align-items:center;
}

.popup-box{
    width:90%;
    max-width:420px;
    background:rgba(20,25,35,.85);
    border:2px solid rgba(255,79,216,.6);
    border-radius:20px;
    padding:30px;
    text-align:center;
    color:white;
    box-shadow:0 20px 60px rgba(0,0,0,.4);
    animation:pop .25s ease-out;
    transition:transform 0.2s ease;
}

.popup-box h3{
    font-size:26px;
    margin-bottom:12px;
}

.popup-box p{
    font-size:16px;
    color:#d6e6ff;
    line-height:1.5;
}

.popup-box button{
    margin-top:20px;
    padding:12px 18px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:white;
    cursor:pointer;
    font-weight:700;
}

@keyframes pop{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* =========================
   BACK TO TOP (reusable — see js/site.js)
========================= */
#toTop{
    position:fixed;
    bottom:25px;
    right:25px;

    width:56px;
    height:56px;

    border:none;
    border-radius:16px;

    background:var(--primary);
    color:white;

    font-size:22px;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 15px 35px rgba(255,79,216,.3);

    opacity:0;
    visibility:hidden;

    transition:.3s;
    z-index:99999;
}

#toTop.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#toTop:hover{
    transform:translateY(-4px);
}

/* =========================
   ÜBER UNS SECTION
========================= */
.about{
    position:relative;
    z-index:5;
    padding:120px 20px;
    display:flex;
    justify-content:center;
}

.about-container{
    max-width:1100px;
    width:100%;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;

    background:rgba(20,25,35,.35);
    backdrop-filter:blur(18px);

    border:2px solid rgba(255,79,216,.35);
    border-radius:30px;

    padding:40px;

    box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.about-text h2{
    font-size:44px;
    font-weight:900;
    margin-bottom:20px;

    color:#fff;
    text-shadow:
        0 3px 18px rgba(0,0,0,.4),
        0 0 25px rgba(255,79,216,.35);
}

.about-text p{
    color:#d6e6ff;
    line-height:1.7;
    font-size:16px;
}

.about-img{
    width:100%;
    border-radius:20px;
    overflow:hidden;
    border:2px solid rgba(255,79,216,.25);
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.about-img img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:.4s;
}

.about-img img:hover{
    transform:scale(1.05);
}

@media(max-width:900px){
    .about-container{
        grid-template-columns:1fr;
    }
}

/* =========================
   GENERIC PAGE WRAPPER
   Clears the fixed header and centers
   content — use on any page whose
   content isn't inside one of the
   home-page sections above.
========================= */
.page-section,
.legal-section{
    position:relative;
    z-index:10;

    max-width:1100px;
    margin:0 auto;

    padding:260px 20px 120px;
}

/* =========================
   LEGAL PAGE (impressum.php / AGB)
========================= */

.legal-card{
    background:rgba(20,25,35,.35);
    backdrop-filter:blur(18px);

    border:3px solid rgba(255,79,216,.35);
    border-radius:30px;

    padding:50px;

    box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.page-title{
    font-size:60px;
    font-weight:900;
    text-align:center;

    margin-bottom:50px;

    text-shadow:
        0 0 20px rgba(255,79,216,.4);
}

.legal-block{
    margin-bottom:50px;
}

.legal-block h2{
    color:var(--primary);
    margin-bottom:20px;
    font-size:34px;
}

.legal-block h3{
    margin-top:20px;
    margin-bottom:10px;
}

.legal-block p,
.legal-block li{
    line-height:1.8;
    color:#dce9ff;
}

.legal-block ul{
    padding-left:20px;
}

@media(max-width:900px){
    .page-title{font-size:40px;}
    .legal-card{padding:30px;}
}

/* =========================
   FOOTER (shared by every page)
========================= */
.footer{
    position:relative;
    z-index:10;
    width:100%;
    margin-top:80px;
    overflow:visible;

    background:rgba(20,25,35,.55);
    backdrop-filter:blur(18px);

    border-top:2px solid rgba(255,79,216,.35);

    padding:60px 20px;
    text-align:center;
}

.footer-content{
    max-width:1100px;
    margin:0 auto;
}

.footer p{
    color:#d6e6ff;
    margin-bottom:25px;
    line-height:1.8;
}

.footer a{
    color:var(--primary);
    text-decoration:none;
}

.footer-graphic{
    position:absolute;
    right:0;
    bottom:0;

    width:320px;
    height:auto;

    transform:translate(0%, -20%);

    z-index:2;

    pointer-events:none;
}

/* SOCIAL ICONS */
.socials{
    display:flex;
    justify-content:center;
    gap:18px;
    margin-top:20px;
}

.socials a{
    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,79,216,.25);

    color:white;
    font-size:20px;
    text-decoration:none;

    transition:.25s ease;
    position:relative;
    overflow:hidden;
}

.socials a:hover{
    transform:translateY(-6px) scale(1.1);
    border-color:var(--primary);
    box-shadow:0 10px 25px rgba(255,79,216,.25);
}

.socials a::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg,transparent,rgba(255,79,216,.35),transparent);
    transition:.5s;
}

.socials a:hover::before{
    left:100%;
}

/* =========================
   RESPONSIVE (general)
========================= */
@media(max-width:900px){

    .tariff-card{flex:0 0 90%;}

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

    .contact-container{padding:30px;}

    .footer-graphic{display:none;}
}
