/* assets/css/main.css */

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

:root {
    --green: #1d7151;
    --yellow: #edd947;
    --black: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-700: #404040;
    --gray-500: #737373;
    --gray-300: #d4d4d4;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0;
    margin-left: 24px;
    padding: 0 24px;
    text-align: left;
}

.hero .container {
    text-align: left !important;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-brand-full {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.nav-brand-full .brand-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-brand-full .brand-subtitle {
    font-size: 12px;
    font-weight: 300;
    color: var(--green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--black);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--green);
    color: var(--white) !important;
    padding: 10px 24px;
    font-weight: 400;
}

.nav-cta:hover {
    background: var(--gray-900);
    color: var(--white) !important;
}

.nav-cta::after {
    display: none;
}

/* Hero Section */
.hero {
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    padding: 80px 0 60px;
    width: 100%;
    max-width: 1200px;
    padding-left: 48px;
    padding-right: 48px;
    text-align: left !important;
}

/* Hero H1 - Basis */
.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 200;
    line-height: 1.2;  /* Einheitliche line-height */
    letter-spacing: -0.03em;
    color: var(--black);
    text-align: left;
}

/* Alle direkten Spans als Block */
.hero h1 > span {
    display: block;
    text-align: left;
}



/* Rotating Container */
.hero .accent {
    color: var(--green);
    display: inline-block;
    position: relative;
    min-width: 500px;
    height: 1.2em;  /* Gleiche Höhe wie line-height */
    text-align: left;
     vertical-align: top;  /* NEU: verhindert extra Abstand unten */
}


/* Rotating Text Spans - KRITISCH */
.rotating-text span {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: rotateWord 15s linear infinite;
    width: auto;  /* WICHTIG: auto statt 100% */
    text-align: left;
    white-space: nowrap;  /* Kein Umbruch */
}

/* Animation bleibt gleich */
.rotating-text span:nth-child(1) { animation-delay: 0s; }
.rotating-text span:nth-child(2) { animation-delay: 3s; }
.rotating-text span:nth-child(3) { animation-delay: 6s; }
.rotating-text span:nth-child(4) { animation-delay: 9s; }
.rotating-text span:nth-child(5) { animation-delay: 12s; }

@keyframes rotateWord {
    0%, 20% {
        opacity: 0;
    }
    5%, 15% {
        opacity: 1;
    }
    20%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: var(--gray-700);
    max-width: 600px;
    line-height: 1.4;
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--gray-50);
}

section:nth-child(odd) {
    background: var(--white);
}

h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: var(--black);
}

.text-block {
    max-width: 800px;
}

.text-block p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
}

/* Programme Grid - 2x2 Quadrat */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.program-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.program-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(29, 113, 81, 0.12);
    border-color: var(--green);
}


.program-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.program-title {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--black);
    letter-spacing: -0.01em;
}

.program-description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-700);
    margin-bottom: 24px;
    flex: 1;
}

.program-meta {
    font-size: 14px;
    color: var(--gray-500);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 16px;
}



.program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s ease;
}

.program-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.program-item:hover .program-link {
    gap: 12px;
}

.program-item:hover .program-link::after {
    transform: translateX(2px);
}

/* Bild-Bereich mit fester Höhe */
.program-visual {
    height: 220px;
    background: var(--gray-50);
    overflow: hidden;
    position: relative;
}

.program-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.program-item:hover .program-visual img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

/* Overview Table - Auf einen Blick */
.overview-table {
    margin-top: 32px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: var(--gray-50);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overview-item strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overview-item span {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-900);
    line-height: 1.4;
}

/* Course Detail Page Hero */
.course-hero {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    margin-top: 80px;
}

.course-hero-content {
    padding: 120px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-hero-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
}

.course-hero h1 {
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 32px;
}

.course-hero-description {
    font-size: 22px;
    line-height: 1.5;
    color: var(--gray-700);
    margin-bottom: 48px;
}

.course-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.course-meta-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.course-meta-value {
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
}

.course-hero-visual {
    position: relative;
    background: var(--gray-100);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.course-hero-visual img,
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-hero:hover .course-hero-visual img,
.course-hero:hover .hero-visual img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.course-hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(29, 113, 81, 0.1) 0%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-hero:hover .course-hero-visual::after {
    opacity: 1;
}

/* Values Section */
.values-list {
    display: grid;
    margin-top: 64px;
}

.value-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.value-number {
    font-size: 48px;
    font-weight: 100;
    color: var(--green);
    line-height: 1;
}

.value-content h3 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--black);
}

.value-content p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Trainer Images Hover Effect */
.trainer-item:hover img {
    filter: grayscale(0%) contrast(1);
}

/* Founder Section */
.founder-section {
    padding: 120px 0;
    background: var(--white);
}

.founder-card {
    display: grid;
    grid-template-columns: 350px 1fr auto;
    gap: 80px;
    align-items: center;
    padding: 48px;
    background: var(--gray-50);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.founder-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.founder-card .founder-image {
    width: 100%;
    height: 350px;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.founder-card:hover .founder-image {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.founder-card .arrow {
    color: var(--green);
    font-size: 24px;
    transition: transform 0.3s ease;
    align-self: center;
}

.founder-card:hover .arrow {
    transform: translateX(8px);
}

.founder-content h3 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--black);
}

.founder-content .role {
    font-size: 18px;
    font-weight: 400;
    color: var(--green);
    margin-bottom: 32px;
}

.founder-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
}

/* Team Links */
.team-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 80px;
}

.team-link-card {
    aspect-ratio: 16 / 9;
}

.team-link-card {
    padding: 48px;
    background: var(--gray-50);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-link-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-link-card h3 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--black);
}

.team-link-card p {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.team-link-card .arrow {
    color: var(--green);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.team-link-card:hover .arrow {
    transform: translateX(8px);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 64px;
    margin-top: 80px;
}

.person {
    text-align: center;
}

.portrait {
    width: 200px;
    height: 200px;
    background: var(--gray-300);
    margin: 0 auto 24px;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.person:hover .portrait {
    filter: grayscale(0%);
}

.person h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--black);
}

.person .role {
    font-size: 16px;
    font-weight: 300;
    color: var(--green);
    margin-bottom: 16px;
}

.person .bio {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--gray-700);
}

/* CTA Section */
.cta-section {
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 48px;
    font-weight: 300;
}

.cta-section p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 48px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletter Section */
.newsletter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 48px;
}

.newsletter-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 32px;
    color: var(--black);
}

.newsletter-content h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--black);
}

.newsletter-form-container {
    background: var(--gray-50);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.newsletter-form-container h3 {
    margin-bottom: 16px;
    color: var(--black);
    font-size: 24px;
    font-weight: 400;
}

.newsletter-form-container p {
    margin-bottom: 24px;
    color: var(--gray-700);
}

.form-disclaimer {
    font-size: 14px !important;
    color: var(--gray-500) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.newsletter-form-container iframe {
    border-radius: 8px;
}

/* Override Tally default styles */
iframe[data-tally-src] {
    border: none !important;
}

@media (max-width: 768px) {
    .newsletter-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .newsletter-form-container {
        padding: 32px;
    }
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--white);
    color: var(--green);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--gray-300);
    padding: 80px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    line-height: 2;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.6;
}

/* Responsive */
/* Responsive - Tablet */
@media (max-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
        text-align: left;
    }

    .hero-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .rotating-text {
        min-width: 250px;
        text-align: left;
    }

    .rotating-text span {
        white-space: normal;
        line-height: 1.1;
        text-align: left;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }



    .program-content {
        padding: 24px;
    }

    .program-visual {
        height: 200px;
    }

    .program-title {
        font-size: 22px;
    }

    .founder-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
        text-align: center;
    }

    .founder-card .arrow {
        justify-self: center;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .team-links {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 80px 0;
    }
}