/* ==========================================================================
   deisterworx - Hauptstyles
   ========================================================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background: #c53030;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fed7d7;
}

/* ==========================================================================
   MAIN CONTENT SECTIONS
   ========================================================================== */

/* Scroll Offset für Navigation */
section {
    scroll-margin-top: 120px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #BF545D 0%, #D99C9C 100%);
    color: white;
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.7) contrast(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(191, 84, 93, 0.8) 0%, rgba(217, 156, 156, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    word-wrap: break-word;
    hyphens: auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

.cta-button {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cta-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #c53030;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c53030, #e53e3e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #c53030;
    margin-bottom: 15px;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #c53030;
    margin-bottom: 20px;
    word-wrap: break-word;
    hyphens: auto;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #c53030;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #c53030;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: #1f2937;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #c53030;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c53030;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ==========================================================================
   CONTENT PAGES (Impressum, Datenschutz, etc.)
   ========================================================================== */

.content-page {
    padding: 140px 40px 60px; /* Top-Padding für Header-Offset + Seitenabstand */
    background: white;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.content-page h1 {
    font-size: 2.5rem;
    color: #c53030;
    margin-bottom: 30px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.content-page h2 {
    font-size: 1.5rem;
    color: #c53030;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.content-page h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-page p {
    margin-bottom: 15px;
    color: #4b5563;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

.content-page ul {
    margin-bottom: 15px;
    padding-left: 30px;
    color: #4b5563;
}

.content-page li {
    margin-bottom: 8px;
    text-align: justify; /* Blocksatz für Listen */
    text-justify: inter-word;
}

.section-number {
    color: #c53030;
    font-weight: bold;
}

.highlight-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    margin: 20px 0;
}

.highlight-box p {
    margin-bottom: 5px;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

.highlight-box strong {
    color: #1f2937;
}

.contact-info-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    margin: 20px 0;
}

.contact-info-box p {
    margin-bottom: 5px;
    text-align: justify; /* Blocksatz */
    text-justify: inter-word;
}

.contact-info-box strong {
    color: #1f2937;
}

.back-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #fed7d7;
}

/* Links */
a {
    color: #c53030;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   COOKIE SETTINGS
   ========================================================================== */

.cookie-settings {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 10px 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #c53030;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.save-button {
    background: #c53030;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.save-button:hover {
    background: #e53e3e;
}

.code-section {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-section h3 {
    color: #60a5fa;
    margin-bottom: 15px;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero {
        padding: 140px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 10px;
    }

    .about-text h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .content-page {
        margin: 20px 0;
        padding: 140px 30px 40px; /* Innenabstand auch auf Tablet */
    }

    .content-page h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 10px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px; /* Gleichmäßiges Padding links und rechts */
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    table {
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .content-page h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 130px 10px 50px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .content-page {
        padding: 130px 25px 30px; /* Innenabstand auch auf Mobile */
    }

    .container {
        padding: 0 20px; /* Gleichmäßiges Padding auch auf Mobile */
    }

    .service-image {
        height: 150px; /* Kleinere Bilder auf Mobile */
    }

    .about-image img {
        height: 250px; /* Angepasste Höhe für Mobile */
    }
}
