/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add elegant hr styling */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right,
            rgba(0, 120, 138, 0.0),
            rgba(0, 120, 138, 0.9) 50%,
            rgba(0, 120, 138, 0.0));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

html {
    scroll-behavior: smooth;
    font-family: system-ui, sans-serif;
    background-color: #fff;
    color: #111;
}

body {
    line-height: 1.6;
    font-size: 16px;
}

/* Layout */
section {
    padding: 4rem 2rem;
}

h1,
h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

/* Hero */
#hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #000;
}

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

@media (prefers-reduced-motion: reduce) {
    #hero-canvas {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem;
    text-align: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #00788A;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 138, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 138, 0.4);
}

.cta-button:focus {
    outline: 3px solid rgba(0, 120, 138, 0.4);
    outline-offset: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none;
    }
}

/* Base Classes */
.section-base {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.card-base {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Vorteile */
#vorteile {
    background-color: #fff;
}

#vorteile, #wirkung, #funktionsweise, #applications, #produkte, #wissenschaft, #referenzen, footer#kontakt {
    padding: 6rem 2rem;
    position: relative;
}

#vorteile h2, #wirkung h2, #funktionsweise h2, #applications h2, #produkte h2, #wissenschaft h2, #referenzen h2, footer#kontakt h2 {
    margin-bottom: 4rem;
}

.vorteile-liste li, .effect, .step, .product-card, .fact {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vorteile-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.vorteile-liste li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00788A, #00a0b8);
}

.vorteile-liste li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vorteile-liste strong {
    display: block;
    font-size: 1.2rem;
    color: #00788A;
    margin-bottom: 0.75rem;
}

.vorteile-liste li p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Wirkung */
#wirkung {
    background-color: #f9f9f9;
}

#wirkung h2 {
    margin-bottom: 4rem;
}

.effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.effect {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.effect-icon {
    font-size: 2rem;
    color: #00788A;
    margin-bottom: 1rem;
    display: block;
}

.effect-icon i {
    font-size: 2rem;
    color: #00788A;
}

.effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.effect p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Funktionsweise */
#funktionsweise {
    background-color: #fff;
}

#funktionsweise h2 {
    margin-bottom: 4rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00788A, #00a0b8);
}

.step {
    position: relative;
    margin-bottom: 3rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border: 3px solid #00788A;
    border-radius: 50%;
    z-index: 1;
}

.step::after {
    content: none;
}

.step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #00788A;
    margin-bottom: 1rem;
}

.step-icon i {
    font-size: 2rem;
    color: #00788A;
}

.step:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.step h3 {
    color: #00788A;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Anwendungen */
#applications {
    background-color: #fff;
}

#applications h2 {
    margin-bottom: 4rem;
}

#applications .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

#applications .flip-card {
    width: 280px;
    height: 180px;
    perspective: 1000px;
    margin: 1rem 0;
    display: flex;
    align-items: stretch;
    cursor: pointer;
    border-radius: 12px;
}

#applications .flip-card,
#applications .flip-card * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#applications .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    transform-style: preserve-3d;
}

#applications .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

#applications .flip-card-front,
#applications .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#applications .flip-card-front {
    background: #fff;
    border: 1.5px solid #e0e0e0;
}

#applications .flip-card-back {
    background: linear-gradient(135deg, #9aabad 0%, #ffffff 100%);
    color: #fff;
    border: 1.5px solid #00c6b8;
    transform: rotateY(180deg);
}

#applications .flip-icon {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 10;
    font-size: 1.25rem;
    color: #00a0b8;
    opacity: 0.85;
    transition: transform 0.4s cubic-bezier(0.4, 0.2, 0.2, 1), color 0.2s, opacity 0.2s;
    pointer-events: none;
}

#applications .flip-card:hover .flip-card-front .flip-icon {
    transform: rotateY(180deg) rotate(180deg) scale(1.15);
    color: #00788A;
    opacity: 1;
}

#applications .flip-card.flipped .flip-card-front .flip-icon {
    opacity: 0;
    visibility: hidden;
}

#applications .flip-card-back .flip-icon {
    opacity: 0;
    visibility: hidden;
}

#applications .flip-card.flipped .flip-card-back .flip-icon {
    opacity: 1;
    visibility: visible;
    transform: rotateY(180deg) rotate(180deg) scale(1.15);
    color: #00788A;
}

#applications .flip-card-front.tile p,
#applications .flip-card-back.tile p {
    padding: 0 1.5rem;
    text-align: center;
}

#applications .flip-card-front.tile p {
    color: #00788A;
    font-weight: 500;
    font-size: 1.1rem;
}

#applications .flip-card-back.tile p {
    color: #111;
    font-size: 1.08rem;
    font-weight: 400;
}

/* Produkte */
#produkte {
    background-color: #fff;
}

#produkte h2 {
    margin-bottom: 4rem;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 120, 138, 0.15);
    transform: translateY(-4px);
}

.product-card h3 {
    color: #00788A;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.product-card li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.5;
}

.product-card li:last-child {
    margin-bottom: 0;
}

.product-card li::before {
    content: '\2022';
    color: #00a0b8;
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: 0.1em;
}

.product-card strong {
    color: #00788A;
    font-weight: 600;
    margin-right: 0.3em;
}

.product-subtitle {
    font-size: 1.08rem;
    color: #00a0b8;
    font-weight: 600;
    margin-bottom: 0.7rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Wissenschaft */
#wissenschaft {
    background-color: #fff;
    text-align: center;
}

#wissenschaft h2 {
    margin-bottom: 4rem;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.fact {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    position: relative;
    transition: all 0.3s ease;
}

.fact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.fact p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.button {
    display: inline-block;
    background-color: #00788A;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 138, 0.3);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 138, 0.4);
}

.button:focus {
    outline: 3px solid rgba(0, 120, 138, 0.4);
    outline-offset: 2px;
}

/* Referenzen */
#referenzen {
    background-color: #fff;
}

#referenzen h2 {
    margin-bottom: 4rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.gallery figure {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 1.1rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.gallery .reference-category {
    font-size: 0.9rem;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery .reference-title {
    font-weight: 500;
    color: #fff;
    font-size: 0.84rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.gallery figure:hover img {
    transform: scale(1.05);
}

/* Remove the hover effect for figcaption since it's always visible now */
.gallery figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* Kontakt */
footer#kontakt {
    background-color: #fff;
    text-align: center;
}

footer#kontakt h2 {
    margin-bottom: 4rem;
}

footer#kontakt>p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #444;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00788A;
    box-shadow: 0 0 0 3px rgba(0, 120, 138, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

button[type="submit"] {
    background-color: #00788A;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 138, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 138, 0.4);
}

button[type="submit"]:focus {
    outline: 3px solid rgba(0, 120, 138, 0.4);
    outline-offset: 2px;
}

.contact-info {
    margin-top: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-info a {
    color: #00788A;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Video Section */
#hero-video {
    background-color: #f9f9f9;
    text-align: center;
    padding: 4rem 2rem;
}

.video-container {
    max-width: 100%;
    margin: 2rem auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9f9f9;
    display: block;
}

.video-description {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* YouTube Tests Section */
#youtube-tests {
    background-color: #f8f9fa;
}

#youtube-tests h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #00788A;
}

.youtube-thumbnails {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.youtube-thumbnail {
    position: relative;
    display: block;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.youtube-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.youtube-thumbnail:hover img {
    transform: scale(1.05);
}

.youtube-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.youtube-overlay i {
    color: white;
    font-size: 24px;
}

.youtube-thumbnail:hover .youtube-overlay {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-content.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90vw;
    max-width: 700px;
}

.hero-content.below {
    position: static;
    margin: 2rem auto;
    width: 90vw;
    max-width: 700px;
    transform: none;
}

/* Compact hero mode for small screens or when content is below */
#hero.compact-hero,
#hero.compact-hero #hero-canvas {
    height: 40vh !important;
    min-height: 200px;
    max-height: 400px;
}

.fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00a0b8;
    margin-bottom: 0.5rem;
    margin-right: 0.7rem;
    vertical-align: middle;
}

.formatted-subline {
    color: #666;
    font-size: 1.05rem;
    font-style: italic;
    margin: 2rem auto 1.5rem auto;
    text-align: center;
    max-width: 700px;
    letter-spacing: 0.01em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }

    #hero{
        background-color: #fff;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    #vorteile {
        padding: 4rem 1rem;
    }

    .vorteile-liste {
        gap: 1.5rem;
    }

    .vorteile-liste li {
        padding: 1.5rem;
    }

    .vorteile-liste strong {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    #wirkung {
        padding: 4rem 1rem;
    }

    .effects {
        gap: 1.5rem;
    }

    .effect {
        padding: 1.5rem;
    }

    .effect-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .effect-icon i {
        font-size: 1.75rem;
    }

    .effect p {
        font-size: 1rem;
    }

    #funktionsweise {
        padding: 4rem 1rem;
    }

    .timeline {
        padding-left: 2.5rem;
    }

    .step {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .step::before {
        left: -2.75rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .step::after {
        left: -2.5rem;
        font-size: 0.65rem;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .step-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .step-icon i {
        font-size: 1.5rem;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem 0;
    }

    .product-card {
        padding: 1.25rem 1rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    .product-card li {
        font-size: 0.98rem;
    }

    .product-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #wissenschaft {
        padding: 4rem 1rem;
    }

    /* Science Buttons Mobile Layout */
    .science-buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      width: 100%;
    }

    .science-buttons .button {
      width: 100%;
      max-width: 400px; /* Adjust as needed */
      margin: 0;
      text-align: center;
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fact {
        padding: 1.5rem;
    }

    .fact::before {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .fact p {
        font-size: 1.1rem;
    }

    .button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    #referenzen {
        padding: 4rem 1rem;
    }

    .gallery {
        gap: 1.5rem;
    }

    .gallery img {
        height: 200px;
    }

    .gallery figcaption {
        padding: 1rem;
        font-size: 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.85));
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .gallery .reference-category,
    .gallery .reference-title {
        opacity: 1 !important;
        visibility: visible !important;
    }

    footer#kontakt {
        padding: 4rem 1rem;
    }

    form {
        gap: 1.25rem;
    }

    input,
    textarea {
        padding: 0.875rem;
    }

    button[type="submit"] {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .contact-info {
        margin-top: 2rem;
        font-size: 1rem;
    }

    .video-container {
        margin: 1.5rem 1rem;
    }

    .video-description {
        padding: 0 1rem;
        font-size: 1rem;
    }

    /* YouTube Tests Mobile */
    #youtube-tests {
        padding: 4rem 1rem;
    }

    .youtube-thumbnails {
        gap: 1rem;
    }

    .youtube-thumbnail {
        width: 280px;
        height: 180px;
    }

    .youtube-overlay {
        width: 50px;
        height: 50px;
    }

    .youtube-overlay i {
        font-size: 20px;
    }

    .youtube-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .fact-icon {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

    .formatted-subline {
        font-size: 0.98rem;
        margin: 1.2rem auto 1rem auto;
    }
}

@media (max-width: 900px) {
    #applications .flip-card {
        width: 90vw;
        max-width: 340px;
        height: 160px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cta-button,
    .button {
        font-size: 1rem;
    }

    .product-list {
        flex-direction: column;
        align-items: center;
    }

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

    #hero.compact-hero,
    #hero.compact-hero #hero-canvas {
        height: 60vh !important;
        min-height: 260px;
        max-height: 500px;
    }

    #applications .grid {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    #applications .flip-card {
        width: 98vw;
        max-width: 360px;
        height: 140px;
    }
}

@media (max-width: 950px),
(max-height: 970px) {
    /*
    #hero {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        height: unset;
    }
    #hero-canvas {
        height: 60vw;
        min-height: 200px;
        max-height: 70vh;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        left: 0;
        right: 0;
        display: block;
        position: relative;
    }
    .hero-content {
        position: static;
        margin-top: 5rem;
        margin-bottom: 2rem;
        z-index: 2;
    }
    .hero-content::before {
        display: none;
    }*/
}

/* Target Audience Sections - Modern Card Style */
.target-audience-card {
  margin: 2.5rem auto;
  padding: 0;
  max-width: 800px;
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,120,138,0.10), 0 1.5px 8px rgba(0,0,0,0.04);
  background: linear-gradient(120deg, #f8fcfd 60%, #e6f7fa 100%);
  transition: box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.target-audience-card.expanded {
  box-shadow: 0 8px 32px rgba(0,120,138,0.18), 0 2px 12px rgba(0,0,0,0.08);
  background: linear-gradient(120deg, #e6f7fa 60%, #f8fcfd 100%);
}
.target-audience-card::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #00a0b8 0%, #00788A 100%);
}
.target-audience-card h2 {
  margin: 0;
  padding: 1.5rem 2.5rem 1.5rem 2.5rem;
  background: transparent;
  border-radius: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #00788A;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}
.target-audience-card h2:hover {
  color: #00a0b8;
}
.target-audience-card.expanded .accordion-content {
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}

/* Section icon */
.target-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #00a0b8;
  margin-right: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Section title */
#education h2, #nofilter h2, #odors h2, #nontech h2, #art h2, #sustainable h2, #architects h2, #restaurants h2 {
  margin: 0;
  padding: 1.5rem 2.5rem 1.5rem 2.5rem;
  background: transparent;
  border-radius: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #00788A;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}
#education h2:hover, #nofilter h2:hover, #odors h2:hover, #nontech h2:hover, #art h2:hover, #sustainable h2:hover, #architects h2:hover, #restaurants h2:hover {
  color: #00a0b8;
}

/* Accordion content */
.accordion-content {
  padding: 0 2.5rem 1.5rem 2.5rem;
  margin: 0;
  background: transparent;
  border-radius: 0 0 18px 18px;
  color: #222;
  font-size: 1.08rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}
#education.expanded .accordion-content,
#nofilter.expanded .accordion-content,
#odors.expanded .accordion-content,
#nontech.expanded .accordion-content,
#art.expanded .accordion-content,
#sustainable.expanded .accordion-content,
#architects.expanded .accordion-content,
#restaurants.expanded .accordion-content {
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}

@media (max-width: 700px) {
  .target-audience-card {
    max-width: 98vw;
    border-radius: 12px;
  }
  .target-audience-card h2 {
    font-size: 1.08rem;
    padding: 1.1rem 1.2rem 1.1rem 1.2rem;
  }
  .accordion-content {
    padding: 0 1.2rem 1.1rem 1.2rem;
    font-size: 0.98rem;
  }
}

/* GREENiTOP Seals Styles */
.greenit-seals, .greenit-seals-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 1rem 0;
}
.greenit-seals img, .greenit-seals-footer img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,120,138,0.10);
  background: #fff;
}
.seal-caption {
  flex-basis: 100%;
  text-align: center;
  font-size: 1rem;
  color: #00788A;
  margin-top: 0.5rem;
  font-weight: 500;
}
@media (max-width: 700px) {
  .greenit-seals img, .greenit-seals-footer img {
    max-width: 120px;
  }
  .greenit-seals, .greenit-seals-footer {
    gap: 0.7rem;
  }
  .seal-caption {
    font-size: 0.95rem;
  }
}

/* How it works flex layout */
.howitworks-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  flex-wrap: nowrap;
}
.howitworks-flex .timeline {
  flex: 2 1 0;
  min-width: 0;
}
.howitworks-video {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}
.howitworks-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  background: #f9f9f9;
  display: block;
}
@media (max-width: 1100px) {
  .howitworks-flex {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .howitworks-video {
    max-width: 100%;
    min-width: 0;
    padding-top: 0;
  }
}
@media (max-width: 700px) {
  .howitworks-flex {
    padding: 0;
    gap: 1.2rem;
  }
  .howitworks-video {
    max-width: 100vw;
    min-width: 0;
    padding-top: 0;
  }
  .howitworks-video video {
    border-radius: 8px;
  }
}

/* Measurings Section */
#measurings {
    background-color: #fff;
    text-align: center;
}

#measurings h2 {
    margin-bottom: 4rem;
}

.measurings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.measuring-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.measuring-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.measuring-card h3 {
    color: #00788A;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.measuring-card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.measuring-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Clickable image styles */
.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 120, 138, 0.2);
}

.clickable-image:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .measurings-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .measuring-card {
        padding: 1.5rem;
    }
}

/* --- Reference Lightbox Styles --- */
.reference-lightbox-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.2s;
}
.reference-lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  background: #fff;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* --- End Reference Lightbox Styles --- */