/* Import der modernen Schriftart 'Poppins' von Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =================================
   1. Globale Stile & Variablen
   ================================= */
:root {
    /* Farben basierend auf dem bereitgestellten Logo */
    --primary-color: #0C7B93;
    --primary-color-hover: #0A6A7E;
    --background-dark: #837971;
    --background-light: #453E38;
    --text-primary: #EFEFEF;
    --text-secondary: #BDB7B0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(12, 123, 147, 0.2);
    --gradient-primary: linear-gradient(45deg, #0C7B93, #1A9DB6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Telefonnummern-Styling - verhindert Browser-Standard-Styles */
a[href^="tel"] {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-style: normal !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
    pointer-events: auto !important;
}

a[href^="tel"]:visited,
a[href^="tel"]:hover,
a[href^="tel"]:focus,
a[href^="tel"]:active {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-style: normal !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
}

/* Spezifisch für Kontaktkarten */
.contact-card p.phone-number,
.contact-card p.phone-number a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
}

/* Spezifisch für Footer */
.footer-section p a[href^="tel"] {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    -webkit-text-fill-color: var(--text-secondary) !important;
}

/* =================================
   2. Navigation
   ================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(82, 74, 67, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(54, 48, 43, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 68px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* =================================
   3. Hero Section
   ================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    padding: 0 20px;
    background: var(--background-dark)
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 0rem;
}

.hero-logo img {
    height: min(380px, 40vh);
    max-height: 380px;
    width: auto;
    filter: drop-shadow(0 10px 30px var(--shadow-color));
    transition: transform 0.3s ease;
    animation: logoPulse 2s infinite alternate ease-in-out;
}


@keyframes logoPulse {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.03);
    }
}

.hero-logo:hover img {
    transform: scale(1.05);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(12, 123, 147, 0.4);
}

/* =================================
   4. Sections Allgemein
   ================================= */
.section {
    padding: 100px 0;
    background: var(--background-dark);
    border-top: 1px solid var(--border-color);
}

.section:nth-child(even) {
    background: var(--background-light);
}

.section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
    color: var(--text-primary);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* =================================
   5. Services Grid
   ================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--background-light);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
}

/* =================================
   6. Über Mich Section
   ================================= */
.about-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.about-text {
    text-align: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.social-links-about {
    margin-top: 2rem;
}

.social-links-about h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.social-icon img {
    height: 20px;
    width: auto;
}

/* =================================
   7. Kontakt Section
   ================================= */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--background-light);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
}

.map-section {
    margin-top: 5rem;
    text-align: center;
}

.map-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-note {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* =================================
   8. Footer
   ================================= */
footer {
    background: var(--background-light);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    width: 100%;
    text-align: left;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.6;
}

.footer-section p a {
    display: inline !important;
}

.footer-section p {
    word-break: keep-all;
    overflow-wrap: normal;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-links img {
    height: 24px;
    width: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social-links img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* =================================
   9. Animationen
   ================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}