* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --accent-blue: #2563eb;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ff 100%);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.profile-section {
    flex-shrink: 0;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.header-text {
    flex: 1;
    min-width: 250px;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0.25rem 0;
    font-weight: 300;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h2 .icon {
    font-size: 1.5rem;
}

.note {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.2s;
}

.service-item:hover {
    background: #e0e7ff;
    transform: translateX(4px);
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.validity-table {
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.header {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue-dark);
}

.table-row:not(.header):hover {
    background: var(--bg-light);
}

.col-age,
.col-license,
.col-class,
.col-validity {
    font-size: 0.95rem;
}

.table-row.header .col-age,
.table-row.header .col-license,
.table-row.header .col-class,
.table-row.header .col-validity {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-box {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-top: 3px solid var(--primary-blue);
}

.info-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.info-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-item strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
}

button:active {
    transform: translateY(0);
}

.message {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.impressum-content {
    margin-top: 1rem;
}

.impressum-content p {
    line-height: 1.9;
    color: var(--text-medium);
}

.impressum-content strong {
    color: var(--text-dark);
    font-size: 1.05rem;
}

footer {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    header {
        padding: 2rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .validity-table {
        border: none;
    }

    .table-row {
        display: block;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: var(--bg-light);
        border-radius: 6px;
        border: 1px solid var(--border-color);
    }

    .table-row.header {
        display: none;
    }

    .table-row:not(.header) .col-age::before {
        content: "Alter: ";
        font-weight: 600;
        color: var(--primary-blue);
    }

    .table-row:not(.header) .col-license::before {
        content: "Lizenz: ";
        font-weight: 600;
        color: var(--primary-blue);
    }

    .table-row:not(.header) .col-class::before {
        content: "Klasse: ";
        font-weight: 600;
        color: var(--primary-blue);
    }

    .table-row:not(.header) .col-validity::before {
        content: "Gültigkeit: ";
        font-weight: 600;
        color: var(--primary-blue);
    }

    .table-row:not(.header) > div {
        margin-bottom: 0.5rem;
    }

    .table-row:not(.header) > div:last-child {
        margin-bottom: 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    #map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card h2 {
        font-size: 1.25rem;
    }
}
