* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
    padding: 1rem;
    height: 60px;
    padding-left: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #23a6d5, #23d5ab);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero-section {
    position: relative;
    text-align: center;
    padding: 10rem 2rem 8rem;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    overflow: hidden;
    animation: morphBackground 20s ease-in-out infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section h1, 
.hero-section p {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out, glowText 2s ease-in-out infinite alternate;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-box {
    flex: 1;
    margin: 1rem;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: float-element 6s ease-in-out infinite;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #23a6d5, #23d5ab);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #23a6d5, #23d5ab);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px #23a6d5,
                0 0 20px #23a6d5,
                0 0 40px #23a6d5;
    text-shadow: 0 0 5px #fff;
    animation: neon 1.5s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(35, 166, 213, 0.4);
}

footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: radial-gradient(circle at 50% 100%, transparent 25%, #333 25%);
    background-size: 50px 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
}

.immobilien-liste {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.immobilie-card {
    border: none;
    padding: 1.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
}

.immobilie-card:hover {
    transform: 
        perspective(1000px)
        rotateX(10deg)
        rotateY(10deg)
        translateZ(20px);
}

.immobilie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ee7752, #e73c7e);
}

.immobilie-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: all 0.8s ease;
    opacity: 0;
}

.immobilie-card:hover::after {
    opacity: 1;
}

.immobilie-details {
    margin: 1rem 0;
}

.page-header {
    background-color: #f4f4f4;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #23a6d5;
    box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.1);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
}

/* Animationen */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design Verbesserungen */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .service-box {
        margin: 1rem 0;
    }
}

/* Floating Particles Hintergrund */
.hero-section {
    position: relative;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-50px) translateX(100px);
    }
    75% {
        transform: translateY(-75px) translateX(-50px);
    }
}

/* Neon-Effekt für Buttons */
.button {
    box-shadow: 0 0 10px #23a6d5,
                0 0 20px #23a6d5,
                0 0 40px #23a6d5;
    text-shadow: 0 0 5px #fff;
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from {
        box-shadow: 0 0 10px #23a6d5,
                    0 0 20px #23a6d5,
                    0 0 40px #23a6d5;
    }
    to {
        box-shadow: 0 0 5px #23a6d5,
                    0 0 10px #23a6d5,
                    0 0 20px #23a6d5;
    }
}

/* Hover-Effekt für Navigation */
nav ul li a:hover {
    text-shadow: 0 0 10px #fff,
                 0 0 20px #fff,
                 0 0 30px #23a6d5;
}

/* Morphing Background Animation */
@keyframes morphBackground {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}

/* Glowing Text Effect */
@keyframes glowText {
    from {
        text-shadow: 0 0 10px #fff,
                     0 0 20px #fff,
                     0 0 30px #23a6d5,
                     0 0 40px #23a6d5;
    }
    to {
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 15px #23a6d5,
                     0 0 20px #23a6d5;
    }
}

/* Floating Elements Animation */
@keyframes float-element {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Magnetic Button Effect */
.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.button:hover::before {
    opacity: 1;
}

/* Ripple Effect für Klicks */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Kontakt Seite */
.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.kontakt-info .info-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.kontakt-info .info-box:hover {
    transform: translateY(-5px);
}

.kontakt-info .info-box i {
    font-size: 2rem;
    color: #23a6d5;
    margin-right: 1rem;
}

/* Über uns Seite */
.ueber-uns-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.team-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member, .value-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover, .value-box:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image i {
    font-size: 3rem;
    color: white;
}

.value-box i {
    font-size: 3rem;
    color: #23a6d5;
    margin-bottom: 1rem;
}

/* Impressum Seite */
.impressum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.impressum-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.impressum-section h2 {
    color: #23a6d5;
    margin-bottom: 1.5rem;
}

.impressum-section h3 {
    margin: 1.5rem 0 0.5rem;
    color: #333;
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-box i {
    font-size: 3rem;
    color: #23a6d5;
    margin-bottom: 1rem;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Admin Bereich */
.admin-login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.admin-login-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.admin-login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.admin-login-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-dashboard {
    min-height: 100vh;
    background: #f4f4f4;
}

.admin-header {
    background: #333;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-button {
    padding: 0.5rem 1rem;
    background: #e73c7e;
}

.admin-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.connection-log {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.connection-log pre {
    white-space: pre-wrap;
    font-family: monospace;
    margin: 0;
    padding: 1rem;
    background: #333;
    color: #fff;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.db-test-form {
    margin-top: 1rem;
}

.db-test-form .button {
    background: #23a6d5;
}

.db-test-form .button:hover {
    background: #1a8ab0;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    position: relative;
}

.admin-link {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Referenzen Seite */
.referenzen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.referenz-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-button {
    background: none;
    border: 2px solid #23a6d5;
    color: #23a6d5;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: #23a6d5;
    color: white;
}

.referenzen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.referenz-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.referenz-card.show {
    opacity: 1;
    transform: translateY(0);
}

.referenz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.referenz-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.referenz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.referenz-card:hover .referenz-image img {
    transform: scale(1.1);
}

.referenz-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.referenz-tag {
    background: rgba(35, 166, 213, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.referenz-content {
    padding: 1.5rem;
}

.referenz-location {
    color: #666;
    margin: 0.5rem 0;
}

.referenz-location i {
    color: #23a6d5;
    margin-right: 0.5rem;
}

.referenz-testimonial {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.referenz-testimonial i {
    color: #23a6d5;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .referenz-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .filter-button {
        margin: 0;
    }
}

.referenzen-preview {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
                url('/assets/images/ref-bg.jpg') center/cover;
    margin: 2rem 0;
}

.referenzen-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.referenzen-preview p {
    color: #666;
    margin-bottom: 2rem;
}

.referenzen-preview .button {
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

.referenzen-preview .button i {
    margin-right: 0.5rem;
}

/* Tools Seite */
.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tool-box h2 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tool-box h2 i {
    color: #23a6d5;
}

.tool-description {
    color: #666;
    margin-bottom: 2rem;
}

.listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.listing-card .price {
    font-size: 1.2rem;
    color: #23a6d5;
    font-weight: bold;
    margin-bottom: 1rem;
}

.update-info {
    margin-top: 2rem;
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tool-button {
    background: #23a6d5;
}

.tool-button:hover {
    background: #1a8ab0;
}

main {
    padding-top: 80px;
}

/* Version Number */
.version-number {
    position: fixed;
    top: 5px;
    left: 5px;
    background: rgba(35, 166, 213, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    z-index: 2000;
    font-family: monospace;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cache-info {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.cache-fresh {
    background: #4CAF50;
    color: white;
}

.cache-old {
    background: #FFC107;
    color: black;
} 