/* =========================================================
   ABSCHNITT 0 — zusätzliche css Dateien laden
=========================================================*/
@import url("boats.css");
@import url("icons.css");
@import url("../werkzeuge/photoswipe5.4.4/photoswipe.min.css");

/* =========================================================
   ABSCHNITT 1 — HEADER & LOGO (MAXIMALE SKALIERUNG)
========================================================= */

/* 1. Header-Struktur & Hintergrund */
#t3-header,
#t3-mainnav,
.t3-header,
.t3-mainnav {
    background-color: #003164 !important;
    background-image: none !important;
    min-height: 150px !important;
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Logo-Container (Zentrierung) */
.logo.logo-image,
.logo.logo-image .logo-image,
.logo.logo-image a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 150px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 3. Logo-Bild (Zwangsskalierung auf 1.8) */
.logo-image img.logo-img {
    height: 140px !important;       
    width: auto !important;         
    max-width: none !important;     
    min-width: 0 !important;
    object-fit: contain !important; 
    display: block !important;
    margin: 0 auto !important;
    background: transparent !important;
    
    /* Erhöht auf 1.8 für deutlich mehr Größe */
    transform: scale(2.5);          
    transform-origin: center;
}

/* 4. Text-Elemente ausblenden */
.logo.logo-image a span {
    display: none !important;
}

/* 5. MOBIL-FIX */
@media (max-width: 767px) {
    #t3-header, 
    #t3-mainnav,
    .t3-header,
    .t3-mainnav {
        height: 70px !important; 
        min-height: 70px !important; 
    }
    
    .logo-image img.logo-img {
        height: 50px !important;
        transform: scale(1.0);
    }
}

/* =========================================================
   ABSCHNITT 2 — SEITENHINTERGRUND
========================================================= */
body {
    background: #eef3f7;
}
html.home body {
    background-image: url('/images/Terhi/Hintergrund/Terhi_background.webp');
    background-size: 100% auto;
    background-position: 50% 150px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #dfeaf2;
}

@media (max-width: 768px) {
    html.home body {
        background-attachment: scroll;
    }
}

.t3-wrapper {
    background: transparent !important;
}

#t3-mainbody {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    backdrop-filter: blur(0px);
    padding: 15px 35px 5px 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none'%3E%3Cpath fill='%233a82b8' fill-opacity='0.15' d='M180 150 C300 105 380 135 500 85 L500 150 Z'/%3E%3Cpath fill='%233a82b8' fill-opacity='0.35' d='M80 150 C230 115 340 145 500 110 L500 150 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 80% 200px;
    position: relative;
    padding-bottom: 50px !important;
}

body::before {
    display: none;
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,90,130,0.20);
    pointer-events: none;
    z-index: -1;
}

#t3-mainbody img {
    border-radius: 20px;
}

/* ---------------------------------------------------------
   REINES CSS: Kompass-SVG
--------------------------------------------------------- */
#t3-mainbody::after {
    content: "";
    background-image: url('/images/Terhi/sonstiges/kompass.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 55px;
    height: 55px;
    position: absolute;
    bottom: -27.5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    margin-bottom: 15px !important;
}

/* =========================================================
   ABSCHNITT 3 — MASTHEAD / ÜBERGANG
========================================================= */
.page-masthead {

    position: relative !important;
    top: 105px !important; /* Verschiebt das Element um 105px nach unten */
    overflow: visible !important;
}

.page-masthead,
.jumbotron,
.jumbotron-primary {
    background: transparent !important;
}

.page-masthead .container {
    position: relative;
    z-index: 20;
}

.page-masthead h1,
.page-masthead p {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* =========================================================
   ABSCHNITT 4 — Navigation vorerst ausblenden
========================================================= */
/* Blendet nur die Menü-Links aus, nicht den gesamten Container */
.t3-navbar .navbar-nav {
    display: none !important;
}

/* =========================================================
   ABSCHNITT 5 — FOOTER
========================================================= */
#t3-footer,
.t3-footer {
    background-color: #003164 !important;
    color: #ffffff !important;
    margin-top: 50px;
    padding: 20px 0;
    position: relative;
}

#t3-footer .container,
.t3-footer .container {
    background-color: transparent !important;
}

#t3-footer::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23003164' d='M0 10C317-27 240 59 516 22 860-20 918 71 1154 40Q1342 1 1440 2L1440 101 0 100Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

#t3-footer a,
.t3-footer a {
    color: #ffffff !important;
}

#t3-footer .nav > li > a:hover,
.t3-footer .nav > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
    border-radius: 5px;
}

.t3-copyright {
    display: none;
}

/* =========================================================
   ABSCHNITT 8 - DYNAMISCHE ABSTÄNDE
========================================================= */
/* Standard-Abstand für alle Seiten */
#t3-mainbody {
    margin-top: 20px !important;
}

/* Spezieller Abstand NUR für die Startseite (html.home) */
html.home #t3-mainbody {
    margin-top: 350px !important;
}

/* Spezial-Abstand NUR für Seiten mit dem Boots-Layout (modern) */
/* Angepasst auf 160px, damit der Inhalt nicht unter den 150px Header rutscht */
#t3-mainbody:has(.boat-layout) {
    margin-top: 160px !important;
}

/* MOBIL-FIX FÜR BOOT-LAYOUT */
@media (max-width: 767px) {
    #t3-mainbody:has(.boat-layout) {
        margin-top: 80px !important; /* Header ist mobil 70px, daher 80px Puffer */
    }
}

/* =========================================================
   ABSCHNITT 9 — RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    #t3-mainbody {
        padding: 15px 12px 50px 12px !important; 
        background-size: 100% 120px !important;
    }
}

/* =========================================================
   ABSCHNITT 10 — GALERIE & BREITE
========================================================= */
.galerie {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.galerie a {
    display: block !important;
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

#t3-content .galerie a img {
    width: 100% !important;     
    height: 100% !important;   
    object-fit: cover !important; 
    transition: transform 0.4s ease !important;
}

#t3-content .galerie a img:hover {
    transform: scale(1.1);
}

@media (min-width: 1200px) {
    #t3-mainbody.container {
        max-width: 1370px !important; 
        width: 100% !important;
    }
}