/* ==========================================================================
   martin-seidel.com — single shared stylesheet
   No external fonts, no CDN, no build step. DSGVO-friendly.
   ========================================================================== */

:root {
    --color-bg: #f5f5f0;
    --color-surface: #ffffff;
    --color-border: #e5e5e0;
    --color-text: #2b2b2b;        /* Body text — strong contrast */
    --color-text-muted: #555555;  /* Body-secondary — passes WCAG AA on bg */
    --color-text-quiet: #6b6b6b;  /* Tertiary like dates — still AA */
    --color-accent: #0078d4;
    --color-accent-deep: #005a9e;
    --color-accent-soft: #e8f4fd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-pill: 20px;
    --max-content: 1100px;

    /* System-font stack — visually similar to Segoe UI but works on Mac/Linux/Windows.
       No external font fetch. */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ----- Skip link ----- */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--color-accent);
    color: #fff;
    padding: 12px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
}

/* ----- Focus styling (keyboard) ----- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ----- Nav ----- */
nav {
    background-color: var(--color-surface);
    padding: 20px 80px;
    box-shadow: var(--shadow-sm);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    max-width: var(--max-content);
    margin: 0 auto;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 400;
    padding: 6px 2px;
    transition: color 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav ul li a:hover {
    color: var(--color-accent);
}

nav ul li a.active {
    color: var(--color-accent);
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
}

/* ----- Layout ----- */
.content {
    padding: 60px 80px;
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
}

/* ----- Footer ----- */
footer {
    background-color: var(--color-bg);
    padding: 30px 80px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

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

/* ----- Headings ----- */
h1 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* ==========================================================================
   Home page
   ========================================================================== */

.profile-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 50px;
    max-width: 720px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #e0e5eb;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
    letter-spacing: -0.01em;
}

.profile-tagline {
    font-size: 16px;
    color: var(--color-accent-deep);
    font-weight: 500;
    margin-bottom: 16px;
}

.profile-description {
    font-size: 15.5px;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 16px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    min-height: 44px;
    cursor: pointer;
    background: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-deep);
}

.btn-secondary {
    color: var(--color-text);
    border-color: var(--color-border);
    background-color: #fff;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.at-glance-container {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 720px;
    margin-bottom: 30px;
}

.glance-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.glance-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.glance-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.glance-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-muted);
}

.glance-text {
    flex: 1;
    font-size: 15px;
    color: var(--color-text);
}

.key-skills {
    margin-top: 25px;
    padding-top: 25px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    border: 1px solid var(--color-border);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    color: var(--color-text-muted);
    word-break: break-word;
}

.contact-value a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover,
.contact-value a:focus-visible {
    color: var(--color-accent);
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 720px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.form-row .required {
    color: #c8553d;
    margin-left: 2px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
}

.form-row input:invalid:not(:placeholder-shown):not(:focus),
.form-row textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #c8553d;
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.contact-form .btn {
    margin-top: 4px;
}

.form-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 14px;
    line-height: 1.55;
}

.contact-status {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 720px;
}

.contact-status p { margin-bottom: 6px; }

.contact-status-success {
    background-color: #e6f4ea;
    color: #2c5933;
    border: 1px solid #b7d8c0;
}

.contact-status-error {
    background-color: #fdecea;
    color: #8b2418;
    border: 1px solid #f3c1bc;
}

.contact-status-error ul {
    margin: 4px 0 0 20px;
    padding: 0;
}

.contact-alt {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 18px;
    max-width: 720px;
}

.contact-alt a {
    color: var(--color-accent);
    text-decoration: none;
}

.contact-alt a:hover,
.contact-alt a:focus-visible {
    text-decoration: underline;
}

/* Honeypot field — visually hidden, still in the DOM for bots to fill. */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Experience page
   ========================================================================== */

.timeline {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item {
    position: relative;
    padding-left: 35px;
    margin-bottom: 40px;
}

.timeline-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 10px;
}

.logo-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.content-text {
    flex: 1;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 18px;
    width: 1px;
    height: calc(100% + 22px);
    background-color: #ddd;
}

.timeline-item:last-child::after {
    display: none;
}

.date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.role-title {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.company {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.description {
    font-size: 14.5px;
    color: var(--color-text);
    line-height: 1.65;
}

.education-details {
    font-size: 14.5px;
    color: var(--color-text);
    line-height: 1.7;
    margin-top: 8px;
}

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

.education-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
}

.education-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ==========================================================================
   Legal pages (imprint / privacy)
   ========================================================================== */

.legal-content {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

.legal-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-top: 18px;
    margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
    font-size: 14.5px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--color-accent-deep);
}

/* ==========================================================================
   404 page
   ========================================================================== */

.error-block {
    text-align: center;
    padding: 60px 0;
}

.error-block .code {
    font-size: 72px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-block p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media screen and (max-width: 768px) {
    nav {
        padding: 12px 20px;
    }

    nav ul {
        gap: 24px;
    }

    .content {
        padding: 30px 20px;
    }

    h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 26px;
    }

    .profile-tagline {
        font-size: 15px;
    }

    .profile-description {
        font-size: 15px;
    }

    .cta-row {
        justify-content: center;
    }

    .section-title {
        font-size: 12px;
    }

    .at-glance-container {
        padding: 22px;
    }

    .skills-tags {
        justify-content: center;
    }

    .timeline-item {
        padding-left: 25px;
        margin-bottom: 35px;
    }

    .timeline-item::before {
        width: 8px;
        height: 8px;
        top: 6px;
    }

    .timeline-item::after {
        left: 3.5px;
        top: 14px;
    }

    .timeline-content {
        flex-direction: column;
        gap: 15px;
        margin-top: 8px;
        align-items: flex-start;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }

    .role-title {
        font-size: 16px;
    }

    footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    nav {
        padding: 10px 15px;
    }

    nav ul {
        gap: 18px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .content {
        padding: 20px 15px;
    }

    h1, .profile-name {
        font-size: 23px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    nav, footer, .cta-row, .skip-link {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }
    .content {
        padding: 0;
        max-width: 100%;
    }
    .at-glance-container,
    .logo-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    a {
        color: #000;
    }
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
    .timeline-item {
        padding-left: 0;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
