/* latin-ext */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatinExt.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatinExt.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatinExt.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatinExt.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/PlusJakartaSansLatin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: rgb(27, 38, 59); /* Dunkelblau */
    --accent: rgb(176, 4, 4);   /* Rot */
    --navy: rgb(27, 38, 59);
    --red: rgb(176, 4, 4);
    --light-bg: #f5f5f7;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f7;
    --card-bg: #f9fafb;
    --white: #ffffff;
    --grey-text: #4b5563;
    --text-dark: #1a1a1a;
    --text-muted: #4b5563;
    --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
}
h3 { font-size: 14px; color: #86868b; margin: 30px 0 15px 0; letter-spacing: 1px; }
ul { padding-left: 20px; }
li { margin-bottom: 10px; }

body.app {
    height: 100%;
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

body.backend {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--bg-gray);
    margin: 0;
    padding-bottom: 90px;
}

main { flex: 1 0 auto; }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}
textarea { resize: vertical; min-height: 150px; }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 8%; background: white; border-bottom: 1px solid #ddd;
    position: sticky; top: 0; z-index: 1000;
}

img.logo { width: auto; height: 62px; }

.main-content {
    padding: 0 8% 60px 8%;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.small-main-content {
    padding: 0 18% 60px 18%;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.small-main-content h1, .main-content h1 {
    color: var(--primary);
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    margin-top: 40px;
}

.full-width { grid-column: span 2; }
.cc-scroll-lock { overflow: hidden; }

.contact-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}
.checkbox-group {
    margin: 30px 0;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-item input {
    width: auto;
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.widerruf-hinweis {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

/* Links */
a.nj-link, a.nj-link:hover { color: black; }
a.nj-link:hover, a.nj-link:focus { color: #000; text-decoration: underline; }
a.nj-link:active { color: #000; }

/* Buttons */
.save-btn { background: var(--accent); color: white; border: none; padding: 18px; border-radius: 35px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 30px; }
.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 35px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: transform 0.2s, background 0.2s;
}
.btn-submit:hover {
    background: var(--primary);
    transform: scale(1.02);
}

/* Hero Section */
.hero {
    padding: 60px 8% 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.0rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}


/* --- HERO SECTION --- */
.exec-hero {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 15px solid var(--red);
    gap: 50px;
}

.exec-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -2px;
    color: white;
}

/* --- LEISTUNGEN & MISSION --- */
.services-section {
    padding: 80px 8%;
    background: var(--white);
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.services-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.services-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background: var(--red);
    margin-top: 15px;
}

.services-content {
    flex: 1;
    font-size: 1.1rem;
    color: var(--grey-text);
    column-count: 2;
    column-gap: 40px;
}

/* --- REFERENZ GRID --- */
.section-header {
    padding: 60px 8% 20px;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light-bg);
}

.section-header::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--red);
}

/* Business Cards */
.features {
    padding: 80px 8%;
    background: var(--card-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.reference-grid {
    background-color: var(--light-bg);
    padding: 0 8% 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.ref-card {
    background: var(--navy);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    /* Animation für den Schwebeeffekt definieren */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* NEU: Der Schwebeeffekt (Hover) */
.ref-card:hover {
    transform: translateY(-10px); /* Bewegt die Kachel 10px nach oben */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Fügt einen Schatten hinzu */
}

.ref-card h3 { color: white; margin-top: 10px; }

.ref-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.ref-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

.result-item span { display: block; font-size: 1.1rem; font-weight: 800; color: var(--red); }
.result-item label { font-size: 0.7rem; opacity: 0.5; }

/* Card Styling */
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent); padding-bottom: 15px; margin-bottom: 25px; }
.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* CTA Button Styling */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-card {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    margin-top: auto;
    transition: 0.3s;
}

.btn-card:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* CTA Footer */
.cta-footer {
    text-align: center;
    padding: 120px 8%;
    background: white;
}

.cta-footer h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-footer p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Footer */
.footer-container {
    flex-shrink: 0;
    background-color: var(--primary);
    color: #ffffff;
    padding: 60px 0 40px 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
    width: 100%;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    width: 80%;
    max-width: 1200px;
    line-height: 1.6;
}

/* Cookie */
.cookie-consent-root {
    position: relative;
    z-index: 9999;
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
}

.cookie-consent-modal {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 14px 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.08);
}

/* Flash Messages */
.flash {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f6f7f9;
    color: #111827;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.flash-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.flash-error,
.flash-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.flash-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.flash-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-normal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid input, .form-grid select, .form-grid textarea, .form-normal input, .form-normal select, .form-normal textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fbfbfd;
    transition: border-color 0.3s;
}

/* Forgot links row (left / right) */
.forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    gap: 16px;
}

.forgot a {
    white-space: nowrap;
}

/* File upload */
.upload-section {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.upload-box {
    flex: 1;
    border: 2px dashed #d2d2d7;
    padding: 25px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: #424245;
    transition: background 0.2s;
}
.showfilebox h3 { font-size: 14px; color: #86868b; margin: 30px 0 15px 0; text-transform: uppercase; letter-spacing: 1px; border-left: 0; }
.upload-box:hover {
    background: #fbfbfd;
}

.upload-box--file {
    cursor: pointer;
    display: block;
}

.upload-box--file input[type="file"]{
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* user menu */
.user-menu { position: relative; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.user-name { font-weight: 700; font-size: 14px; color: var(--primary); }
.user-avatar { width: 35px; height: 35px; background: #eee; border-radius: 50%; overflow: hidden; border: 1px solid #ddd; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}
.user-menu .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    z-index: 3000;
    display: none;
}
.user-menu:hover .dropdown,
.user-menu:focus-within .dropdown {
    display: block;
}
.dropdown {
    position: absolute; top: 110%; right: 0; background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 12px;
    padding: 10px; min-width: 150px; display: none; border: 1px solid #eee;
}
.user-menu:hover .dropdown { display: block; }
.dropdown-item { padding: 10px; font-size: 14px; color: var(--accent); text-decoration: none; display: block; font-weight: 700; border-radius: 8px; }

/* nav */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 12px 0; border-top: 1px solid #ddd; z-index: 1000; }
.mobile-nav a { display: block; text-align: center; padding: 12px 0; color: var(--accent); font-weight: 700; }
.mobile-nav a.active { color: var(--primary); }
.desktop-nav { display: flex; gap: 5px; }
.nav-link { text-decoration: none; color: #424245; font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: 20px; transition: 0.2s; cursor: pointer; }
.nav-link.active { background: var(--primary); color: white; }

/* Tables */
.table-wrapper { overflow-x: auto; margin-bottom: 40px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #86868b; font-size: 10px; padding: 12px; text-transform: uppercase; }
td { padding: 15px 12px; border-top: 1px solid #f2f2f7; font-size: 13px; }
.td-bold { font-weight: 700; color: var(--primary); }
.address-sub { font-size: 11px; color: #86868b; display: block; margin-top: 4px; }
.past-row { opacity: 0.7; grayscale(1); }

/* Cropping */
.profile-preview-container {
    display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; padding: 30px;
    background: #fff; border-radius: 20px; border: 1px solid #eee;
}
.image-preview-wrapper {
    width: 200px; height: 200px; border-radius: 50%; background: #f5f5f7;
    margin-bottom: 20px; border: 4px solid white; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative;
}
.image-preview-wrapper img { width: 100%; height: 100%; object-fit: cover; }
#crop-wrapper { display:none; flex-direction: column; align-items: center; margin-bottom: 20px; }
#crop-image { max-width: 100%; max-height: 400px; }

/* backend */
.container { max-width: 1100px; margin: 30px auto; padding: 0; }
.backendcard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent); padding-bottom: 15px; margin-bottom: 25px; }
.backendcard { background: white; padding: 35px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 25px; display: none; }
.backendcard.active { display: block; }

.mobile-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: white; display: none; justify-content: space-around; padding: 12px 0; border-top: 1px solid #ddd; z-index: 1000; }
.mobile-item { text-decoration: none; color: #86868b; font-size: 10px; font-weight: 700; display: flex; flex-direction: column; align-items: center; }
.mobile-item.active { color: var(--accent); }

@media (max-width: 420px) {
    .forgot {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .upload-section { flex-direction: column; }
}

@media (max-width: 640px) {
    .flash {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.92rem;
    }
    .small-main-content {
        padding: 0 8% 60px 8%;
        align-items: center;
        gap: 50px;
        max-width: 1400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container { padding-bottom: 80px; }
    .desktop-nav, .user-name { display: none; }
    .mobile-nav { display: flex; }
    .edit-grid { grid-template-columns: 1fr; }
    .full-width, .half-width, .three-quarter, .one-quarter, .input-group { grid-column: span 1; }

    /* Tabelle in Karten umwandeln */
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; } /* Header verstecken */
    tr { border: 1px solid #eee; border-radius: 12px; margin-bottom: 15px; padding: 10px; background: #fbfbfd; }
    td { border: none; padding: 8px 5px; position: relative; padding-left: 40%; }
    td:before {
        position: absolute; left: 10px; width: 35%; white-space: nowrap;
        font-weight: 700; color: #86868b; font-size: 10px; text-transform: uppercase; content: attr(data-label);
    }
    td:first-child { padding-left: 10px; border-bottom: 1px solid #eee; margin-bottom: 5px; }
    td:first-child:before { content: ""; } /* Store-Name braucht kein Label */
}

@media (max-width: 992px) {
    .exec-hero { flex-direction: column; text-align: center; border-left: none; border-top: 15px solid var(--red); }
    .services-section { flex-direction: column; }
    .services-content { column-count: 1; }
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 35px; }
    .hero-image img { height: 400px; }
    .grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}