/* Globale Stile & Variablen */
:root {
    --primary-color: #003366; /* Dunkelblau */
    --accent-color: #007BFF;  /* Hellblau */
    --light-gray: #F4F4F4;
    --dark-gray: #333;
    --text-color: #4a4a4a;
    --white: #FFFFFF;
    --container-width: 960px; /* Breite des Inhaltsbereichs */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem; /* 16px */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem; /* 16px */
}

h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 1.875rem; } /* 30px */
h3 { font-size: 1.25rem; } /* 20px */

section {
    padding: 4rem 1rem; /* 64px oben/unten */
}

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: #f9fafb; }

/* Navigation */
nav.main-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Logo & Text Anpassung */
nav.main-nav .logo-link {
    display: flex; /* Stellt Logo und Text nebeneinander */
    align-items: center; /* Zentriert Logo und Text vertikal */
    color: var(--white); /* Stellt sicher, dass der Text weiß ist */
    text-decoration: none; /* Entfernt Unterstreichung vom Link */
}

nav.main-nav .logo-link img {
    height: 2.5rem; /* 40px Höhe für das Logo, passt gut zur Navigationsleiste */
    margin-right: 0.75rem; /* 12px Abstand zwischen Logo und Text */
}

nav.main-nav .logo-link .logo-text {
    font-size: 1.25rem; /* 20px Schriftgröße für den Namen */
    font-weight: bold;
}


nav.main-nav .desktop-menu {
    display: none; /* Standardmäßig für Mobile ausblenden */
}

nav.main-nav .desktop-menu a {
    color: var(--white);
    margin-left: 1rem; /* 16px */
    padding-bottom: 0.25rem; /* Für den Border */
}
nav.main-nav .desktop-menu a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
nav.main-nav .desktop-menu a.active { /* Aktive Seite hervorheben */
     font-weight: 600;
     border-bottom: 2px solid var(--accent-color);
}


#menu-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

#mobile-menu {
    background-color: var(--primary-color);
    padding: 0.5rem 0; /* Mehr Platz */
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem; /* Größere Klickfläche */
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#mobile-menu a:hover, #mobile-menu a.active {
    background-color: var(--accent-color);
    text-decoration: none;
}
#mobile-menu a.active {
    font-weight: 600;
}


/* Hero Section (Startseite) */
header.hero {
    background-color: var(--dark-gray); /* Fallback, falls Bild nicht lädt */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 1rem; /* 80px */
    text-align: center;
}

header.hero .hero-content {
    background-color: rgba(0, 0, 0, 0.6); /* Dunkler Overlay */
    padding: 2.5rem; /* 40px */
    border-radius: 8px;
    display: inline-block; /* Damit Overlay nicht volle Breite einnimmt */
    max-width: 100%;
}

header.hero img.profile-pic {
    width: 18rem; /* 288px */
    height: 18rem;
    border-radius: 8px; /* Rechteckig mit abgerundeten Ecken */
    margin: 0 auto 1.5rem;
    border: 4px solid var(--white);
    object-fit: cover; /* Verhindert Quetschen */
}

header.hero h1 {
    font-size: 2.5rem; /* 40px */
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--white);
}

header.hero p.subtitle {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 1.5rem;
}

header.hero .cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: bold;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
header.hero .cta-button:hover {
    background-color: #0056b3; /* Dunkleres Blau */
    text-decoration: none;
}

/* Leistungsübersicht (Startseite) & Leistungsdetails */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive Spalten */
    gap: 2rem; /* 32px */
}

.service-card {
    background-color: var(--white);
    padding: 1.5rem; /* 24px */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-left: 5px solid var(--accent-color);
}
.service-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Über Mich Seite */
.about-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.about-content img {
    width: 12rem; /* 192px */
    height: 12rem;
    border-radius: 8px; /* Rechteckig mit abgerundeten Ecken */
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover; /* Verhindert Quetschen */
}

/* Kontakt Seite */
.contact-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* .contact-grid bleibt leer oder kann entfernt werden */

.contact-info p, .contact-info ul {
    margin-bottom: 1rem;
}
.contact-info svg {
    width: 1.5rem; /* 24px */
    height: 1.5rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
    flex-shrink: 0; /* Verhindert Schrumpfen */
}
.contact-info .contact-item {
    display: flex;
    align-items: center;
}

/* Formularstile (könnten entfernt werden, schaden aber nicht) */
.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-sizing: border-box; /* Wichtig für 100% Breite */
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover:not(:disabled) {
    background-color: #002244; /* Dunkleres Primärblau */
}
.contact-form button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}


/* Impressum */
.impressum-info p, .impressum-info ul li {
    margin-bottom: 0.5rem;
}
.impressum-info strong {
    display: inline-block;
    min-width: 180px; /* Für bessere Lesbarkeit */
}

/* Footer */
footer.main-footer {
    background-color: #343a40; /* Dunkleres Grau */
    color: #adb5bd; /* Helles Grau */
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem; /* Abstand zum Inhalt */
}
footer.main-footer a {
    color: var(--white);
}
footer.main-footer a:hover {
    color: var(--accent-color);
}

/* Hilfsklassen */
.text-center { text-align: center; }
.hidden { display: none; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: #e5e7eb; } /* Helles Grau */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.rounded { border-radius: 0.25rem; } /* 4px */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; } /* 8px */


/* Media Queries für Responsiveness */
@media (min-width: 768px) { /* Tablet und größer */
    nav.main-nav .desktop-menu {
        display: flex; /* Desktop-Menü anzeigen */
    }
    #menu-btn {
        display: none; /* Mobilen Button ausblenden */
    }
    #mobile-menu {
        display: none !important; /* Mobiles Menü immer ausblenden */
    }

    .about-content {
        display: flex;
        align-items: flex-start; /* Bilder und Text oben ausrichten */
    }
    .about-content img {
        margin-right: 2rem; /* Abstand zwischen Bild und Text */
        margin-bottom: 0;
        flex-shrink: 0; /* Verhindert, dass das Bild schrumpft */
    }

    /* .contact-grid Regel für 2 Spalten entfernt/angepasst */
    /* Falls die Regel noch existiert, entferne grid-template-columns: repeat(2, 1fr); */

}

/* Styling für die verlinkten Service-Kacheln */
a.service-card-link {
    text-decoration: none; /* Keine Unterstreichung */
    color: inherit; /* Textfarbe vom Elternelement erben */
    display: block; /* Stellt sicher, dass der Link die gesamte Kachelfläche einnimmt */
}

/* Hover-Effekt bleibt über .service-card erhalten */
a.service-card-link:hover .service-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Kein zusätzlicher Hover-Effekt direkt auf dem Link */
a.service-card-link:hover {
    text-decoration: none;
     color: inherit;
}

/* Media Queries für Responsiveness */
@media (min-width: 768px) {
    /* ... (bestehende Regeln für Tablets und größer) ... */

    /* Anpassung Kontakt Grid entfernt, da nicht mehr nötig */
}

/* Regeln für kleinere Bildschirme */
@media (max-width: 767px) { /* Gilt für Bildschirme schmaler als 768px */
    header.hero img.profile-pic {
        width: 13.5rem; /* 75% von 18rem */
        height: 13.5rem; /* 75% von 18rem */
    }

    header.hero h1 { /* Nur Hero H1 war schon angepasst */
        font-size: 2rem; /* 32px statt 40px */
    }

    header.hero .hero-content {
        padding: 1.5rem; /* 24px statt 40px */
    }

    /* *** NEUE REGELN FÜR ÜBERSCHRIFTEN AUF MOBILGERÄTEN *** */
    h1 {
        font-size: 2rem; /* 32px statt 40px (Generell für alle H1) */
    }
    h2 {
        font-size: 1.5rem; /* 24px statt 30px */
    }
    h3 {
        font-size: 1.125rem; /* 18px statt 20px */
    }
    /* *** ENDE NEUE REGELN *** */
}

/* Footer Links Styling */
.footer-links { /* Klasse zum p-Tag hinzugefügt für gezielteres Styling */
    margin-top: 0.5rem; /* Etwas Abstand zum Copyright */
}

.footer-links a {
    margin: 0 5px; /* Kleiner Abstand zwischen den Links */
    vertical-align: middle; /* Icons und Text auf einer Linie */
    display: inline-flex; /* Sorgt für korrekte Ausrichtung mit SVG */
    align-items: center; /* Zentriert Icon und Text vertikal */
}

a.linkedin-link svg.linkedin-icon {
    display: inline-block;
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    vertical-align: middle;
    margin: 0 3px;
    fill: currentColor; /* Nimmt die Linkfarbe an (weiß im Footer) */
}

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}