/*
Theme Name: Flora Magica
Theme URI: https://floramagica.com
Author: Mario
Description: A magical WordPress theme for Flora Magica
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flora-magica
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, block-styles, wide-blocks

This theme is licensed under the GPL.
*/

/* Reset and base styles */
* {
    box-sizing: border-box;
}

.wp-block-gallery .wp-block-image {
    display: none;
    visibility: hidden;
}

.wp-block-gallery .wp-block-image:first-of-type {
    display: block;
    /* nur das erste Bild zeigen */
    visibility: visible;
    width: 100%;
    width: 300px;
}

.secondary-navigation {
    color: var(--wp--preset--color--white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    margin-left: auto;
    margin-top: 50px;
    display: inline-block;
}

.secondary-navigation {
    color: var(--wp--preset--color--orange);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 3rem;
}

.secondary-navigation:hover {
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--petrol);
    border-radius: 50px;
    text-decoration: none;
}


/* Typography */
:root {
    --font-heading: "Limelight", "Georgia", serif;
    --font-body: "DM Sans", "Arial", sans-serif;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    background-color: var(--wp--preset--color--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 0rem;
    margin-bottom: 0rem;
    margin-block-end: 0rem;
    margin-block-start: 0rem;
}

/* Layout */
#page {
    position: relative;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    #page {
        max-width: 100%;
    }

    .mobile-hidden {
        display: none !important;
    }

    .no-padding-left-mobile {
        padding-left: 0 !important;
    }

    .mobile-text-left {
        text-align: left !important;
    }

    .wp-block-columns {
        padding-top: var(--wp--preset--spacing--0) !important;
        margin-top: 0rem;
      

    }
}

/* Header Styles */
.site-header {
    background: var(--wp--preset--color--petrol);
    padding: 0rem 0;
    border-bottom: 3px solid var(--wp--preset--color--orange);
}

.header-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: left;
    gap: 20px;
    width: 100%;
}

#masthead .content-width {
    display: flex;
}

.plant_top {
    width: 280px;
    position: absolute;
    top: -20px;
    left: 20px;
    rotate: -20deg;
}

.plant_right {
    height: 120px;
    width: auto;
    position: absolute;
    top: 1250px;
    right: -50px;
    rotate: 10deg;
}

.plant_left {
    height: auto;
    width: 600px;
    position: absolute;
    top: 1500px;
    left: -80px;
}

.plant_left img {
    width: 70%;
    height: auto;
}

.plant_bottom {
    height: auto;
    width: 140px;
    position: absolute;
    bottom: 70px;
    right: 140px;
}

@media (max-width: 1024px) {
    .plant_top {
        width: 160px;
        top: 20px;
        left: 40px;
    }

    .plant_left {
        width: 400px;
        top: 2000px;
        left: -80px;
    }

    /* Keep secondary nav right-aligned on tablet */
    .secondary-navigation {
        align-self: flex-end;
        margin-left: 0;
        margin-right: 1rem;
        margin-top: 1rem;
    }
}

/* Mobile: plant_left.svg anzeigen, plant_top.svg verstecken */
@media (max-width: 768px) {
    .plant_desktop {
        display: none;
    }

    .plant_mobile {
        display: block;
    }

    .plant_top {
        width: 300px;
        position: absolute;
        top: 20px;
        left: -70px;
        rotate: 0deg;
    }

    .plant_bottom {
        width: 70px;
        bottom: 70px;
        right: 40px;
    }

    /* Keep secondary nav right-aligned on mobile */
    .secondary-navigation {
        align-self: flex-end;
        margin-left: 0;
        margin-right: 1rem;
        margin-top: 3.5rem;
    }
}

/* Desktop: plant_top.svg anzeigen, plant_left.svg verstecken */
@media (min-width: 769px) {
    .plant_desktop {
        display: block;
    }

    .plant_mobile {
        display: none;
    }
}


/* Leaf animations are now defined within the SVG file itself */

.site-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--limelight);
    font-size: 1.8rem;
    color: var(--wp--preset--color--orange);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--white);
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    list-style: none;
    margin: 60px 0 0 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--wp--preset--color--orange);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--petrol);
    border-radius: 50px;
}

.menu-toggle {
    display: none;
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--petrol);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

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

    .site-branding {
        flex-direction: column;
        text-align: left;
        gap: 10px;
    }



    .main-navigation {
        margin-left: auto;
        text-align: left;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: block;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    color: var(--wp--preset--color--orange);
    background: var(--wp--preset--color--petrol);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    z-index: 999999;
}

/* Basic Layout */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#primary {
    flex: 1;
}

.content-width {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Repertoire Scroll Container */
.repertoire-container {
    width: 50%;
    height: 0;
    padding-bottom: 50%;
    /* Creates perfect circle - height matches width */
    margin: 3rem auto;
    border-radius: 50%;
    background: var(--wp--preset--color--orange);
    overflow: hidden;
    position: relative;
    z-index: 2000;
}

.repertoire-content {
    z-index: 2001;
    position: absolute;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    pointer-events: auto;
}


/* Auto-scroll indicator */
.repertoire-container .auto-scroll-indicator {
    position: absolute;
    top: 10px;
    right: 0px;
    background: rgba(28, 65, 81, 0.8);

    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;

}

.repertoire-container .auto-scroll-indicator.active {
    opacity: 1;
}


/* Custom Scrollbar */
.repertoire-content::-webkit-scrollbar {
    width: 0px;
}

.repertoire-content::-webkit-scrollbar-track {
    background: rgba(28, 65, 81, 0.1);
    border-radius: 4px;
}

.repertoire-content::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--petrol);
    border-radius: 4px;
    display: none;
}

.repertoire-content::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 65, 81, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .repertoire-container {
        width: 100%;
        padding-bottom: 100%;
        /* Maintains perfect circle on mobile */
    }

    .repertoire-content {
        padding: 0rem;
    }
}

/* Content Width Container */
.content-width, .site-main, .site-footer {
    width: 100%;
    margin: 0 auto;
    padding-left: 12rem;
    padding-right: 12rem;
    background-color: var(--wp--preset--color--petrol);

}

@media (max-width: 1024px) {
    .content-width, .site-main, .site-footer {
        padding-left: 4rem;
        padding-right: 4rem;
    }

}

@media (max-width: 768px) {
    .entry-content {
        padding: 1rem 1rem !important;
    }

    .content-width, .site-main {
        padding-left: 0rem !important;
        padding-right: 0rem !important;
 
    }

    /* Footer */
    .site-footer {
        margin: 0;
        padding: 1rem 4rem !important;

        align-items: flex-start;
        justify-content: flex-start
    }

    .footer-navigation {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-navigation ul {
        justify-content: flex-start;
    }
}

.site-main {
    min-height: 100vH;
}

/* Footer */
.site-footer {
    background-color: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--white);
    margin-top: auto;
    padding: 1rem 12rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.footer-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;

}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.footer-navigation a {
    color: var(--wp--preset--color--petrol);
    text-decoration: none;
}

@media (max-width: 768px) {
    .content-width, .site-main, .site-footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.site-info {
    font-family: var(--font-body);
    color: var(--wp--preset--color--petrol);
}

/* Gutenberg Blocks Support */
.entry-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 10rem 1rem;
}

.entry-content>* {
    margin-left: auto;
    margin-right: auto;
}

.entry-content>.alignwide {
    max-width: 1480px;

    margin: 0 auto;
}

.entry-content>.alignfull {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

/* ===================================
    TERMINE SECTION STYLES - CORPORATE DESIGN
    =================================== */

.termine-section {
    margin: 0;
    padding: 0.5rem 0rem 3rem 0rem;
    background: var(--wp--preset--color--petrol);
    border-radius: 0;
    color: var(--wp--preset--color--white);

}

.termine-section h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--orange);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    text-transform: none;
}

.termine-section .aktuell-status {
    color: var(--wp--preset--color--white);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
    margin-bottom: 3rem;
    font-style: normal;
}

.termine-section .archiv-heading {
    color: var(--wp--preset--color--orange);
    font-family: var(--font-heading);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: none;
}

/* ===================================
    TAB NAVIGATION - CORPORATE DESIGN
    =================================== */

.termine-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.25rem 2.5rem;
    background: transparent;
    border: 2px solid var(--wp--preset--color--orange);
    border-radius: 50px;
    color: var(--wp--preset--color--orange);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--wp--preset--font-size--small);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.tab-btn:hover {
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--orange);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--wp--preset--color--orange);
    border-color: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--orange);
}

/* ===================================
    TAB CONTENT - CORPORATE DESIGN
    =================================== */

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h3 {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--wp--preset--color--orange);
    font-family: var(--font-heading);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    text-transform: none;
}

/* ===================================
    TERMINE GRID 
    =================================== */

.termine-grid {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin-bottom: 2rem;
}

/* ===================================
    TERMIN CARDS -
    =================================== */

.termin-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;

    padding-bottom: 1.5rem;
    width: 100%;
}

.termin-card:last-child {
    border-bottom: none;
}

.termin-datum {
    background: transparent;
    color: var(--wp--preset--color--white);
    padding: 0;
    border-radius: 0;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--wp--preset--font-size--small);
    margin-bottom: 0rem;
    display: block;
    text-transform: capitalize;
}

.termin-titel {
    color: var(--wp--preset--color--orange);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.termin-notes {
    color: var(--wp--preset--color--white);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
    margin: 0;
}

.termin-content {
    color: var(--wp--preset--color--white);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.termin-content p {
    margin-bottom: 0rem;
}

.termin-content p:last-child {
    margin-bottom: 0;
}

.termin-ort {
    color: var(--wp--preset--color--white);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    margin-top: 0rem;
}

/* ===================================
    RESPONSIVE DESIGN - CORPORATE DESIGN
    =================================== */

@media (max-width: 768px) {
    .termine-section {
        margin: 0rem 0;
        padding: 1rem 0rem;
    }

    .termine-section h2 {
        font-size: var(--wp--preset--font-size--medium);

    }

    .termine-section .archiv-heading {
        font-size: var(--wp--preset--font-size--normal);
    }

    .tab-content-horizontal {
        margin-top: 40px !important;
    }

    .termine-tabs {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .termine-grid {
        gap: 1.5rem;
    }

    .termine-tabs-horizontal {
        justify-content: flex-start;
    }

    /* Termine-Überschriften und Container linksbündig auf Mobile */
    .termine-section h2,
    .termine-section .archiv-heading,
    .termine-section .aktuell-status {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .termine-section h2 {
        font-size: var(--wp--preset--font-size--medium);
    }

    .termine-section .archiv-heading {
        font-size: 1.6rem;
    }

    .tab-pane h3 {
        font-size: 1.6rem;
    }

    .termin-titel {
        font-size: 1.1rem;
    }
}

/* ===================================
    EMPTY STATE - CORPORATE DESIGN
    =================================== */

.termine-section p {
    text-align: left;
    color: var(--wp--preset--color--white);
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
    font-style: normal;
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 0;
}

/* Horizontale Termine-Tabs */
.termine-tabs-horizontal {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn-horizontal {
    padding: 12px 24px;
    border: 2px solid var(--wp--preset--color--orange);
    background: transparent;
    color: var(--wp--preset--color--orange);
    cursor: pointer;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 400;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.tab-btn-horizontal:hover {
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--petrol);
}

.tab-btn-horizontal.active {
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--petrol);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}



.tab-content-horizontal {
    margin-top: 60px;
}

.tab-pane-horizontal {
    display: none;
}

.tab-pane-horizontal.active {
    display: block;
}

html {
    scroll-behavior: smooth;
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Sicherstellen, dass der Masthead über anderen Inhalten liegt */
    transition: top 0.3s;
    /* Für die Animation */
    background-color: white;
    /* Hintergrundfarbe für den Masthead */
    padding: 10px;
    /* Optional: Padding für den Masthead */
}

.logo img {
    max-height: 50px;
    /* Höhe des Logos anpassen */
}

/* Termine Tabs Horizontal */
.termine-tabs-horizontal {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem 0;
}

.tab-btn-horizontal {
    background: transparent;
    border: 1px solid var(--wp--preset--color--orange);
    color: var(--wp--preset--color--orange);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: var(--wp--preset--font-size--small);
}

.tab-btn-horizontal.active,
.tab-btn-horizontal:hover {
    background: var(--wp--preset--color--orange);
    color: var(--wp--preset--color--petrol);
}

.tab-content-horizontal .tab-pane-horizontal {
    display: none;
}

.tab-content-horizontal .tab-pane-horizontal.active {
    display: block;
}

/* Termine Grid 3-Spalter mit gleich hohen Karten */
.termine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
    border-bottom: 1px solid var(--wp--preset--color--orange);
    border-top: 1px solid var(--wp--preset--color--orange);
    padding-bottom: 0rem;
    padding-top: 1.5rem;
}



.termin-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 0 0 1.5rem 0;
    border-bottom: 1px solid rgba(255, 165, 0, 1);
}



.termin-content {
    flex: 1 1 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .termine-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .termine-grid {
        grid-template-columns: 1fr;
    }
}

/* Termine: Border-Bottom am Listenende ausblenden (abhängig von Parität) */
.termine-grid .termin-card:last-child {
    border-bottom: none ;
}

.termine-grid .termin-card:nth-last-child(2):nth-child(odd) {
    border-bottom: none ;
}

/* Termine: Ort-Link Darstellung */
.termine-section .termin-ort a {
    color: var(--wp--preset--color--orange);
    text-decoration: none;
    position: relative;
}

.termine-section .termin-ort a::after {
    content: "\2197";
    display: inline-block;
    margin-left: .35rem;
    font-size: .9em;
    line-height: 1;
    color: var(--wp--preset--color--orange);
}

.termine-section .termin-ort a:hover {
    color: var(--wp--preset--color--orange);
}

.termine-section .termin-ort a:hover::after {
    color: var(--wp--preset--color--orange);
}

/* Leerer Zustand im Termine-Grid mittig zwischen den Linien */

.termine-grid>p {
    margin: 0;
    padding: 1rem 0 1.5rem 0;
    width: 100%;
}