* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f8fafc;
    line-height: 1.6;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

/* Normaler Zustand und Hover */
.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Aktiver Zustand - nur wenn Menu wirklich offen ist */
.nav-links.nav-active ~ .nav-toggle {
    color: #000000;
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-brand i {
    color: #6c5ce7;
    font-size: 1.25em;
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #636e72;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c5ce7;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #2d3436;
}

.nav-link.active {
    color: #000000;
}

/* Main Content */
.container {
    max-width: 800px;
    width: calc(100% - 2rem); /* Berücksichtigt die Seitenränder */
    margin: 7rem auto 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #e2e8f0;
    box-sizing: border-box; /* Damit padding nicht zur Breite addiert wird */
}

.content-page {
    max-width: 800px;
    width: calc(100% - 3rem);
    margin: 7rem auto 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #e2e8f0;
}

.content-section {
    margin-top: 2rem;
}

.content-section h2 {
    color: #2d3436;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content-section p {
    color: #636e72;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

h1 {
    text-align: center;
    color: #2d3436;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

h1 i {
    color: #6c5ce7;
}

.subtitle {
    text-align: center;
    color: #636e72;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.check-form {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #1e293b;
    outline: none;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.2s ease;
}

input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

button {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

button:not(:disabled):hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

button:active {
    transform: translateY(0);
}

/* Loading Section */
.loading {
    display: none;
    text-align: center;
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar .progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a88bfa);
    border-radius: 4px;
    position: absolute;
    animation: progress 2s ease infinite;
}

@keyframes progress {
    0% {
        left: -100%;
        width: 100%;
    }
    50%, 100% {
        left: 100%;
        width: 100%;
    }
}

.loading p {
    color: #6c5ce7;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading p i {
    font-size: 1.2rem;
}

/* Result Sections */
.result {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    animation: slideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success, .error {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
}

.success {
    background: linear-gradient(to bottom right, #ecfdf5, #d1fae5);
    color: #065f46;
    border: 1px solid #6ee7b7;
    animation: successSlide 0.5s ease-out;
}

@keyframes successSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success h2 {
    color: #047857;
    font-weight: 600;
}

.success p {
    color: #065f46;
}

.error {
    background: linear-gradient(to bottom right, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 1px solid #fca5a5;
    animation: errorSlide 0.5s ease-out;
}

@keyframes errorSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error h2 {
    color: #dc2626;
}

.error p {
    color: #991b1b;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success h2, .error h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.success h2 i, .error h2 i {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success h2 i {
    color: #059669;
}

.error h2 i {
    color: #dc2626;
}

.result p {
    font-size: 1.125rem;
    margin: 0 auto 1rem;
    max-width: 500px;
    line-height: 1.6;
    letter-spacing: -0.2px;
    color: inherit;
    opacity: 0.9;
}

/* Status Details */
.status-details {
    list-style: none;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 0.25rem 0;
}

.detail-item i {
    font-size: 1.1rem;
    color: currentColor;
    opacity: 0.9;
    width: 2rem;
    text-align: center;
    padding-top: 0.2rem;
}

.detail-text h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: currentColor;
    opacity: 0.85;
    line-height: 1.4;
}

.detail-text p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Error Details */
.error-details {
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    max-width: 600px;
    text-align: left;
}

.error-details h3 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: #991b1b;
}

.error-section {
    margin-bottom: 2rem;
}

.error-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #991b1b;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.error-hints {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-hints li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
}

.error-hints li i {
    color: #991b1b;
    opacity: 0.8;
    width: 2rem;
    text-align: center;
    font-size: 1.1rem;
    padding-top: 0.2rem;
}

.error-code {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.error-code p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.error-explanation {
    color: #991b1b;
    font-style: italic;
}

.error-hints {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    opacity: 0.9;
}

.error-hints li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.8rem auto;
    font-size: 1rem;
    text-align: left;
    max-width: 500px;
}

.error-hints li i {
    color: #991b1b;
    opacity: 0.8;
    width: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.hint {
    font-weight: 500;
    margin-top: 1.5rem;
    opacity: 0.95;
    font-size: 1.1rem;
    text-align: center;
}

/* Footer Styles */
.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    padding: 3rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: #2d3436;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: #6c5ce7;
}

.footer-section p {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #636e72;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #6c5ce7;
}

.footer-section ul li i {
    color: #6c5ce7;
    width: 20px;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
    color: #636e72;
    font-size: 0.9rem;
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container,
    .content-page {
        margin: 5.5rem 1rem 1rem;
        padding: 1.25rem;
        width: calc(100% - 2rem);
    }

    .navbar {
        height: auto;
        min-height: 60px; /* Ensure consistent navbar height */
    }

    .nav-content {
        padding: 0.75rem 1.5rem;
        position: relative;
    }

    .nav-brand {
        font-size: 1.25rem;
        width: auto; /* Reset width */
        justify-content: flex-start; /* Align to left */
    }

    .nav-toggle {
        display: flex; /* Show on mobile */
        margin-left: auto; /* Push to right */
        background: none;
        color: #000000;
    }

 

    .nav-links {
        display: none;
        width: 100%;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-top: 1px solid rgba(0,0,0,0.1);
        pointer-events: none;
    }

    .nav-links.nav-active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-links .nav-link {
        padding: 0.75rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .nav-links .nav-link:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .nav-links .nav-link.active {
        background: #6c5ce7;
        color: white;
    }

    .nav-mobile {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        padding: 0.25rem 0;
    }

    h1 {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .subtitle {
        font-size: 0.875rem;
        padding: 0 1rem;
    }

    .input-group {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    button {
        width: 100%;
        justify-content: center;
        height: 3rem;
    }

    input[type="text"] {
        width: 100%;
        height: 3rem;
        font-size: 1rem;
    }

    .result {
        padding: 1.25rem;
        margin: 1rem 0.5rem;
        border-radius: 0.75rem;
    }

    .success, .error {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
    }

    .success h2, .error h2 {
        font-size: 1.375rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .success h2 i, .error h2 i {
        font-size: 1.5rem;
        width: 1.75rem;
        height: 1.75rem;
    }

    .success p, .error p {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    /* Status Details Mobile */
    .status-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .detail-item {
        gap: 0.75rem;
    }

    .detail-item i {
        font-size: 1.25rem;
    }

    .detail-text h3 {
        font-size: 0.8125rem;
    }

    .detail-text p {
        font-size: 0.875rem;
    }

    /* Error Details Mobile */
    .error-details {
        margin-top: 1rem;
        padding: 1rem;
    }

    .error-section h4 {
        font-size: 0.9375rem;
    }

    .error-hints li {
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .error-code {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .error-code p {
        font-size: 0.75rem;
    }

    .footer {
        padding: 2rem 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
        justify-content: center;
    }

    .footer-section p, 
    .footer-section ul li {
        font-size: 0.875rem;
    }

    .footer-section ul li a {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 1rem;
        font-size: 0.75rem;
    }
}

/* iPhone SE und kleinere Geräte */
@media (max-width: 380px) {
    .container,
    .content-page {
        margin: 5.5rem 0.75rem 1rem;
        padding: 1rem;
        width: calc(100% - 1.5rem);
    }

    .navbar {
        min-height: 60px; /* Consistent with larger screens */
    }

    .nav-content {
        padding: 0.75rem 1rem; /* More padding on sides */
    }

    .nav-brand {
        font-size: 1.125rem;
        width: auto; /* Reset width */
        justify-content: flex-start; /* Keep left aligned */
    }

    h1 {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.8125rem;
    }

    button {
        height: 2.75rem;
        font-size: 0.875rem;
    }

    input[type="text"] {
        height: 2.75rem;
        font-size: 0.875rem;
    }

    .result {
        padding: 1rem;
    }

    .success h2, .error h2 {
        font-size: 1.125rem;
    }

    .status-details {
        padding: 0.75rem;
    }

    .detail-item {
        gap: 0.5rem;
    }

    .detail-item i {
        font-size: 1.125rem;
    }

    .error-details {
        padding: 0.75rem;
    }

    .error-hints li {
        font-size: 0.75rem;
    }
}