/* =========================================================
   1. GLOBALE EINSTELLUNGEN & SCHRIFTEN
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

body, h3, p, .rabatt-typ1 {
    font-family: 'Playfair Display', serif;
}

.rabatt-typ2, .kontakt-info, .nummer-fett, .mail, .mail a, .separator   {
    font-family: Arial, sans-serif;
}

/* =========================================================
   2. CONTAINER-LAYOUT
========================================================= */
.hauptseite-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.HauptseiteBild {
    flex: 1 1 500px;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-composite: intersect;
}

.HauptseiteBild img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.HauptseiteText {
    flex: 1 1 300px;
    text-align: center;
}

/* =========================================================
   3. TEXT-STYLING
========================================================= */
.text-bereich-relativ {
    position: relative;
    z-index: 1;
}

.HauptseiteText h3 {
    font-size: 45px !important;
    line-height: 1.4;
    color: #003164 !important;
    margin-bottom: 10px;
    font-weight: bold !important;
    letter-spacing: 5px;
}

.zeile-zwei {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 5px;
}

.anker-unter-h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -15px 0 20px 0;
}

.anker-unter-h3::before, .anker-unter-h3::after {
    content: "";
    height: 1px;
    background-color: #c4a77e;
    flex: 1;
    margin: 0 10px;
    max-width: 60px;
}

.schreibschrift-bei {
    font-family: 'Pinyon Script', cursive;
    color: #c4a77e;
    font-size: 1.2em;
    font-weight: 600;
    margin-right: 15px;
}

.rabatt-typ1 {
    font-size: 24px !important;
    color: #003164 !important;
    text-transform: uppercase;
    font-weight: bold !important;
    margin-top: 20px;
    letter-spacing: 1px;
}

.rabatt-typ2 {
    font-size: 16px !important;
    color: #003164 !important;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* =========================================================
   4. KONTAKT-BOX & INFO
========================================================= */
.kontakt-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 30px;
    border: 1px solid #f0f0f0;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    /* WICHTIG: Stapel-Ebene erhöhen */
    position: relative; 
    z-index: 10;
}

.kontakt-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    margin: 0 auto;          
    width: fit-content;    
    gap: 0px;
}

.kontakt-info { font-size: 16px !important; color: #444444 !important; font-weight: 600; margin: 0 0 20px 0; letter-spacing: 1px; }
.nummer-fett { font-size: 22px !important; font-weight: 700; color: #003164 !important; margin: 0 0 5px 0; }
.nummer-fett a { color: #003164 !important; text-decoration: none; }
.separator { font-size: 14px; color: #444444 !important; margin: 5px 0; display: flex; align-items: center; justify-content: center; width: 100%; font-weight: 600; letter-spacing: 1px; }
.separator::before, .separator::after { content: ""; height: 1px; background-color: #c4a77e; flex: 1; margin: 0 10px; min-width: 30px; }
.mail { margin-top: 5px; font-size: 22px !important; font-weight: 700; }
.mail a { color: #003164; text-decoration: underline; font-weight: bold; }

.terhi-anker-icon {
    width: 25px !important;
    height: 25px !important;
    display: block;
    filter: invert(72%) sepia(21%) saturate(547%) hue-rotate(334deg) brightness(90%) contrast(85%);
}

/* =========================================================
   5. Windrose (Hintergrund-Wasserzeichen)
========================================================= */
.windrose-hintergrund {
    position: absolute;
    top: 60%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 400px !important;
    height: 400px !important;
    opacity: 0.075;
    z-index: -1;
    pointer-events: none;
    filter: invert(72%) sepia(21%) saturate(547%) hue-rotate(334deg) brightness(90%) contrast(85%);
}

/* =========================================================
   6. RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    .text-mit-windrose { flex-direction: column; }
}

@media (max-width: 767px) {
    .HauptseiteText h3 { font-size: 32px !important; }
    .windrose-hintergrund { width: 180px !important; height: 180px !important; }
}