
/* ===== Global Reset & Base Styles ===== */
:root {
    --color-text: #1d1d1f;
    --color-bg: #ffffff;
    --color-accent: #0071e3;
    --color-success: #2e7d32;
    --color-error: #c62828;
    --color-success-bg: #e6fbe7;
    --color-error-bg: #ffebee;
    --radius: 12px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Layout Utilities ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-between { justify-content: space-between; align-items: center; }
.gap-20 { gap: 20px; }
.scroll-x { overflow-x: auto; }

/* ===== Card Wrapper ===== */
.card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Form Elements ===== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.form-select,
textarea {
    font-size: 16px;
    padding: 10px 14px;
    border: 2px solid #d2d2d7;
    border-radius: var(--radius);
    background-color: #f5f5f7;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}
.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}
.btn-primary:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

/* ===== Feedback / Alerts ===== */
.alert {
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 600;
}
.alert-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
}
.alert-error {
    background-color: var(--color-error-bg);
    color: var(--color-error);
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basis */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial;
    font-size: 17px;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
}











/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 31, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 500;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}



/* Responsives Design */
@media (max-width: 768px) {
    .header__menu-toggle {
        display: flex;
    }

    .header__nav {
        display: none;
        flex-direction: column;
        background-color: rgba(22,22,23,0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
        border-radius: 12px;
    }

    .header__nav.active {
        display: flex;
    }

    .header__nav .nav__list {
        flex-direction: column;
        gap: 10px;
    }

    .mega-menu {
        position: static;
        transform: none;
        opacity: 0;
        pointer-events: none;
        box-shadow: none;
        transition: opacity 0.3s ease;
    }

    .mega-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mega-menu__content {
        flex-direction: column;
        gap: 20px;
    }
}



/* photoeditor

/* === Photoeditor Styles === */

/* Formularstruktur */
.editor-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

/* Weicher Hintergrund mit feiner Trennung */
.editor-section {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
}

/* Canvas noch klarer zentrieren */
.editor-wrapper {
    justify-content: center;
    text-align: center;
}

/* Optionaler Shadow für Canvas-Rahmen */
#canvas-container {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

/* Falls fabric.js eigene Buttons oder Tools zeigt: optisches Tuning */
canvas + .upper-canvas {
    border-radius: 16px;
}

/* Fabric.js Tool Icons – generisch */
.fabric-button, .fabric-control {
    background-color: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fabric-button:hover, .fabric-control:hover {
    background-color: #e5e5ea;
    border-color: #a1a1a6;
}


.form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    min-width: 250px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.form-input {
    max-width: 240px;
    
    appearance: none;
    font-size: 16px;
    padding: 10px 14px;
    border: 2px solid #d2d2d7;
    /* border-radius: 20px; */
    margin: auto;
    background-color: #f5f5f7;
    color: #1d1d1f;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;

}
.form-select {
    appearance: none;
    font-size: 16px;
    padding: 10px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background-color: #f5f5f7;
    color: #1d1d1f;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:hover,
.form-select:hover {
    border-color: #a1a1a6;
}

.form-input:focus,
.form-select:focus {
    border-color: #0071e3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
}

/* Canvas-Wrapper */
.editor-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
}

#canvas-container {
    border: 1px solid #ccc;
    overflow: hidden;
    max-width: 540px;
    max-height: 960px;
    background-color: #fff;
    display: block;
}

/* Canvas selbst in 50%-Vorschau */
canvas {
    transform: scale(0.5);
    transform-origin: top left;
    display: block;
}

/* Responsives Verhalten */
@media (max-width: 768px) {
    .editor-form {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    .editor-wrapper {
        padding: 20px 0;
    }

    #canvas-container {
        max-width: 100%;
    }

    canvas {
        transform: scale(0.4);
    }
}
@media (max-width: 480px) {
    canvas {
        transform: scale(0.3);
    }

    .editor-section {
        padding: 30px 0;
    }

    #canvas-container {
        max-width: 100%;
        border-radius: 12px;
    }
}