 /* STEGOS IMMOBILIEN DESIGN */
/* CREATED BY LISA ENGEL */

:root {
/* Header, Footer, Main Content */
    --gray-100: #f4f6f8;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --blue-light: #8faec0;
    --blue-dark: #3f6478;
    --dirty-blue: #304b59;
    --text-main: #1f2933;
/* Download */
    --dl-pdf-bg:     #e8f0f5;
    --dl-pdf-fold:   #cddce6;
    --dl-pdf-border: #a8c0ce;
    --dl-pdf-line:   #304b59;
    --dl-card-bg:        rgba(48, 75, 89, 0.35);
    --dl-card-bg-hover:  rgba(48, 75, 89, 0.75);
    --dl-card-border:    rgba(255, 255, 255, 0.12);
    --dl-card-border-hover: rgba(255, 255, 255, 0.35);
    --dl-preview-bg:     rgba(30, 55, 70, 0.5);
    --dl-preview-bg-hover: rgba(30, 55, 70, 0.75);
    --dl-btn-bg:     rgba(48, 75, 89, 0.85);
    --dl-btn-hover:  #3f6478;
    --dl-text:       #ffffff;
    --dl-text-muted: rgba(255, 255, 255, 0.6);
    --dl-badge-bg:   #3f6478;
    --dl-badge-text: #ffffff;
    --dl-modal-bg:   rgba(0, 0, 0, 0.6);
    --dl-modal-box:  #1f2e38;
    --dl-modal-border: rgba(255,255,255,0.1);
}

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

html {
    overflow-y: scroll;
}

html, body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Arial, sans-serif;
    background: transparent;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

body:has(.dl-modal-overlay.open) .main-header,
body:has(.dl-modal-overlay.open) .jubilaeum,
body:has(.dl-modal-overlay.open) .bgSlider {
    z-index: 0 !important;
}

.bgSlider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.bgSlide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.bgSlide.active {
    opacity: 1;
}

header, main, footer {
    position: relative;
    z-index: 1;
    color: white;
    padding: 30px;
}

header, footer {
    background: rgba(0,0,0,0.45);
}

main.content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header {
    background: transparent;
    z-index: 1;
}

.main-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(48, 75, 89,1) 0%,
        rgba(48, 75, 89,0.75) 25%,
        rgba(48, 75, 89,0.50) 50%,
        rgba(48, 75, 89,0.25) 75%,
        rgba(48, 75, 89,0.0) 100%
    );
}

.top-bar {
    max-width: auto;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 75px;
    filter:
        drop-shadow(0 0 2px rgba(255,255,255,0.6))
        drop-shadow(0 0 6px rgba(255,255,255,0.8));
    z-index: 3;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 3;
}

nav a {
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

nav a:hover {
    background: rgba(63, 100, 120, 0.8);
    color: #fff;
    transform: translateY(-2px);
}

@keyframes nav-active-pulse {
    0%   { box-shadow: 0 0 0 rgba(63,100,120,0.0); }
    50%  { box-shadow: 0 0 14px rgba(63,100,120,0.45); }
    100% { box-shadow: 0 0 0 rgba(63,100,120,0.0); }
}

nav a.active {
    background: var(--dirty-blue);
    color: #fff;
    box-shadow:
        0 8px 20px rgba(48, 75, 89, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.15);
    animation: nav-active-pulse 2.8s ease-in-out infinite;
}

.phone-tile {
    background: var(--dirty-blue);
    color: #FFF;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
}

.jubilaeum {
    position: fixed;
    top: 130px;
    right: 20px;
    z-index: 2;
    pointer-events: none;
    animation:
        jubilaeum-slide-in 1.3s cubic-bezier(.16,.9,.3,1.4) forwards;
}

.jubilaeum-inner {
    display: inline-block;
    animation: jubilaeum-float 6s ease-in-out infinite;
    transform: translate3d(0,0,0);
    will-change: transform;
}

.jubilaeum img {
    width: 250px;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

@keyframes jubilaeum-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-160vw) scale(0.85) rotate(-8deg);
    }
    45% {
        opacity: 1;
        transform: translateX(60px) scale(1.05) rotate(4deg);
    }
    60% {
        transform: translateX(-40px) scale(0.98) rotate(-3deg);
    }
    72% {
        transform: translateX(22px) scale(1.03) rotate(2deg);
    }
    84% {
        transform: translateX(-10px) scale(0.99) rotate(-1deg);
    }
    100% {
        transform: none;
    }
}

@keyframes jubilaeum-float {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(0, -8px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.jubilaeum.no-animation {
    animation: jubilaeum-float 6s ease-in-out infinite !important;
}

.content {
    top: auto;
    width: 100%;
    flex: 1;
}

.content h1 {
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0px 20px #000;
    margin-top: 30px;
    margin-bottom: 10px;
}

.content h2 {
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0px 20px #000;
    margin-top: 30px;
    margin-bottom: 10px;
}

.content p {
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0px 20px #000;
    margin-bottom: 15px;
    font-size: 20px;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 25px;
    background-color: rgba(48, 75, 89, 0.3);
    padding: 30px 40px;
    box-shadow: none;
    transition: background-color 0.4s ease-in-out;
}

.content-inner:hover {
    background-color: rgba(48, 75, 89, 0.8);
    border-radius: 25px;
    transition:
        background-color 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.footer {
    background: #ffffff;
    border-top: 1px solid var(--gray-300);
    padding: 40px 20px;
    color: var(--text-main);
    margin-top: auto;
}

.access-wrapper {
    width: 100%;
    background: var(--blue-dark);
    padding: 10px 5px;
    justify-content: center;
}

.access {
    max-width: 1200px;
    color: white;
    margin: auto;
    text-align: center;
}

.access a {
    color: white;
    text-decoration: none;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer strong {
    color: var(--blue-dark);
}

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

.footer a:hover {
    text-decoration: underline;
}

.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2933;
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.25);
}

.privacy-inner {
    max-width: 1000px;
    margin: auto;
}

.privacy-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.privacy-actions button {
    padding: 8px 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

#privacy-accept {
    background: #1d4ed8;
    color: #fff;
}

#privacy-decline {
    background: #6b7280;
    color: #fff;
}

/* Formulare downloaden */
.dl-intro {
    margin-bottom: 28px !important;
    font-size: 16px !important;
}

.dl-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.dl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(48, 75, 89, 0.4);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dl-filter-btn:hover {
    background: rgba(63, 100, 120, 0.7);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.dl-filter-btn.active {
    background: var(--dirty-blue);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.dl-count {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 600;
}

.dl-filter-btn.active .dl-count {
    background: rgba(255, 255, 255, 0.25);
}

.dl-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 55, 70, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 220px;
    color: var(--dl-text-muted);
    transition: border-color 0.2s;
}

.dl-search-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.dl-search {
    background: none;
    border: none;
    outline: none;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.87rem;
    color: #ffffff;
    width: 100%;
}

.dl-search::placeholder {
    color: var(--dl-text-muted);
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.dl-card {
    background: var(--dl-card-bg);
    border: 1px solid var(--dl-card-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    animation: dl-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dl-card:hover {
    background: var(--dl-card-bg-hover);
    border-color: var(--dl-card-border-hover);
    transform: translateY(-3px);
}

@keyframes dl-card-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.dl-card-preview {
    position: relative;
    background: var(--dl-preview-bg);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 24px;
    cursor: pointer;
    height: 148px;
    width: 100%;
    overflow: hidden;
    transition: background 0.2s ease;
}

.dl-card-preview:hover {
    background: var(--dl-preview-bg-hover);
}

.dl-pdf-icon {
    width: 66px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    transition: transform 0.22s ease;
    position: relative;
    z-index: 1;
}

.dl-card:hover .dl-pdf-icon {
    transform: scale(1.07) rotate(-1deg);
}

.dl-preview-hint {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: "Segoe UI", Arial, sans-serif;
    padding: 4px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    pointer-events: none;
}

.dl-card:hover .dl-preview-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dl-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    background: var(--dl-badge-bg);
    color: var(--dl-badge-text);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
}

.dl-card-body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dl-card-title {
    font-size: 0.97rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

.dl-card-desc {
    font-size: 0.78rem !important;
    color: var(--dl-text-muted) !important;
    text-shadow: none !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    flex: 1 !important;
}

.dl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dl-meta {
    font-size: 0.7rem;
    color: var(--dl-text-muted);
}

.dl-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--dl-btn-bg);
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.dl-btn-download:hover {
    background: var(--dl-btn-hover);
    border-color: rgba(255,255,255,0.4);
}

.dl-empty,
.dl-empty-state {
    color: rgba(255,255,255,0.7) !important;
    text-shadow: none !important;
    padding: 40px 0 20px;
    font-size: 0.95rem !important;
}

.dl-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--dl-modal-bg);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow-y: auto;
}

.dl-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.dl-modal-box {
    background: var(--dl-modal-box);
    border: 1px solid var(--dl-modal-border);
    border-radius: 14px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    transform: scale(0.96) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dl-modal-overlay.open .dl-modal-box {
    transform: scale(1) translateY(0);
}

.dl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 12px;
    flex-shrink: 0;
}

.dl-modal-title {
    font-weight: 600;
    font-size: 0.97rem;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.dl-modal-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dl-modal-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dirty-blue);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: background 0.18s ease;
}

.dl-modal-dl-btn:hover {
    background: var(--blue-dark);
}

.dl-modal-close-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.8);
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 1rem;
    cursor: pointer;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: background 0.18s ease;
}

.dl-modal-close-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}

.dl-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#dl-pdf-frame {
    width: 100%;
    height: 70vh;
    min-height: 300px;
    border: none;
    display: block;
    background: #fff;
    flex: 1;
}

@media (max-width: 1024px) {
    .content-inner {
        padding: 40px 25px;
    }
}

@media (min-width: 901px) {
    main.content {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .main-header {
        background: transparent;
        z-index: 2;
        position: relative;
    }

    nav {
        flex-wrap: wrap;
        gap: 8px;
        border-radius: 999px;
    }

    nav a {
        color: #FFF;
        background: rgba(0,0,0,0.6);
        padding: 8px 10px;
        font-size: 14px;
    }

    nav a.active {
        animation: none;
    }

    .main-header::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(48, 75, 89,1) 0%,
            rgba(48, 75, 89,0.75) 25%,
            rgba(48, 75, 89,0.50) 50%,
            rgba(48, 75, 89,0.25) 75%,
            rgba(48, 75, 89,0.0) 100%
        );
        pointer-events: none;
        z-index: -1;
    }

    .bgSlide {
        top: 0;
    }

    .nav-hide {
        display: none;
    }

    main.content {
        display: block;
        padding-top: 20px;
        padding-bottom: 20px;
    }
	
	.content h1 {
    text-shadow: 0 0 0px #fff, 0 0px 0px #fff;
	}

	.content h2 {
    text-shadow: 0 0 0px #fff, 0 0px 0px #fff;
	}

    .top-bar {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .logo {
        display: block;
        margin: 0 auto;
        filter:
            drop-shadow(0 0 2px rgba(255,255,255,0.6))
            drop-shadow(0 0 6px rgba(255,255,255,0.8));
    }

    .jubilaeum img {
        display: none;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .phone-tile {
        margin: 0 auto;
        color: #FFF;
    }

    .content {
        padding: 30px 0;
    }

    .content-inner {
        max-width: 100%;
        padding: 30px 20px;
    }

    .content-inner.is-active {
        background-color: rgba(48, 75, 89, 0.8);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
	}
	
    .dl-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .dl-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .dl-search-wrap {
        min-width: 0;
    }

    #dl-pdf-frame {
        height: 60vh;
    }
	
	.dl-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
	padding: 0;
    align-items: flex-start;
	}

    .dl-modal-box {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .dl-modal-body {
        flex: 1;
        overflow: hidden;
    }

    #dl-pdf-frame {
        height: 100%;
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .dl-grid {
        grid-template-columns: 1fr 1fr;
    }
	
	.dl-card-footer {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dl-meta {
        width: 100%;
    }

    .dl-btn-download {
        width: 100%;
        justify-content: center;
    }
}

@media (hover: hover) {
    .content-inner:hover {
        background-color: rgba(48, 75, 89, 1);
    }
}

@media (hover: none) {
    .content-inner:active,
    .content-inner:focus-within,
    .content-inner.is-active {
        background-color: rgba(48, 75, 89, 0.3);
    }
}

.content-inner {
    box-shadow: none !important;
}