/* ==========================================================================
   Dr. Robert Bahnsen - Homepage Styles
   Klassisch · Professionell · Vertrauenswürdig
   ========================================================================== */

/* Root Variables */
:root {
    /* Colors - Klassisches Farbschema */
    --primary-color: #1e3a5f;        /* Dunkles Navy-Blau */
    --primary-dark: #0f1f3a;         /* Noch dunkler */
    --primary-light: #2c5282;        /* Helleres Blau */
    --secondary-color: #d4af37;      /* Goldakzent */
    --text-dark: #1a202c;            /* Fast-Schwarz */
    --text-medium: #4a5568;          /* Mittelgrau */
    --text-light: #718096;           /* Hellgrau */
    --background: #ffffff;           /* Weiß */
    --background-alt: #f7fafc;       /* Hellgrau-Hintergrund */
    --border-color: #e2e8f0;         /* Dezentes Grau */

    /* Typography */
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Helvetica Neue', 'Arial', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 4px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

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

a:hover {
    color: var(--primary-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: 60px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-alt {
    background-color: var(--background-alt);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 2rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: var(--spacing-xs);
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 100px;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--background);
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.credential-item {
    background-color: var(--background-alt);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.credential-item strong {
    display: block;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.credential-item ul {
    list-style-position: inside;
    color: var(--text-medium);
}

.credential-item li {
    margin-bottom: var(--spacing-xs);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: var(--spacing-md);
}

.service-details {
    list-style: none;
    padding-left: 0;
}

.service-details li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: var(--spacing-xs);
    color: var(--text-medium);
}

.service-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-lg) auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--background);
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.timeline-content {
    background-color: var(--background);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.company {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.location {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.description {
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.achievements {
    list-style-position: inside;
    color: var(--text-medium);
    padding-left: var(--spacing-sm);
}

.achievements li {
    margin-bottom: var(--spacing-xs);
}

/* Education & Organizations */
.education-section,
.organizations-section {
    margin-top: var(--spacing-xl);
}

.education-grid,
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.education-item,
.org-item {
    background-color: var(--background-alt);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.education-item h4,
.org-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.degree,
.role {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.field {
    font-style: italic;
    color: var(--text-medium);
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.contact-item a {
    font-size: 1.125rem;
    word-break: break-word;
}

.contact-cta {
    background-color: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.contact-cta h3 {
    margin-bottom: var(--spacing-sm);
}

.contact-cta p {
    margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-md);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-photo {
        text-align: center;
        position: relative;
        top: 0;
    }

    .profile-image {
        max-width: 150px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: -28px;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .logo {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    #navbar,
    .footer,
    .cta-buttons {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
    }
}
