@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* =============================================
   RESET & JOOMLA OVERRIDES
   ============================================= */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    /* Verhindert horizontales Scrollen durch 100vw-Breakouts
       (Scrollbar zählt bei 100vw mit -> paar Pixel Overflow). */
    overflow-x: clip !important;
    max-width: 100% !important;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Entfernt Abstände über dem Header-Modul */
.header,
.mod-custom.custom,
header.site-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --accent-color: #a37213;
    --nav-bg: #4a4a4a;
    --nav-active: #333;
    --header-bg: #808285;
    --footer-bg: #808285;
    --text-color: #333;
    --container-width: 1050px;
}

/* =============================================
   BASE STYLES
   ============================================= */
.roessler-page {
    font-family: 'Lato', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Inline-Links im Fließtext: standard dunkel, NICHT orange */
.roessler-page a {
    color: var(--text-color);
    text-decoration: underline;
}

/* Nur explizite Aktions-Links bekommen die Akzentfarbe */
.roessler-page a.more-link,
.roessler-page a[href^="mailto"],
.roessler-page a[href^="tel"] {
    color: var(--accent-color);
    text-decoration: none;
}

.roessler-page a.more-link {
    display: inline-block;
    padding: 4px 0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
}

.roessler-page a.more-link:hover {
    color: #555;
    border-color: #555;
}

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

.roessler-page .r-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
    overflow: visible;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--header-bg);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    z-index: 100;
}

.header-banner {
    width: 100%;
    display: block;
}

.header-banner .r-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 50px 0 45px !important; /* genug Luft oben und unten */
}

.logo-link {
    display: block !important;
    line-height: 0;
}

.main-logo {
    width: 185px;
    height: auto;
    display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
    background-color: var(--nav-bg);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    min-height: 54px;
}

/* Mobile: hamburger mittig */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 0;
    min-height: 54px;
}

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hamburger als echter Button – Reset + sauberes Layout.
   Die 3 Bars nutzen non-breaking spaces, damit Joomlas Editor
   sie NICHT wegstrippt. font-size/line-height 0 versteckt das nbsp. */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.mobile-menu-toggle .bar,
.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 1px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
    margin: 0;
    transform-origin: center center;
    transition: transform 0.35s ease, opacity 0.2s ease;
    will-change: transform, opacity;
}

/* Hamburger -> X Animation.
   Bars sind 3px hoch mit 5px gap -> Abstand Bar-Mitte zu Nachbar-Bar-Mitte = 8px.
   Bar 1 runter + 45deg, Bar 2 verschwindet, Bar 3 hoch + -45deg -> sauberes X. */
.mobile-menu-toggle.is-open .bar:nth-child(1),
.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-open .bar:nth-child(2),
.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-open .bar:nth-child(3),
.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-container {
        justify-content: center;
        padding-right: 0;
    }
    .nav-links {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
    .nav-links li {
        margin: 0;
    }
    .nav-links a,
    .site-header .nav-links a {
        display: block;
        padding: 13px 22px;
        color: #fff !important;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none !important;
        transition: background-color 0.2s ease;
    }
    .nav-links a:hover,
    .nav-links a.active,
    .site-header .nav-links a:hover,
    .site-header .nav-links a.active {
        background-color: var(--nav-active) !important;
        text-decoration: none !important;
    }
    .offcanvas-menu,
    .offcanvas-overlay {
        display: none !important;
    }
}

/* =============================================
   OFFCANVAS MOBILE
   ============================================= */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    background-color: var(--nav-bg);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    visibility: hidden;
}

.offcanvas-menu.open {
    left: 0;
    visibility: visible;
}

.offcanvas-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.offcanvas-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas-links li {
    margin-bottom: 10px;
}

.offcanvas-links a {
    color: #fff;
    font-size: 1.1rem;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #666;
    text-transform: uppercase;
    text-decoration: none;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.offcanvas-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* =============================================
   TYPOGRAPHIE
   ============================================= */
.roessler-page h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    color: #777;
    margin: 0 0 20px 0;
}

.roessler-page h2,
.orange-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--accent-color);
    line-height: 1.3;
    margin-bottom: 12px;
}

@media (min-width: 769px) {
    .roessler-page h1 {
        font-size: 2.4rem;
    }
    .roessler-page h2,
    .orange-title {
        font-size: 1.75rem;
    }
}

.roessler-page p {
    margin-bottom: 14px;
    font-size: 0.97rem;
}

.roessler-page ul,
.roessler-page ol {
    font-size: 0.97rem;
}

/* Joomla auto-header verstecken */
.roessler-page .page-header {
    display: none;
}

/* =============================================
   STARTSEITE – WILLKOMMEN
   ============================================= */
.welcome-section {
    padding: 40px 0 20px;
    margin-bottom: 10px;
}

.title-separator {
    width: 120px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* Content Blocks */
.content-blocks {
    display: flex;
    flex-direction: column;
}

.content-block {
    display: flex;
    flex-direction: column;
    padding: 35px 0;
    gap: 25px;
    border-bottom: 1px solid #eaeaea;
}

@media (min-width: 769px) {
    .content-block {
        flex-direction: row;
        gap: 45px;
        align-items: flex-start;
    }
    .block-image {
        flex: 0 0 45%;
    }
}

.block-image img,
.content-img-large {
    width: 100%;
    height: auto;
    display: block;
}

.block-text {
    flex: 1;
}

.h2-separator {
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    margin-bottom: 18px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* =============================================
   UNTERSEITEN LAYOUTS
   ============================================= */
.main-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.page-title-left {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

.content-row {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .content-row {
        flex-direction: row;
        gap: 45px;
        margin-bottom: 50px;
    }
    .col-half {
        flex: 1 1 calc(50% - 22px);
    }
    .col-third {
        flex: 1 1 calc(33.333% - 30px);
    }
}

/* Bilder in Spalten immer volle Breite */
.col-half img,
.col-third img {
    width: 100%;
    height: auto;
    display: block;
}

.text-content {
    padding: 5px 0;
}

.styled-list {
    list-style-type: disc;
    margin-left: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.styled-list li {
    margin-bottom: 6px;
}

.image-stack img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.bold-titles strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.text-center-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
}

.section-spacing {
    margin-top: 45px;
}

.title-spacing {
    margin-top: 0;
}

/* =============================================
   GALERIE (Weingut-Seite)
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 12px;
    margin-top: 40px;
}

@media (min-width: 481px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    border-top: 4px solid var(--accent-color);
    padding: 40px 0 20px;
    font-size: 0.85rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .footer-columns {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }
    .brand-col { flex: 0 0 35%; }
    .address-col { flex: 0 0 30%; }
    .map-col { flex: 0 0 30%; }
}

.footer-logo {
    max-height: 130px;
    width: auto;
    height: auto;
    display: block;
    background: #fff;
    padding: 8px;
    mix-blend-mode: multiply;
}

.footer-title {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.footer-title-sep {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-col a {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom-row {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    font-size: 0.8rem;
}

.footer-bottom-row p {
    margin-bottom: 5px;
}

.footer-bottom-row a {
    color: #fff;
    text-decoration: none;
}

/* =============================================
   KONTAKT
   ============================================= */
.contact-section {
    margin-bottom: 40px;
}

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





/* =============================================
   CTA-HINTERGRUND PROBIEREN UND MEHR
   ============================================= */

.cta-bg-section {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 35px 0 10px;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
}

.cta-bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
}

.cta-bg-section .cta-box {
    position: relative;
    z-index: 1;
    background: transparent;
    margin: 0;
    padding: 0 0 25px;
}

.cta-bg-section .content-row {
    margin-bottom: 0;
}

.cta-bg-section img {
    display: block;
}


/* ========================================================================
   Weingut Rößler – Hero-Slider
   CSS für ein Joomla-Template (oder ein "Custom CSS"-Modul)
   ------------------------------------------------------------------------
   - 4 Slides, horizontaler Slide mit easeOutQuad, 600 ms
   - Autoplay 4,8 s
   - Caption: oranger Balken (RGBA(162,88,0,0.94)) + weißer
     PT-Serif-Italic-Text, ca. 175 % Schriftgröße
   - Bars liegen jeweils ganz an einer Bildschirmkante an, abwechselnd
     links und rechts
   - Pfeile links/rechts mit Drop-Shadow, kleine Bullet-Dots am unteren Rand
   - Mit Maus oder Finger ziehbar (Patschehändchen)
   - Aspect-Ratio 1200:380 (Originalmaß)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Reset im Slider-Scope, damit Joomla-Template-Styles nicht reinpfuschen */
.rs-slider,
.rs-slider * {
    box-sizing: border-box;
}

.rs-slider {
    position: relative;
    width: 100%;
    /* max-width: 1710px; */
    margin: 0 auto;
    aspect-ratio: 1200 / 380;
    overflow: hidden;
    background: #1a1a1a;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    cursor: grab;
    touch-action: pan-y;
}

.rs-slider.is-grabbing,
.rs-slider.is-grabbing * {
    cursor: grabbing !important;
}

/* Fallback für Browser ohne aspect-ratio-Support */
@supports not (aspect-ratio: 1 / 1) {
    .rs-slider::before {
        content: "";
        display: block;
        padding-bottom: 31.6667%; /* 380 / 1200 */
    }
}

/* -------- Bühne mit den Slides ---------------------------------------- */
.rs-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.rs-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(100%, 0, 0);
    transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.rs-slide.is-active {
    transform: translate3d(0, 0, 0);
    z-index: 2;
}

.rs-slide.is-leaving-left {
    transform: translate3d(-100%, 0, 0);
    z-index: 1;
}

.rs-slide.is-leaving-right {
    transform: translate3d(100%, 0, 0);
    z-index: 1;
}

.rs-slide.is-incoming-left {
    transform: translate3d(-100%, 0, 0);
}

.rs-slide.is-incoming-right {
    transform: translate3d(100%, 0, 0);
}

/* Drag-Modus: Slide folgt dem Finger/der Maus ohne Übergangs-Easing */
.rs-slider.is-dragging .rs-slide {
    transition: none !important;
}

/* -------- Hintergrundbild --------------------------------------------- */
.rs-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 0;
    color: transparent;
    font-size: 0;
    pointer-events: none;
}

/* -------- Caption: oranger Balken + Schrift --------------------------- */
.rs-caption {
    position: absolute;
    top: 75%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Bar liegt jeweils an einer Bildschirmkante (left:0 oder right:0). */
.rs-caption-left-narrow {
    left: 0;
    right: auto;
    width: 37%;
    max-width: 740px;
}

.rs-caption-right-medium {
    left: auto;
    right: 0;
    width: 64%;
    max-width: 1280px;
}

.rs-caption-right-wide {
    left: auto;
    right: 0;
    width: 69%;
    max-width: 1380px;
}

.rs-caption-left-wide {
    left: 0;
    right: auto;
    width: 83%;
    max-width: 1660px;
}

/* Text-Ausrichtung: jeweils zur "inneren" Kante des Bars */
.rs-caption-left-narrow .rs-text {
    text-align: right;
    padding: 8px 30px 8px 16px;
}

.rs-caption-right-medium .rs-text,
.rs-caption-right-wide .rs-text {
    text-align: left;
    padding: 8px 16px 8px 30px;
}

.rs-caption-left-wide .rs-text {
    text-align: center;
    padding: 8px 30px;
}

.rs-bar {
    position: absolute;
    inset: 0;
    background-color: #a25800;
    background-color: rgba(162, 88, 0, 0.94);
    line-height: 0;
    color: transparent;
    font-size: 0;
    opacity: 0;
    transform: translateX(400px);
    transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 800ms ease-out;
}

.rs-text {
    position: relative;
    z-index: 1;
    width: 100%;
    color: #ffffff;
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(16px, 1.85vw, 26px);
    line-height: 1.5;
    letter-spacing: normal;
    word-spacing: normal;
    text-shadow: none;
    text-transform: none;
    opacity: 0;
    transform: translateX(400px);
    transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 250ms,
                opacity 800ms ease-out 250ms;
}

/* Animationsrichtung je Slide */
.rs-slide[data-rs-from="left"] .rs-bar,
.rs-slide[data-rs-from="left"] .rs-text {
    transform: translateX(-400px);
}

/* Sichtbarer Endzustand auf dem aktiven Slide */
.rs-slide.is-active .rs-bar,
.rs-slide.is-active .rs-text {
    opacity: 1;
    transform: translateX(0);
}

/* -------- Pfeile ------------------------------------------------------ */
.rs-arrow {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 30;
    line-height: 0;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.rs-arrow:hover,
.rs-arrow:focus {
    opacity: 1;
    outline: none;
}

.rs-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

.rs-arrow-prev { left: 12px; }
.rs-arrow-next { right: 12px; }

.rs-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 1px rgba(0, 0, 0, 0.4));
}

/* -------- Bullet-Dots unten ------------------------------------------ */
.rs-bullets {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.rs-bullet {
    display: block;
    width: 14px;
    height: 14px;
    margin: 4px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.67);
    background-clip: padding-box;
    cursor: pointer;
    color: transparent;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rs-bullet:hover,
.rs-bullet.is-active {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.67);
}

.rs-bullet:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* -------- Responsive: Tablet ----------------------------------------- */
@media (max-width: 1024px) {
    .rs-bullet { width: 12px; height: 12px; }
}

/* -------- Responsive: Mobile ----------------------------------------- */
@media (max-width: 768px) {
    .rs-slider { aspect-ratio: 16 / 10; cursor: default; }
    .rs-text { font-size: clamp(13px, 3.2vw, 20px); }
    .rs-caption-left-narrow,
    .rs-caption-right-medium,
    .rs-caption-right-wide,
    .rs-caption-left-wide {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
    .rs-caption-left-narrow .rs-text,
    .rs-caption-right-medium .rs-text,
    .rs-caption-right-wide .rs-text,
    .rs-caption-left-wide .rs-text {
        text-align: center;
        padding: 6px 14px;
    }
    .rs-caption { top: 78%; }
    .rs-arrow { width: 30px; height: 30px; }
    .rs-arrow-prev { left: 8px; }
    .rs-arrow-next { right: 8px; }
    .rs-bullet { width: 10px; height: 10px; margin: 3px; }
    .rs-bullets { bottom: 8px; }
}

@media (max-width: 480px) {
    .rs-slider { aspect-ratio: 4 / 3; }
    .rs-text { font-size: clamp(12px, 3.4vw, 16px); }
    .rs-caption-left-narrow .rs-text,
    .rs-caption-right-medium .rs-text,
    .rs-caption-right-wide .rs-text,
    .rs-caption-left-wide .rs-text {
        padding: 5px 10px;
    }
    .rs-arrow { width: 26px; height: 26px; }
}

/* -------- Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .rs-slide,
    .rs-bar,
    .rs-text,
    .rs-arrow,
    .rs-bullet {
        transition-duration: 0.001ms !important;
    }
}

.r-container.footer-container {
  padding: 0 20px;
}

.roessler-page {
  padding: 50px 0;
}