@charset "utf-8";

/* ==========================================================================
   FSnD Corporate Design — Modern CSS
   Mobile-first, CSS Grid, Custom Properties, no vendor prefixes
   ========================================================================== */

/* ---------- 1. Fonts ---------- */

@font-face {
    font-family: 'Lato';
    src: url("../../../fonts/Lato-Regular.woff2") format("woff2"),
         url("../../../fonts/Lato-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url("../../../fonts/Lato-Bold.woff2") format("woff2"),
         url("../../../fonts/Lato-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url("../../../fonts/Lato-Light.woff2") format("woff2"),
         url("../../../fonts/Lato-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ---------- 2. Design Tokens ---------- */

:root {
    /* Brand colors */
    --color-primary: #881711;
    --color-primary-dark: #5D0C1F;
    --color-accent: #0A71B4;
    --color-accent-light: #0d87d9;
    --color-grey: #A1A29D;

    --firstColor: #000000;
    --secondColor: #d9d9d9;
    --thirdColor: #881711;

    /* Semantic colors */
    --color-text: #2D2D2D;
    --color-text-light: #5A5A5A;
    --color-text-inverse: #FFFFFF;
    --color-text-inverse-firm: white;
    --color-bg: #FFFFFF;
    --color-bg-subtle: #F5F5F5;
    --color-bg-footer: #E8E8E8;
    --color-border: #D0D0D0;
    --color-link: #0A71B4;
    --color-link-hover: #5D0C1F;

    /* Layout */
    --content-width: 1400px;
    --header-height: 80px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Typography */
    --font-family: 'Lato', Helvetica, Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: clamp(1.5rem, 2.5vw, 2rem);
    --font-size-hero: clamp(1.25rem, 3vw, 2.25rem);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Intro Content Gradient Overlay */
    --intro-gradient-angle: 360deg;
    --intro-gradient-start: var(--secondColor);
    --intro-gradient-mid:   #fff;
    --intro-gradient-end:   #fff;
    --intro-gradient: linear-gradient(
            var(--intro-gradient-angle),
            var(--intro-gradient-start) 0%,
            var(--intro-gradient-mid) 10%,
            var(--intro-gradient-end) 100%
    );

    /* Aurora Blobs */
    --aurora-blob-1: rgba(110, 15, 30, 0.4);
    --aurora-blob-2: rgba(26, 54, 93, 0.3);
    --aurora-blob-3: rgba(110, 15, 30, 0.25);
    --aurora-blob-4: rgba(26, 54, 93, 0.22);
    --aurora-blob-5: rgba(166, 166, 166, 0.18);
    --aurora-blob-blur: 100px;
}

/*** Spacer ***/

#spacer
{
    width: 100%;
    height: 100vh;
}

/*** Spacer End ***/

/* ---------- Dark Mode ---------- */
[data-theme="dark"]
{
    --color-text: #EDEDED;
    --color-text-light: #B4B4B4;
    --color-text-inverse: #1A1A1A;
    --color-bg: #1E1E1E;
    --color-bg-subtle: #262626;
    --color-bg-footer: #171717;
    --color-border: #3A3A3A;
    --color-link: #6BB8E0;
    --color-link-hover: #E94560;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);

    /* Brand-Farben für Dark Mode */
    --firstColor: #EDEDED;
    --secondColor: #2E2E2E;
    --thirdColor: #CC4444;

    /* Intro Content Gradient Overlay (Dark Mode) */
    --intro-gradient-start: #2E2E2E;
    --intro-gradient-mid:   #1E1E1E;
    --intro-gradient-end:   #1E1E1E;
}

[data-theme="dark"] #headerWrapper {
    background: rgba(30, 30, 30, 0.95);
}

/* Logo: weißer Hintergrund im Dark Mode (Logo ist transparent) */
[data-theme="dark"] #logo img {
    background: #fff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}


/* Dark-Mode Lesbarkeit: Überschriften und Textfarben aufhellen */
[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span,
[data-theme="dark"] td,
[data-theme="dark"] th {
    color: var(--color-text);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--color-text);
}

[data-theme="dark"] a {
    color: var(--color-link);
}

[data-theme="dark"] a:hover {
    color: var(--color-link-hover);
}

[data-theme="dark"] img {
    filter: brightness(0.9);
}

/* Dark Mode: centreAreaWrapper + Frames */
[data-theme="dark"] #centreAreaWrapper {
    background-color: var(--secondColor);
}

[data-theme="dark"] #centreArea .frame {
    border-color: var(--thirdColor);
}

[data-theme="dark"] #centreArea .frame-type-text,
[data-theme="dark"] #centreArea .frame-type-textpic {
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Dark Mode: Teaser/Headerbild */
[data-theme="dark"] #topBar {
    border-bottom: 1px solid var(--color-border);
}

/* Dark Mode: introContent Overlay */
[data-theme="dark"] #introContent .intro-parallax-overlay {
    background: var(--intro-gradient);
}

[data-theme="dark"] #introContent .intro-parallax-content h1,
[data-theme="dark"] #introContent .intro-parallax-content h2,
[data-theme="dark"] #introContent .intro-parallax-content h3 {
    color: var(--color-text);
}

[data-theme="dark"] #introContent .intro-parallax-content p {
    color: var(--color-text-light);
}

/* Dark Mode: Footer */
[data-theme="dark"] #footerWrapper {
    background: var(--color-bg-footer);
    border-top-color: var(--color-border);
}

/* Dark Mode: Navigation Dropdown */
[data-theme="dark"] #mainMenuWrapper a,
[data-theme="dark"] #mainMenuWrapper a:visited {
    color: var(--color-text);
}

[data-theme="dark"] #mainMenuWrapper a:hover {
    color: var(--color-link);
}

[data-theme="dark"] .mobile-menu-btn span {
    background: var(--color-text);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: #000;
    background: var(--color-bg-subtle);
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: #fff;
}

/* Dark Mode: Sonnen-Icon (fill für Kreis, color für stroke-currentColor-Linien) */
[data-theme="dark"] .theme-toggle svg {
    fill: #fff;
    color: #fff;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text);
    transition: fill var(--transition-fast);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ---------- 3. Reset / Base ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 4. Typography ---------- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-md);
}

h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
}

p, ul, ol {
    margin-bottom: var(--space-md);
}

ul, ol {
    padding-left: 1.5rem;
}

ul {
    list-style: square;
}

ul ul {
    list-style: disc;
}

ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--color-link);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

a img {
    border: none;
}

/* ---------- 5. Page Layout ---------- */

#outerWrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#contentWrapper {
    flex: 1;
    padding-top: var(--header-height);
}

/* ---------- 6. Header ---------- */

#headerWrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--transition-base), background var(--transition-base);
}

#header {
    max-width: var(--content-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.pastTeaser #headerWrapper {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Logo */
#logo {
    flex-shrink: 0;
}

#logo img {
    height: clamp(40px, 8vw, 60px);
    width: auto;
    transition: height var(--transition-base);
}

/* Website slogan */
#websiteSlogan {
    display: none;
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
}

#websiteSlogan em {
    color: var(--color-primary-dark);
    font-style: normal;
    font-weight: 700;
}

/* ---------- 7. Navigation ---------- */

#mainMenuWrapper {
    margin-left: auto;
    display: none;
}

#mainMenu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

#mainMenuWrapper li.level1 {
    position: relative;
}

#mainMenuWrapper a,
#mainMenuWrapper a:visited {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-weight: 400;
    font-size: var(--font-size-sm);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

#mainMenuWrapper a:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
    text-decoration: none;
}

#mainMenuWrapper li.level1.current-item > a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Dropdown level 2 */
#mainMenuWrapper ul.level2 {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    padding: var(--space-xs) 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

#mainMenuWrapper li.level1:hover > ul.level2 {
    display: block;
}

#mainMenuWrapper ul.level2 li {
    width: 100%;
}

#mainMenuWrapper ul.level2 a {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    border-radius: 0;
}

#mainMenuWrapper ul.level2 a:hover {
    background: var(--color-bg-subtle);
}

#mainMenuWrapper li.level2.current-item > a {
    color: var(--color-primary);
    background: rgba(204, 0, 0, 0.05);
}

/* Special 4-column menu for menuItem47 */
#mainMenuWrapper li.menuItem47 > ul.level2 {
    left: 50%;
    transform: translateX(-50%);
    min-width: 600px;
    column-count: 4;
    column-gap: var(--space-md);
    column-rule: 1px solid var(--color-border);
    padding: var(--space-md);
}

#mainMenuWrapper li.menuItem47 ul.level2 li {
    break-inside: avoid;
    margin-bottom: var(--space-xs);
}

/* Dropdown level 3 */
#mainMenuWrapper ul.level3 {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    min-width: 200px;
    padding: var(--space-xs) 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 101;
}

#mainMenuWrapper li.level2:hover > ul.level3 {
    display: block;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- 8. Hero Waves + Teaser ---------- */

#topBarWrapper {
    position: relative;
}

/* Unterseiten-Headerbild */
#topBar {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Wenn kein Teaser-Content vorhanden ist, zeigt topBar nur das Hintergrundbild */
#topBar:not(:has(#teaser)) {
    min-height: 280px;
    height: 40vh;
    max-height: 500px;
}

#teaser {
    height: 40vh;
    min-height: 280px;
    max-height: 500px;
    overflow: hidden;
}

.teaserImage {
    width: 100%;
    height: 100%;
}

.teaserImg {
    position: relative;
    width: 100%;
    height: 100%;
}

.teaserImgInnerWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.teaserImgInnerWrapper.withBG {
    display: block;
    width: 100%;
    height: 40vh;
    min-height: 280px;
    max-height: 600px;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
}

.teaserImg img.teaserImageEl {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* BG Teaser slices animation */
.bgTeaser {
    position: absolute;
    top: 50%;
    min-height: 100%;
    background-size: 500% 100%;
    transform-origin: left;
    transform: rotateY(-90deg) translateY(-50%);
    overflow: hidden;
    opacity: 0;
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}

.bgTeaserSlice1 { left: 0; background-position: 0 0; }
.bgTeaserSlice2 { left: 20%; background-position: -100% 0; }
.bgTeaserSlice3 { left: 40%; background-position: -200% 0; }
.bgTeaserSlice4 { left: 60%; background-position: -300% 0; }
.bgTeaserSlice5 { left: 80%; background-position: -400% 0; }

.flipped {
    width: 20%;
    transform: rotateY(0deg) translateY(-50%);
    opacity: 1;
}

/* Teaser text overlay */
.teaserTextWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100vw - 2rem);
    text-align: center;
    z-index: 2;
}

.teaserText
{
    /*** background: rgba(0, 0, 0, 0.6); ***/
    color: var(--color-text-inverse-firm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    /*** backdrop-filter: blur(4px); ***/
}

.teaserHeaderWrapper h1
{
    color: var(--color-text-inverse-firm);
    margin-bottom: var(--space-sm);
}

.teaserText .bodyText {
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

.teaserSubHeader {
    font-size: var(--font-size-xl);
    opacity: 0.85;
    margin-bottom: var(--space-sm);
}

/* ---------- 9. Breadcrumb ---------- */

#breadCrumbWrapper {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

#breadCrumb {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    padding: 0;
    margin: 0;
}

#breadCrumb li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

#breadCrumb a {
    color: var(--color-text-light);
    font-weight: 400;
}

#breadCrumb a:hover {
    color: var(--color-link);
}

.breadcrumb-separator {
    color: var(--color-grey);
    font-size: 0.75rem;
}

/* ---------- 10. Content Area ---------- */

#centreAreaWrapper {
    background-color: var(--secondColor);
    position: relative;
    overflow: hidden;
}

#centreArea {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    z-index: 1;
}

#mainContent {
    width: 100%;
}

/* ---------- Slideshow (nur Startseite) ---------- */

.is-homepage #centreArea .centre-slideshow {
    position: relative;
    overflow: hidden;
}

.is-homepage #centreArea .centre-slideshow-track {
    position: relative;
    min-height: 400px;
}

.is-homepage #centreArea .centre-slideshow .frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0 !important;
    visibility: hidden;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
    margin-bottom: 0;
}

.is-homepage #centreArea .centre-slideshow .frame.is-active {
    position: relative;
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
}

/* Dots navigation */
.centre-slideshow-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: 0;
    list-style: none;
}

.centre-slideshow-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: 2px solid var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.centre-slideshow-dots .dot:hover {
    border-color: var(--color-text);
    transform: scale(1.15);
}

.centre-slideshow-dots .dot.is-active {
    background: var(--color-text);
    border-color: var(--color-text);
    transform: scale(1.25);
}

/* Prev/Next arrows */
.centre-slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 5;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.centre-slideshow-arrow:hover {
    background: var(--color-bg-subtle);
    transform: translateY(-50%) scale(1.08);
}

.centre-slideshow-arrow svg
{
    width: 20px;
    height: 20px;
    fill: var(--color-text);
}

/* Buttons sitzen außerhalb von #centreArea, an #centreAreaWrapper verankert */
#centreAreaWrapper { position: relative; }
#centreAreaWrapper > .centre-slideshow-arrow.prev { left: 1rem; }
#centreAreaWrapper > .centre-slideshow-arrow.next { right: 1rem; }

@media (min-width: 1024px)
{
    #centreAreaWrapper > .centre-slideshow-arrow.prev { left: 1.5rem; }
    #centreAreaWrapper > .centre-slideshow-arrow.next { right: 1.5rem; }
}

@media (max-width: 767px)
{
    #centreAreaWrapper > .centre-slideshow-arrow.prev { left: 4px; }
    #centreAreaWrapper > .centre-slideshow-arrow.next { right: 4px; }
}

/* ---------- Content Cards ---------- */

/* Genereller Frame-Border */
#centreArea .frame
{
    border: 2px solid var(--thirdColor);
    border-radius: var(--radius-lg);
}

#centreArea .frame-type-header,
#centreArea .frame-type-menu_abstract,
#centreArea .frame-type-menu_section_pages
{
    border: none;
}

/* Text-only cards */
#centreArea .frame-type-text
{
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    padding-inline: var(--space-lg);
    padding-block: var(--space-lg);
    margin-bottom: 0;
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    min-height: 120px;
}

#centreArea .frame-type-text:hover
{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

#centreArea .frame:last-of-type
{
    opacity: 1 !important;
}

/* TextPic: gemeinsamer Rahmen, Bild vertikal zentriert */
#centreArea .frame-type-textpic
{
    margin-bottom: 0;
    position: relative;
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

#centreArea .frame-type-textpic:hover
{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

#centreArea .frame-type-textpic .ce-textpic
{
    display: flex;
    align-items: center;
    gap: 0;
}

#centreArea .frame-type-textpic .ce-textpic.ce-left
{
    padding-left: var(--space-xl);
}

#centreArea .frame-type-textpic .ce-textpic.ce-right
{
    padding-right: var(--space-xl);
}

#centreArea .frame-type-textpic .ce-textpic img
{
    border-radius: var(--radius-lg);
}

#centreArea .frame-type-textpic .ce-bodytext
{
    padding: var(--space-lg) var(--space-xl);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#centreArea .frame-type-textpic .ce-gallery {
    display: block;
    flex: 0 0 45%;
    max-width: 45%;
}

#centreArea .frame-type-textpic .ce-intext.ce-left .ce-gallery,
#centreArea .frame-type-textpic .ce-intext.ce-right .ce-gallery,
#centreArea .frame-type-textpic .ce-above .ce-gallery
{
    margin: 0 !important;
}

#centreArea .frame-type-textpic .ce-gallery .ce-outer,
#centreArea .frame-type-textpic .ce-gallery .ce-inner,
#centreArea .frame-type-textpic .ce-gallery .ce-row,
#centreArea .frame-type-textpic .ce-gallery .ce-column,
#centreArea .frame-type-textpic .ce-gallery figure.image,
#centreArea .frame-type-textpic .ce-gallery .image
{
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

#centreArea .frame-type-textpic .ce-gallery figure.image .image-embed-item,
#centreArea .frame-type-textpic .ce-gallery .image-embed-item {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* ce-left: Bild links, Text rechts (Standard-HTML-Reihenfolge) */
#centreArea .frame-type-textpic .ce-left .ce-gallery {
    order: 0;
}
#centreArea .frame-type-textpic .ce-left .ce-bodytext {
    order: 1;
}

/* ce-right: Text links, Bild rechts */
#centreArea .frame-type-textpic .ce-right .ce-bodytext {
    order: 0;
}
#centreArea .frame-type-textpic .ce-right .ce-gallery {
    order: 1;
}

/* Tablet & Mobil: Bild untereinander statt nebeneinander */
@media (max-width: 1023px) {
    #centreArea .frame-type-textpic .ce-textpic {
        flex-direction: column;
    }
    #centreArea .frame-type-textpic .ce-gallery {
        flex: 0 0 auto;
        max-width: 100%;
        order: 0 !important;
    }
    #centreArea .frame-type-textpic .ce-bodytext {
        order: 1 !important;
    }
}

/* Scroll reveal for content cards is now handled entirely by JS (initScrollReveal) */

/* Legacy wrapper support */
article.contentItem {
    max-width: var(--content-width);
    margin: 0 auto;
}

.contentItem .articleInnerWrapper {
    padding: var(--space-md) 0;
}

.contentItem .articleInner {
    padding: 0 var(--space-md);
}

.firstContentArea,
.subsequentContentArea {
    margin-bottom: var(--space-lg);
}

/* Intro content — Full-Width Parallax Banner */
#introContent {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 1024px) {
    #introContent {
        min-height: auto;
    }
    #introContent .intro-parallax-content {
        padding: var(--space-lg) var(--space-xl);
    }
}

#introContent .intro-parallax-overlay {
    position: absolute;
    inset: 0;
    background: var(--intro-gradient);
    z-index: 1;
}

#introContent .intro-parallax-content
{
    position: relative;
    z-index: 2;
    max-width: var(--content-width);
    margin: 0 auto;
    padding-block: var(--space-xl);
    padding-inline: var(--space-2xl);
    color: #fff;
    text-align: left;
}

#introContent .intro-parallax-content h1,
#introContent .intro-parallax-content h2,
#introContent .intro-parallax-content h3 {
    color: #000;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#introContent .intro-parallax-content p {
    color: rgba(0, 0, 0, 0.9);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

#introContent .intro-parallax-content a {
    color: var(--thirdColor);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#introContent .intro-parallax-content a:hover {
    color: var(--color-accent-light);
}

/* Dark mode adjustments: gradient stops are overridden via CSS variables in [data-theme="dark"] */

/* ---------- Image Layer Section (Parallax) ---------- */
/* Eigenständiger Bereich für den 4-Bilder Parallax Effekt.
   Noch nicht im Template eingebunden — aktivieren via:
   <section id="imageLayerSection">
     <div class="image-layer image-layer--1" data-speed="0.05"></div>
     <div class="image-layer image-layer--2" data-speed="0.20"></div>
     <div class="image-layer image-layer--3" data-speed="0.40"></div>
     <div class="image-layer image-layer--4" data-speed="0.60"></div>
   </section>
*/
#imageLayerSection {
    position: relative;
    min-height: 80vh;
    background: #f0f0f0;
    overflow: hidden;
}

@media (max-width: 1023px) {
    #imageLayerSection {
        min-height: 50vh;
    }
}

@media (min-width: 1024px) {
    #imageLayerSection {
        margin: 5rem 0 5rem 5rem;
    }
}

#imageLayerSection .image-layer {
    position: absolute;
    inset: -15% 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    pointer-events: none;
}

@media (max-width: 1023px) {
    #imageLayerSection .image-layer {
        background-size: 140%;
        background-position: center center;
        inset: -10% 0;
    }
}

#imageLayerSection .image-layer--1 {
    background-image: url('/typo3conf/ext/fsnd_website/Resources/Public/theme/fsnd/Images/intro-layer-1.png');
    z-index: 1;
}
#imageLayerSection .image-layer--2 {
    background-image: url('/typo3conf/ext/fsnd_website/Resources/Public/theme/fsnd/Images/intro-layer-2.png');
    z-index: 2;
}
#imageLayerSection .image-layer--3 {
    background-image: url('/typo3conf/ext/fsnd_website/Resources/Public/theme/fsnd/Images/intro-layer-3.png');
    z-index: 3;
}
#imageLayerSection .image-layer--4 {
    background-image: url('/typo3conf/ext/fsnd_website/Resources/Public/theme/fsnd/Images/intro-layer-4.png');
    z-index: 4;
}

/* Headline-Overlay — Apple-Style */
.image-layer-headline {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-layer-headline-text {
    font-size: clamp(2.5rem, 6vw, 80px);
    font-weight: 600;
    line-height: 1.05;
    text-align: center;
    letter-spacing: -0.015em;
    /* Gradient-Text à la Apple */
    background-image: radial-gradient(ellipse at 50% 140%, #A1A29D 0%, #5D0C1F 31%,  #CC0000 68%, #0d87d9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    /* Animation */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    will-change: opacity, transform;
    max-width: 900px;
    padding: 0 var(--space-lg);
    padding-bottom: 1px;
}

/* Dark mode */
[data-theme="dark"] #imageLayerSection {
    background: var(--color-bg);
}
[data-theme="dark"] #imageLayerSection .image-layer {
    filter: invert(1);
}
[data-theme="dark"] .image-layer-headline-text {
    background-image: radial-gradient(ellipse at 50% 140%, #A1A29D 0%, #5D0C1F 31%, #CC0000 68%, #0d87d9 100%);
}

/* Right sidebar */
#rightContent {
    margin-top: var(--space-lg);
}

/* Layout 3 narrow content */
#centreArea article.contentItem.contentItemLayout3 .articleInner {
    max-width: 540px;
    margin: 0 auto;
}

/* ---------- 11. Parallax sections ---------- */

#parallaxImage {
    width: 100%;
    height: 250px;
}

.parallax1, .parallax2, .parallax3, .parallax4 {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 20vh;
    min-height: 150px;
    width: 100%;
    margin-block: var(--space-lg);
}

.parallax1 { background-image: url("images/parallax01.jpg"); }
.parallax2 { background-image: url("images/parallax02.jpg"); }
.parallax3 { background-image: url("images/parallax03.jpg"); }
.parallax4 { background-image: url("images/parallax04.jpg"); }

/* Rotating image */
#rotatingImage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#rotatingImage img {
    display: block;
    width: 200px;
    height: 200px;
    margin: 10px;
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
}

/* ---------- 12. Footer ---------- */

#footerWrapper {
    background: var(--color-bg-footer);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
    margin-top: auto;
}

#footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

#bottomMenu,
#socialMenu {
    display: flex;
    align-items: center;
}

#bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
}

#bottom-menu li {
    font-size: var(--font-size-sm);
}

#bottom-menu a {
    color: var(--color-text-light);
    font-weight: 400;
}

#bottom-menu a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

#copyright {
    margin-left: auto;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* Social icons */
#socialMenu ul {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#socialMenu li.socialMenuItem {
    display: flex;
}

#socialMenu .socialIcon {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

#socialMenu a:hover .socialIcon {
    color: var(--color-primary);
}

/* ---------- 13. Components ---------- */

/* Buttons */
a.buttonLink {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-inverse);
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

a.buttonLink:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

/* Phone, fax, email icons (inline SVG via CSS) */
p.phone,
p.fax,
p.email {
    padding-left: 28px;
    background-repeat: no-repeat;
    background-position: 0 3px;
    background-size: 18px 18px;
}

p.phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230A71B4'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

p.fax {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230A71B4'%3E%3Cpath d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z'/%3E%3C/svg%3E");
}

p.email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230A71B4'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* Important text */
p.important,
div.important {
    font-weight: 600;
    font-size: var(--font-size-lg);
    text-align: center;
}

/* Callback item */
#callbackItemWrapper {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    left: var(--space-md);
    z-index: 900;
}

#callbackItem .callbackButton {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: background var(--transition-fast);
}

#callbackItem .callbackButton:hover {
    background: var(--color-bg);
}

/* Sitemap */
.csc-sitemap {
    margin-left: var(--space-lg);
}

.sitemap-level2,
.sitemap-level3,
.sitemap-level4 {
    padding-left: var(--space-md);
    margin-top: var(--space-xs);
}

/* Section list */
.sectionList h3.sectionPageHeader {
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.sectionList ul.sectionListiting {
    margin-bottom: var(--space-lg);
}

.sectionList li.sectionItem {
    display: inline-block;
    width: 240px;
    margin-right: var(--space-md);
    overflow: hidden;
    vertical-align: top;
}

.sectionList .sectionImageObject {
    width: 100%;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: center;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.sectionList .sectionImageObject:hover {
    opacity: 1;
}

.sectionList a.sectionItemLink {
    display: block;
    padding: var(--space-sm);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.sectionList a.sectionItemLink:hover {
    background: var(--color-bg);
    text-decoration: none;
}

/* Pages menu */
.pagesMenu .menuItem {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.pagesItemTitle h3 {
    margin-bottom: var(--space-xs);
}

.pagesImage {
    float: left;
    margin-right: var(--space-md);
    margin-bottom: var(--space-sm);
}

.pagesImage img {
    border-radius: var(--radius-sm);
}

/* Image slider */
.imageSlider {
    width: 100%;
    overflow: hidden;
}

.imageSlider {
    display: flex;
    gap: 40px;
    animation: logoScroll 20s linear infinite;
}

.sliderImage {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sliderImage img {
    display: block;
    max-height: 140px;
    width: auto;
}

@keyframes logoScroll
{
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- 14. Powermail Forms ---------- */
.frame:has(.tx-powermail form.layout1)
{
    width: min(840px, 99%);
    margin-inline: auto;
}
.tx-powermail fieldset
{
    border: none;
}

.tx-powermail form.layout1 fieldset,
.tx-powermail div.powermail_create
{
    padding: var(--space-md);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
}

.tx-powermail .powermail_legend
{
    display: none;
}

.tx-powermail form.layout1 h3
{
    display: none;
}

fieldset.layout2 .row
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.tx-powermail form.layout1 input.powermail_input,
.tx-powermail form.layout1 textarea.powermail_textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.tx-powermail form.layout1 input.powermail_input:focus,
.tx-powermail form.layout1 textarea.powermail_textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(10, 113, 180, 0.15);
}

.tx-powermail form.layout1 label.powermail_label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.tx-powermail form.layout1 div.powermail_fieldwrap {
    margin-bottom: var(--space-md);
}

.tx-powermail .powermail_field.powermail_submit,
.tx-powermail .powermail_field.powermail_reset {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.tx-powermail .powermail_field.powermail_submit:hover {
    background: var(--color-primary-dark);
}

.tx-powermail .parsley-errors-list {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    list-style: none;
    padding: 0;
    margin-top: var(--space-xs);
}

.parallaxPage .tx-powermail {
    max-width: 500px;
    margin: 0 auto;
}

.parallaxPage .tx-powermail .powermail_legend {
    display: block;
    text-align: center;
    font-size: var(--font-size-lg);
    padding-top: var(--space-xl);
}

/* Captcha */
.powermail_fieldwrap_type_captcha
{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.powermail_fieldwrap_type_captcha .powermail_field
{
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.powermail_fieldwrap_type_captcha label
{
    flex-basis: 190px;
}

.powermail_fieldwrap_type_captcha input.powermail_captcha
{
    width: 4ch;
    padding: var(--space-xs) var(--space-sm);
}

.powermail_captchaimage
{
    flex-basis: 100%;
}

.powermail_fieldwrap_type_check .powermail_field
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.powermail_field .btn-primary
{
    padding-inline: 1rem;
    padding-block: 0.5rem;
    background: var(--color-link);
    border-radius: 0.3rem;
    color: white;
    cursor: pointer;
}
.powermail_field .btn-primary:hover
{
    box-shadow: 0 0 0 2px var(--color-accent);
}

.text-center
{
    text-align: center;
}

.text-right
{
    text-align: right;
}
    /* ---------- 15. RSS Display ---------- */

.tx-rssdisplay .news-img-wrap {
    float: left;
    width: 120px;
    max-width: 50%;
    max-height: 120px;
    margin-right: var(--space-md);
    overflow: hidden;
}

.tx-rssdisplay .news-img-wrap img {
    max-width: 100%;
    height: auto;
}

.tx-rssdisplay .article {
    max-width: 800px;
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    margin-left: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.tx-rssdisplay .article:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.tx-rssdisplay .teaser-text::after {
    display: block;
    content: "";
    clear: both;
}

/* ---------- 16. Utilities ---------- */

.align-right { text-align: right; }
.align-center { text-align: center; }

.clear {
    clear: both;
    height: 0;
    width: 0;
    float: none;
}

/* ---------- 17. Media Queries (mobile-first) ---------- */

/* Small phones */
@media (max-width: 480px) {
}

/* Tablet and up */
@media (min-width: 768px) {
    #websiteSlogan {
        display: block;
    }

    .tx-powermail form.layout1 label.powermail_label
    {
    }

    .tx-powermail form.layout1 .powermail_fieldwrap_type_textarea div.powermail_field
    {
        display: block;
        width: 100%;
        float: none;
    }

    .tx-powermail form.layout1 .powermail_fieldwrap_type_submit div.powermail_field {
        display: block;
        width: 100%;
        text-align: right;
    }
}

/* Mobile menu open state (below 1024px) */
@media (max-width: 1023px) {
    #mainMenuWrapper {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: 50vh;
        max-height: calc(100vh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        background: var(--color-bg);
        padding: var(--space-lg);
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid var(--color-border);
    }

    #mainMenuWrapper.mobile-open {
        display: block;
    }

    #mainMenu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #mainMenuWrapper a,
    #mainMenuWrapper a:visited {
        padding: var(--space-md);
        font-size: var(--font-size-base);
        border-bottom: 1px solid var(--color-bg-subtle);
    }

    #mainMenuWrapper ul.level2 {
        position: static;
        display: block;
        min-width: 100%;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding-left: var(--space-md);
        background: var(--color-bg-subtle);
    }

    #mainMenuWrapper ul.level3 {
        position: static;
        display: block;
        min-width: 100%;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding-left: var(--space-md);
    }

    #mainMenuWrapper li.menuItem47 > ul.level2 {
        left: 0;
        transform: none;
        min-width: 100%;
        column-count: 1;
    }
}

.ce-gallery figcaption
{
    display: block;
    padding-inline: 1rem;
}

/* Desktop nav visible */
@media (min-width: 1024px)
{
    #mainMenuWrapper
    {
        display: block;
    }

    .mobile-menu-btn
    {
        display: none;
    }

    #centreArea
    {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    #rightContent {
        margin-top: 0;
    }

    #teaser {
        height: 45vh;
        max-height: 550px;
    }

    .teaserImgInnerWrapper.withBG {
        height: 45vh;
        max-height: 550px;
    }

    #footer {
        flex-wrap: nowrap;
    }
}

/* Wide screens */
@media (min-width: 1280px) {
    #mainMenuWrapper a {
        font-size: var(--font-size-base);
        padding: var(--space-sm) var(--space-md);
    }
}

/* ==========================================================================
   Quick Wins: Scroll Animations, Back-to-Top, Dark Mode adjustments
   ========================================================================== */

/* ---------- Scroll Reveal Animations ---------- */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Elements waiting to be revealed */
.reveal {
    opacity: 0;
}

.reveal.revealed {
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed.fade-up     { animation-name: fadeInUp; }
.reveal.revealed.fade-left   { animation-name: fadeInLeft; }
.reveal.revealed.fade-right  { animation-name: fadeInRight; }
.reveal.revealed.scale-in    { animation-name: scaleIn; }

/* Staggered children */
.reveal.revealed:nth-child(2) { animation-delay: 0.1s; }
.reveal.revealed:nth-child(3) { animation-delay: 0.2s; }
.reveal.revealed:nth-child(4) { animation-delay: 0.3s; }
.reveal.revealed:nth-child(5) { animation-delay: 0.4s; }
.reveal.revealed:nth-child(6) { animation-delay: 0.5s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
    }
    .reveal.revealed {
        animation: none;
        opacity: 1;
    }
}

/* ---------- Back to Top Button ---------- */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base),
                visibility var(--transition-base), background var(--transition-fast);
    z-index: 1000;
}

.back-to-top:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover svg {
    fill: #000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Dark Mode: weißer Button mit schwarzem Pfeil */
[data-theme="dark"] .back-to-top {
    background: #fff;
}

[data-theme="dark"] .back-to-top svg {
    fill: #000;
}

[data-theme="dark"] .back-to-top:hover {
    background: #e0e0e0;
}
