/* Globale Stile */
:root {
    --accent-color: #0071e3;
}

html {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3 {
    margin: 20px 0;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #4caf50;
    color: #fff;
}

.btn-secondary:hover {
    background: #388e3c;
}

.btn-buy {
    background: #f59e0b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy:hover {
    background: #d97706;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, skyblue, cadetblue);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff; /* Sicherstellen, dass der Text weiß bleibt */
}

.hero .cta-buttons {
    margin-top: 20px;
}

.hero-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-animation .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 4s infinite;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.hero-animation .phone {
    position: absolute;
    width: 120px; /* Breite des Smartphones */
    height: 240px; /* Höhe des Smartphones */
    background-size: cover; /* Hintergrundbild skalieren */
    background-position: center; /* Bild zentrieren */
    border-radius: 15px; /* Abgerundete Ecken */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Schatten */
    transition: transform 0.4s; /* Glatte Übergänge */
}

.hero-animation .phone-left {
    top: 40%;
    left: 30%;
    transform: rotate(-20deg);
    animation: floatLeft 3s infinite ease-in-out;
}

.hero-animation .phone-right {
    top: 40%;
    right: 30%;
    transform: rotate(20deg);
    animation: floatRight 3s infinite ease-in-out;
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateY(0) rotate(-20deg);
    }
    50% {
        transform: translateY(-15px) rotate(-20deg);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0) rotate(20deg);
    }
    50% {
        transform: translateY(-15px) rotate(20deg);
    }
}

/* Kaufen Section */
.section {
    padding: 50px 20px;
    text-align: center;
}

.product-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.product {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s;
}

.product:hover {
    transform: scale(1.05);
}

/* Darkmode-Stile */
body.darkmode {
    background: var(--dark);
    color: var(--white);
}

body.darkmode h1, body.darkmode h2, body.darkmode h3 {
    color: var(--white);
}

body.darkmode a {
    color: var(--white);
}

body.darkmode .btn-primary {
    background: var(--moon);
    color: var(--dark);
}

body.darkmode .btn-primary:hover {
    background: var(--moon-shadow);
}

body.darkmode .btn-secondary {
    background: #4caf50;
    color: var(--dark);
}

body.darkmode .btn-secondary:hover {
    background: #388e3c;
}

body.darkmode .btn-buy {
    background: #d97706;
    color: var(--dark);
}

body.darkmode .btn-buy:hover {
    background: #c2410c;
}

body.darkmode .hero {
    background: linear-gradient(135deg, #222, #000030);
}

body.darkmode .hero-content {
    color: #fff; /* Sicherstellen, dass der Text auch im Darkmode weiß bleibt */
}

body.darkmode .hero-animation .circle {
    background: rgba(255, 255, 255, 0.1);
}

body.darkmode .product {
    background: #222;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

body.darkmode .product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

body.darkmode #kontakt {
    background: #333;
    color: var(--white);
}

body.darkmode input, body.darkmode textarea {
    background: #444;
    color: var(--white);
    border: 1px solid #666;
}

body.darkmode input::placeholder, body.darkmode textarea::placeholder {
    color: #ccc;
}

body.darkmode button {
    color: var(--dark);
}

body.darkmode button:hover {
    background: var(--moon-shadow);
}

body.darkmode footer {
    background: #111;
    color: var(--white);
}

/* Verkaufen Hero Section */
.sell-hero {
    position: relative;
    background: linear-gradient(135deg, skyblue, cadetblue);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

body.darkmode .sell-hero {
    background: linear-gradient(135deg, #222, #000030);
}

/* Modelle Section */
.sell-models {
    padding: 30px 20px;
    text-align: center;
}

.sell-models h2 {
    margin-bottom: 20px;
    color: #1a73e8;
}

.model-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.model {
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.model img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.model-name {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.model:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

body.darkmode .model-name {
    color: var(--white);
}
/*Products new*/
/* Grundstile für die Kaufen-Section */
#kaufen {
    padding: 50px 20px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive Grid */
    gap: 20px;
    justify-items: center;
}

.product {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
    max-width: 250px; /* Maximale Breite der Produkte */
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%; /* Automatische Anpassung an die Produktbox */
    max-width: 150px; /* Maximale Bildbreite */
    height: auto; /* Verhältnis beibehalten */
    margin-bottom: 10px;
}

.product h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.product .btn-buy {
    background: #1a73e8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.product .btn-buy:hover {
    background: #0056b3;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    #kaufen {
        padding: 30px 10px;
    }

    .product {
        max-width: 200px; /* Kleinere Boxen auf Mobilgeräten */
    }

    .product img {
        max-width: 120px; /* Kleinere Bilder auf Mobilgeräten */
    }

    .product h3 {
        font-size: 16px;
    }

    .product p {
        font-size: 14px;
    }

    .product .btn-buy {
        padding: 8px 15px;
        font-size: 14px;
    }
}
/* main.css */

/* Andere globale Styles */

@import url('darkmode/switch.css');

/* Weitere Styles */
.highlight-pending{background:#fff3cd;}
.highlight-error{border:2px solid #d9534f;}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-diff {
    font-size: 0.8em;
    margin-top: 4px;
    color: #555;
    display: block;
}

.option-label {
    display: block;
}

body.darkmode .price-diff {
    color: #bbb;
}

.price-diff .check-icon {
    color: #047857;
    font-size: 0.9em;
}

body.darkmode .price-diff .check-icon {
    color: #22c55e;
}

/* Trade-in Bereich */
.trade-in-container {
    margin-top: 0.5em;
    font-size: 0.95em;
    background: #f1f1f1;
    color: #333;
    padding: 0.75em;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trade-in-container .trade-in-title {
    font-weight: 600;
    margin-bottom: 0.5em;
}

.trade-in-container .trade-in-options label {
    margin-right: 0.5em;
}

.trade-in-form select,
.trade-in-form input {
    width: 100%;
    padding: 0.4em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.trade-in-price {
    margin-top: 0.75em;
    font-weight: 600;
    background: #fff;
    padding: 0.5em;
    border-radius: 4px;
    text-align: center;
    color: #28a745;
}

.trade-in-info {
    margin-top: 16px;
    display: block;
}

.trade-in-card {
    position: relative;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 118, 226, 0.15), rgba(16, 185, 129, 0.12));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.trade-in-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%);
}

.trade-in-card__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.65);
    padding: 6px 12px;
    border-radius: 999px;
}

.trade-in-card__icon {
    font-size: 16px;
}

.trade-in-card__values {
    position: relative;
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.trade-in-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.trade-in-card__row--muted .trade-in-card__label {
    font-weight: 500;
}

.trade-in-card__label {
    font-size: 14px;
    color: #334155;
}

.trade-in-card__value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.trade-in-card__value--muted {
    color: #475569;
    font-weight: 600;
}

.trade-in-card__value--accent {
    color: #0ea5e9;
}

.trade-in-card__value--highlight {
    font-size: 24px;
    color: #0f766e;
}

.trade-in-card__divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.4);
}

.trade-in-card__hint {
    position: relative;
    margin-top: 14px;
    font-size: 12px;
    color: #475569;
}

.darkmode .trade-in-container {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.darkmode .trade-in-container select {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.darkmode .trade-in-form input {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.darkmode .trade-in-price {
    background: #333;
    color: #28a745;
}

.darkmode .trade-in-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(45, 212, 191, 0.14));
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
}

.darkmode .trade-in-card__badge {
    background: rgba(15, 23, 42, 0.45);
    color: #bae6fd;
}

.darkmode .trade-in-card__label {
    color: #cbd5f5;
}

.darkmode .trade-in-card__value {
    color: #e2e8f0;
}

.darkmode .trade-in-card__value--muted {
    color: #94a3b8;
}

.darkmode .trade-in-card__value--accent {
    color: #38bdf8;
}

.darkmode .trade-in-card__value--highlight {
    color: #4ade80;
}

.darkmode .trade-in-card__hint {
    color: #94a3b8;
}

.darkmode .trade-in-card__divider {
    background: rgba(148, 163, 184, 0.3);
}

.trade-in-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.trade-in-modal .modal-box {
    background: #fff;
    padding: 1.5em;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.trade-in-modal .modal-buttons {
    margin-top: 1em;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.trade-in-modal .modal-buttons button {
    padding: 0.5em 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.trade-in-modal .modal-buttons .ti-back {
    background: #e0e0e0;
    color: #333;
}

.trade-in-modal .modal-buttons .ti-confirm {
    background: #1a73e8;
    color: #fff;
}

.trade-in-modal .modal-buttons .ti-back:hover {
    background: #d5d5d5;
}

.trade-in-modal .modal-buttons .ti-confirm:hover {
    background: #1669c1;
}

.trade-in-modal .ti-confetti {
    font-size: 2em;
    margin-top: 0.5em;
}

.trade-in-modal .ti-image {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 1em auto;
}

.trade-in-modal .ti-price-main {
    font-weight: bold;
    margin-top: 0.5em;
    color: #28a745;
}

.trade-in-modal .ti-steps ol {
    list-style: none;
    padding: 0;
    text-align: left;
}

.trade-in-modal .ti-steps li {
    margin: 0.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#ti-apply {
    display: none;
    margin: 10px auto;
    padding: 10px 20px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#ti-apply:hover {
    background: #388e3c;
}

.trade-in-added {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 0.75em 1em;
    border-radius: 4px;
    z-index: 1000;
}

.darkmode .trade-in-modal .modal-box {
    background: #333;
    color: #e0e0e0;
}

.darkmode .trade-in-added {
    background: #357a38;
}

/* Trade-In Zusammenfassung */
.trade-in-summary {
    margin-top: 1em;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trade-in-summary .ti-summary-header {
    font-weight: 600;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.ti-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ti-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

.ti-summary-item:last-child {
    border-bottom: none;
}

.ti-summary-price {
    font-weight: 600;
    color: #28a745;
}

.ti-summary-price small {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    color: #6b7280;
}

.darkmode .ti-summary-price small {
    color: #a1a1aa;
}

.ti-summary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ti-summary-actions i {
    cursor: pointer;
    color: #1a73e8;
}

.ti-add-more {
    margin-top: 0.5em;
    padding: 0.5em 1em;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.ti-add-more:hover {
    background: #1669c1;
}

.darkmode .trade-in-summary {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.darkmode .ti-summary-item {
    border-bottom: 1px solid #444;
}

.darkmode .ti-summary-actions i {
    color: #90caf9;
}

.darkmode .ti-add-more {
    background: #1669c1;
}

.darkmode .ti-add-more:hover {
    background: #145ca8;
}
