/* Responsive Design für die Website */

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    body {
        font-size: var(--font-size-md);
    }

    .logo img {
        height: 40px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: var(--font-size-md);
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    .container,
    main {
        padding-inline: var(--spacing-md);
    }

    h1 {
        font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem);
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
    }

    p,
    li {
        line-height: var(--line-height-relaxed);
    }

    .internal-section {
        padding: 15px;
    }

    .user-info {
        padding: 10px;
    }

    .training-plan,
    .announcement,
    .document-item {
        padding: 10px;
    }

    .admin-controls {
        padding: 15px;
    }

    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .user-table,
    .user-table thead,
    .user-table tbody,
    .user-table th,
    .user-table td,
    .user-table tr {
        display: block;
    }

    .user-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .user-table tr {
        margin-bottom: var(--spacing-md);
        border: 1px solid var(--color-border-default);
        border-radius: var(--border-radius-md);
        background: var(--color-card-light);
        box-shadow: var(--box-shadow-sm);
    }

    .user-table td {
        border-bottom: 1px solid var(--color-border-default);
    }

    .user-table td:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .main-nav a {
        padding: 10px 12px;
        font-size: var(--font-size-sm);
    }

    h1 {
        font-size: clamp(1.75rem, 1.55rem + 1vw, 2.125rem);
    }

    h2 {
        font-size: clamp(1.375rem, 1.25rem + 0.8vw, 1.75rem);
    }

    h3 {
        font-size: clamp(1.125rem, 1.05rem + 0.6vw, 1.375rem);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: var(--font-size-md);
    }

    button {
        min-height: 44px;
        padding: 10px 15px;
        font-size: var(--font-size-md);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .internal-section {
        padding: 18px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 85%;
    }

    .main-nav a {
        padding: 12px 16px;
    }
}
