/* =========================================================================
   ALEXANDER RINGSMUTH IMMOBILIEN - CORPORATE DESIGN STYLESHEET
   Pfad: /hp26/css/default/style.css
   ========================================================================= */

:root {
    /* Corporate Design Farbdefinitionen - Alle Rotelemente durch Grau ersetzt */
    --color-primary: #5A5A5A;   /* Neutrales Dunkelgrau (Ehemals Ringsmuth Rot) */
    --color-black: #000000;     /* Process Black */
    --color-gray: #8C8C8C;      /* Cool Gray 07 */
    --color-beige: #BFBDB0;     /* Pantone 413 C */
    --color-brown: #734226;     /* Warmbraun */
    --color-darkred: #333333;   /* Tiefgrau (Ehemals Bordo) */
    --color-white: #FFFFFF;
    
    --font-main: 'Lato', sans-serif;
}

/* Base Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    color: var(--color-black);
    line-height: 1.6;
    background-color: #FAFAFA;
    overflow-x: hidden; /* Verhindert horizontales Scrollen durch fliegende Elemente */
}

/* Typografie */
h1, h2, h3, h4 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--color-black);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a.text-link {
    color: var(--color-primary);
    text-decoration: none;
}
a.text-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   STICKY HEADER BASE (WEISSER HINTERGRUND)
   ========================================================================= */

header.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* =========================================================================
   1. DESKTOP ANSICHT (> 1024px): LOGO MITTIG, NAV DARUNTER
   ========================================================================= */

@media (min-width: 1025px) {
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.2rem 1.5rem 0.6rem;
    }

    .logo-link {
        display: inline-block;
        margin-bottom: 0.8rem;
    }

    .site-logo {
        max-height: 70px;
        width: auto;
        display: block;
    }

    .hamburger-btn {
        display: none;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 2.2rem;
    }

    .main-nav a {
        text-decoration: none;
        color: var(--color-black);
        font-size: 0.9rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s;
    }

    .main-nav a:hover {
        color: var(--color-primary);
    }
}

/* =========================================================================
   2. TABLET ANSICHT (769px BIS 1024px): BREITENANPASSUNG
   ========================================================================= */

@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.5rem 0.5rem;
    }

    .site-logo {
        max-height: 55px;
        width: auto;
        margin-bottom: 0.6rem;
    }

    .hamburger-btn {
        display: none;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 1.2rem;
    }

    .main-nav a {
        text-decoration: none;
        color: var(--color-black);
        font-size: 0.85rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* =========================================================================
   3. HANDY / MOBIL ANSICHT (<= 768px): LOGO LINKS, HAMBURGER RECHTS
   ========================================================================= */

@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
    }

    .logo-link {
        display: flex;
        align-items: center;
    }

    .site-logo {
        max-height: 42px;
        width: auto;
    }

    /* Hamburger Button Styling (3 waagrechte Striche) */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }

    .hamburger-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Animation bei geöffnetem Menü (X-Symbol) */
    .hamburger-btn.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .hamburger-btn.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    /* Dropdown Menü für Mobilgeräte */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        border-bottom: 3px solid var(--color-primary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .main-nav.is-active {
        display: block !important;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-beige);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        text-decoration: none;
        color: var(--color-black);
        font-size: 0.95rem;
        font-weight: 400;
        text-transform: uppercase;
    }

    .main-nav a:hover {
        background-color: rgba(90, 90, 90, 0.08);
        color: var(--color-primary);
    }
}

/* =========================================================================
   SEKTIONS-KOPFBILDER (ABSOLUTE PFÄDE INKL. UNTERORDNER /hp26/)
   ========================================================================= */

.section-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), 
                url('/hp26/css/default/images/1.png') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-hero h1 {
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.section-hero h3 {
    color: var(--color-white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.5rem;
}

.section-hero p {
    color: var(--color-white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    font-size: 1.1rem;
}

.section-header-banner {
    position: relative;
    width: 100%;
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--color-primary);
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.section-header-banner h2 {
    position: relative;
    z-index: 2;
    color: var(--color-white) !important;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 0;
    display: inline-block;
    padding-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.banner-sec-2 {
    background-image: url('/hp26/css/default/images/2.png');
}

.banner-sec-3 {
    background-image: url('/hp26/css/default/images/3.png');
}

.banner-sec-4 {
    background-image: url('/hp26/css/default/images/4.png');
}

.banner-sec-5 {
    background-image: url('/hp26/css/default/images/5.png');
}

.text-center {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .section-hero {
        padding: 4.5rem 1.5rem 4rem;
        min-height: 420px;
    }

    .section-header-banner {
        padding: 2.2rem 1.2rem;
        margin-bottom: 1.5rem;
    }

    .section-header-banner h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-hero {
        padding: 3.5rem 1rem 3rem;
        min-height: 340px;
    }

    .section-hero p {
        font-size: 0.95rem;
    }

    .section-header-banner {
        padding: 1.6rem 1rem;
        margin-bottom: 1.2rem;
    }

    .section-header-banner h2 {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
}

/* =========================================================================
   LAYOUT SEKTIONEN, RASTER, FORMULARE & FOOTER
   ========================================================================= */

.section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-bg-beige {
    background-color: var(--color-beige);
    max-width: 100%;
    border-top: 1px solid var(--color-gray);
    border-bottom: 1px solid var(--color-gray);
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulare & Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-main);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-darkred);
}

.btn-secondary {
    background-color: var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-gray);
}

.btn-full {
    width: 100%;
}

.search-card {
    background: var(--color-white);
    padding: 2rem;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: left;
    color: var(--color-black);
}

.search-card-title {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-gray);
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.form-control-mb {
    margin-bottom: 0.5rem;
}

.lead-form {
    background: var(--color-white);
    padding: 2rem;
    margin-top: 2rem;
    border-left: 5px solid var(--color-primary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.consent-box {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-black);
}

.consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.consent-checkbox {
    margin-top: 3px;
}

/* Raster & Karten */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2-compact {
    margin-top: 0;
    gap: 1rem;
}

.card {
    background: var(--color-white);
    padding: 2rem;
    border: 1px solid var(--color-beige);
    border-top: 4px solid var(--color-primary);
}

.card-secondary {
    border-top-color: var(--color-black);
}

.card-title-black {
    color: var(--color-black);
}

.card-plain {
    border-top: none;
}

.card-list {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--color-white);
    margin-bottom: 0.8rem;
    border: none;
    padding: 0;
    font-size: 0.95rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--color-beige);
    margin: 0;
}

.footer-legal {
    border-top: 1px solid var(--color-gray);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-beige);
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: var(--color-beige);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-login-link {
    color: var(--color-primary);
    font-weight: bold;
}

.footer-subtext {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin: 0;
}

/* =========================================================================
   RANDOM FLIEGENDE FLEDERMÄUSE UND KÜRBISE
   ========================================================================= */

/* Fledermaus 1: Schnell diagonal von unten links nach oben rechts */
html::before {
    content: "🦇";
    position: fixed;
    top: 20%;
    left: -10vw;
    font-size: 2.2rem;
    z-index: 9998;
    pointer-events: none;
    animation: flyRandomBat1 12s linear infinite;
}

/* Kürbis 1: Träges Zick-Zack-Muster quer durch die Bildschirmmitte */
html::after {
    content: "🎃";
    position: fixed;
    top: 50%;
    right: -10vw;
    font-size: 2.8rem;
    z-index: 9998;
    pointer-events: none;
    animation: flyRandomPumpkin1 18s ease-in-out infinite 3s;
}

/* Fledermaus 2: Hoher, unregelmäßiger Flug von rechts oben nach links unten */
body::before {
    content: "🦇";
    position: fixed;
    top: 10%;
    right: -10vw;
    font-size: 1.6rem;
    z-index: 9998;
    pointer-events: none;
    animation: flyRandomBat2 15s ease-in-out infinite 6s;
}

/* Kürbis 2: Rotierende Bewegung von unten rechts nach oben links */
body::after {
    content: "🎃";
    position: fixed;
    bottom: -10vh;
    left: 20vw;
    font-size: 2.2rem;
    z-index: 9998;
    pointer-events: none;
    animation: flyRandomPumpkin2 22s linear infinite 1s;
}

/* Animation Keyframes */
@keyframes flyRandomBat1 {
    0% {
        transform: translate(0, 60vh) scale(0.6) rotate(-20deg);
        opacity: 0;
    }
    10% { opacity: 0.9; }
    30% { transform: translate(35vw, 10vh) scale(1.2) rotate(15deg); }
    60% { transform: translate(70vw, 40vh) scale(0.8) rotate(-10deg); }
    90% { opacity: 0.9; }
    100% {
        transform: translate(115vw, -10vh) scale(1) rotate(25deg);
        opacity: 0;
    }
}

@keyframes flyRandomPumpkin1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    15% { opacity: 1; }
    40% { transform: translate(-40vw, -25vh) rotate(180deg) scale(1.3); }
    70% { transform: translate(-80vw, 15vh) rotate(360deg) scale(0.9); }
    85% { opacity: 1; }
    100% {
        transform: translate(-115vw, -10vh) rotate(540deg) scale(1.1);
        opacity: 0;
    }
}

@keyframes flyRandomBat2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    35% { transform: translate(-30vw, 35vh) scale(0.7) rotate(-25deg); }
    65% { transform: translate(-70vw, 10vh) scale(1.4) rotate(20deg); }
    90% { opacity: 0.8; }
    100% {
        transform: translate(-115vw, 50vh) scale(0.5) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes flyRandomPumpkin2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    20% { opacity: 0.85; }
    50% { transform: translate(-30vw, -70vh) rotate(-180deg) scale(1.4); }
    80% { transform: translate(-60vw, -40vh) rotate(-360deg) scale(1); opacity: 0.85; }
    100% {
        transform: translate(-90vw, -110vh) rotate(-520deg) scale(0.6);
        opacity: 0;
    }
}