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

:root {
    /* Corporate Design Farbdefinitionen */
    --color-primary: #800000;   /* 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: #400101;   /* 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;
}

/* 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) {
    /* Hintergrund außerhalb des Lesebereichs auf Sandfarben setzen */
    body {
        background-color: var(--color-beige);
    }

    /* Der Header bleibt durchgehend weiß */
    header.site-header {
        background-color: var(--color-white);
    }

    /* Lesebereich auf Desktop weiß hervorheben */
    .section {
        background-color: var(--color-white);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    }

    /* Spezifische Hintergründe für Sondersektionen beibehalten */
    .section-hero,
    .section-bg-beige {
        background-color: inherit;
    }

    .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(128, 0, 0, 0.05);
        color: var(--color-primary);
    }

    /* Mobile Button-Anpassung: Trennt Buttons vertikal auf Smartphones */
    .btn {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .btn:first-child {
        margin-top: 0;
    }
}

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

/* 1. HERO-SEKTION (Dominantes Kopfbild 1.png - hellere 25 % Abdunkelung) */
.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;
}

/* 2. ALLGEMEINE SEKTIONS-BANNER (Kopfbilder 2.png bis 5.png) */
.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;
}

/* Helles Overlay: Transparenz auf 0.25 gesetzt */
.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);
}

/* Zuordnung der einzelnen Kopfbilder */
.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;
}

/* Responsive Anpassungen der Kopfbilder */
@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: 2px solid transparent; /* Unsichtbarer Rand von 2px */
    margin: 2px;                   /* Basis-Außenabstand */
    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;
}