/* Globale Stile */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(135deg, #f3f4f6, #e2e8f0);
    overflow-x: hidden;
}

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;
}

.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 */
