/* Allgemeines Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #007bff;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav .tab-btn {
    background: transparent;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

nav .tab-btn.active {
    background: white;
    color: #007bff;
}

main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.tab-content.active {
    display: flex;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-area input,
.input-area select,
.input-area button {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.input-area button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.input-area button:hover {
    background: #0056b3;
}

.preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-area canvas {
    max-width: 100%;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    .tab-content {
        flex-direction: row;
        gap: 2rem;
    }

    .input-area, .preview-area {
        flex: 1;
    }
}
