/* ============================================
   CMD-Institut Website - Stylesheet
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Farbvariablen aus Logo */
:root {
    --color-primary-pink: #C41E3A;
    --color-primary-blue: #4A90E2;
    --color-gray: #808080;
    --color-dark: #2c3e50;
    --color-light-gray: #f9f9f9;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-primary-pink);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    color: var(--color-primary-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--color-gray) 0%, #6b6b6b 100%);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    padding: 0.5rem 0;
}

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

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
    transform: scale(1.05);
}

.logo-text {
    display: inline;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-gray) 0%, #6b6b6b 100%);
    flex-direction: column;
    padding: 1.5rem;
    border-top: 2px solid var(--color-primary-pink);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: static;
        background: none;
        border-top: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        gap: 2rem;
    }
    
    .nav-menu.active {
        animation: none;
    }
}

.nav-menu a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary-blue);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-gray) 100%);
    color: white;
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-container {
    margin-bottom: 2rem;
    animation: slideInDown 0.8s ease-out;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    }
}

.hero-content h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: none;
}

@media (min-width: 768px) {
    .hero-image {
        display: block;
    }
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary-pink);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--color-primary-pink);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
}

/* Mission Section */
.mission {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.mission p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* Features Section */
.features {
    background: #f9f9f9;
    padding: 60px 0;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--color-primary-pink);
    margin-bottom: 1rem;
    border-bottom: none;
}

.feature-card p {
    color: #666;
    text-align: justify;
}

/* About CMD Section */
.about-cmd {
    background: white;
    padding: 60px 0;
}

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

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-text h2 {
    margin-top: 0;
}

.symptoms-list {
    list-style: none;
    margin: 1.5rem 0;
}

.symptoms-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.symptoms-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary-pink);
    font-weight: bold;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-gray) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    border-bottom-color: white;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-gray) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    text-align: center;
}

/* Page Content */
.page-content {
    background: white;
    padding: 60px 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    margin-top: 2rem;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary-pink);
    font-weight: bold;
}

/* Goal Cards */
.goal-card {
    background: var(--color-light-gray);
    padding: 25px;
    border-left: 4px solid var(--color-primary-pink);
    margin: 1.5rem 0;
    border-radius: 5px;
}

.goal-card h3 {
    color: var(--color-primary-pink);
    margin-top: 0;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.timeline-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #d63384;
}

.timeline-marker {
    display: inline-block;
    background: var(--color-primary-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: none;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
}

.timeline-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary-pink);
    font-weight: bold;
}

/* Target Groups */
.target-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 2rem 0;
}

.target-group {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.target-group:hover {
    border-color: var(--color-primary-pink);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.1);
}

.target-group h3 {
    color: var(--color-primary-pink);
    margin-bottom: 1rem;
    border-bottom: none;
}

/* Method Cards */
.method-card {
    background: var(--color-light-gray);
    padding: 25px;
    margin: 1.5rem 0;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary-blue);
}

.method-card h3 {
    color: var(--color-primary-blue);
    margin-top: 0;
    border-bottom: none;
}

/* Design Section */
.design-section {
    background: var(--color-light-gray);
    padding: 25px;
    margin: 1.5rem 0;
    border-radius: 10px;
}

.design-section h3 {
    color: #2c3e50;
    border-bottom: none;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-form-section h2,
.contact-info-section h2 {
    margin-top: 0;
}

/* Forms */
.contact-form,
.newsletter-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-pink);
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Info Cards */
.info-card {
    background: var(--color-light-gray);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-primary-pink);
}

.info-card h3 {
    color: var(--color-primary-pink);
    margin-top: 0;
    border-bottom: none;
}

.info-card p {
    margin: 0;
}

.info-card a {
    font-weight: 600;
}

/* FAQ */
.faq-item {
    background: var(--color-light-gray);
    padding: 25px;
    margin: 1.5rem 0;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary-blue);
}

.faq-item h3 {
    color: var(--color-primary-blue);
    margin-top: 0;
    border-bottom: none;
}

.faq-item p {
    margin-bottom: 0;
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h3 {
    color: #2c3e50;
    border-bottom: none;
}

.last-updated {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-gray) 0%, #6b6b6b 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    border-bottom: none;
}

.footer-section p {
    text-align: justify;
    color: #bbb;
    font-size: 0.95rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 40px 0;
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-content {
        padding: 40px 0;
    }

    .contact-wrapper {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 30px 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .target-groups {
        grid-template-columns: 1fr;
    }

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .newsletter,
    .hero-buttons {
        display: none;
    }

    body {
        background: white;
    }

    a {
        text-decoration: none;
    }
}
