/* =====================================================
   REITHOF SCHUSTER
   Joomla 6 - Cassiopeia
===================================================== */


/* =====================================================
   1. GRUNDLAYOUT
===================================================== */

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

body {
  background-color: #F7E58D;  
      color: #1f4e79;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1f4e79;
}


/* =====================================================
   2. HEADERBILD
===================================================== */

.container-topbar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container-topbar .mod-custom,
.container-topbar p {
    width: 100%;
    margin: 0;
    padding: 0;
}

.container-topbar img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}


/* =====================================================
   3. HEADER
===================================================== */

.container-header,
header.header {
    margin: 0 !important;
    padding-top: 0 !important;
}

.container-header {
    background-color: #F7E58D;
    background-image: none;
    border-bottom: 4px solid #1f4e79;
    padding-bottom: 20px;
}

.navbar-brand {
    display: flex;
    justify-content: center;
    width: 100%;
}

.navbar-brand,
.navbar-brand a,
.navbar-brand .site-title,
.navbar-brand .site-description {
    color: #1f4e79 !important;
}

.navbar-brand .site-title {
    font-size: 42px;
    font-weight: 700;
}


/* =====================================================
   4. HAUPTMENÜ
===================================================== */

.container-header .mod-menu,
.container-header .metismenu.mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 20px;
}

.container-header .mod-menu > li > a,
.container-header .metismenu.mod-menu > li > a,
.container-header .mod-menu .nav-link {
    display: block !important;
    padding: 10px 18px !important;

    background-color: #79b8ee !important;
    color: #123f67 !important;

    border: 2px solid #2f78b7 !important;
    border-radius: 8px !important;

    font-weight: 700 !important;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a,
.container-header .metismenu.mod-menu > li.active > a,
.container-header .mod-menu a[aria-current="page"] {
    background-color: #ffffff !important;
    color: #123f67 !important;
    border-color: #2f78b7 !important;
}

.container-header .mod-menu > li > a:hover,
.container-header .metismenu.mod-menu > li > a:hover,
.container-header .mod-menu .nav-link:hover {
    background-color: #2f78b7 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Trennlinie Startseite */

.start-trenner {
    width: 70%;
    max-width: 900px;
    height: 2px;
    margin: 50px auto;
    background: linear-gradient(to right,
        transparent,
        #2F78B7,
        transparent);
}

/* ===== Startseite ===== */

.start-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

.start-bild {
    flex: 0 0 250px;
  text-align: center;
}

.start-bild img {
    width: 100%;
  max-width: 250px;
    border-radius: 12px;
    display: block;
   margin: 0 auto;
}

.start-text {
    flex: 1;
}

.start-text h2 {
    margin-top: 0;
    color: #1F4E79;
}

.start-text p {
    line-height: 1.8;
    font-size: 1.15rem;
}

@media (max-width: 768px) {

    .start-block {
        flex-direction: column;
        gap: 20px;
    }

    .start-bild {
        width: 100%;
        max-width: 350px;
    }

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

.hinweis-box {
    margin-top: 30px;
    padding: 15px 20px;
    background: #f7f7f7;
    border-left: 5px solid #2F78B7;
    border-radius: 6px;
    font-size: 0.95rem;
}



/* =====================================================
   5. ALLGEMEINE BUTTONS
===================================================== */

.btn-primary {
    background-color: #1f4e79;
    border-color: #1f4e79;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #153b5c;
    border-color: #153b5c;
}


/* =====================================================
   6. MODULE OHNE UNNÖTIGE ABSTÄNDE
===================================================== */

.mod-custom {
    margin: 0;
    padding: 0;
}

.mod-custom p {
    margin: 0;
}

/* ==========================================
   Bildergalerie (Reitunterricht & Hundezucht)
   ========================================== */

.bilder-galerie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin: 20px 0;
}

/* ==========================================
   Bildergalerie (Reitunterricht & Hundezucht)
   ========================================== */

/* Gemeinsame Galerie */
.bilder-galerie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.bilder-galerie img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* Reitunterricht – höheres Format */
.bilder-galerie.reitunterricht img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

/* Smartphone */
@media (max-width: 600px) {
    .bilder-galerie {
        grid-template-columns: 1fr;
    }
}

/* Zwei Bilder untereinander */

.start-bilder {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.start-bilder img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* =========================================
   Urkunden / Auszeichnungen
========================================= */

.urkunden-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: start;
    gap: 40px 60px;   /* 40px vertikal, 60px horizontal */
    margin: 50px auto;
}

.urkunden-grid img {
    display: block;
    width: auto;
    max-width: 420px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

@media (max-width: 768px) {

    .urkunden-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
    }

    .urkunden-grid img {
        max-width: 90%;
    }

}

/* =====================================================
   7. FOOTER
===================================================== */

.container-footer,
.container-footer *,
.footer-grid,
.footer-box,
.footer-copy {
    box-sizing: border-box;
}

.container-footer {
    width: 100%;
    margin: 0 !important;
    padding: 20px 30px 15px !important;
    background-color: #7bb8e6 !important;
    color: #ffffff !important;
}

.container-footer .grid-child {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(350px, 1.4fr) minmax(230px, 1fr);
    align-items: start;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 35px;
    text-align: center;
}

.footer-box {
    min-width: 0;
    text-align: center;
}

.footer-box h3 {
    margin: 0 0 15px;
    padding: 0 0 8px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.footer-box p {
    margin: 0;
    color: #ffffff;
    line-height: 1.8;
}

.footer-box a {
    display: inline-block;
    margin: 4px 0;
    color: #ffffff !important;
    text-decoration: none;
}

.footer-box a:hover,
.footer-box a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-copy {
    width: 100%;
    margin: 25px 0 0;
    padding: 15px 0 0;
    color: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* Telefonnummern möglichst in einer Zeile halten */
.footer-box a[href^="tel:"] {
    white-space: nowrap;
}

/* Smartphone */
@media (max-width: 768px) {
    .container-footer {
        padding: 18px 14px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 24px;
    }
}

/* =====================================================
   8. KONTAKTSEITE
===================================================== */

.com-contact__container > h2 {
    display: none !important;
}


/* =====================================================
   9. ZWERGENSTÜBCHEN
===================================================== */


.zwergen-block {
    display: flex;
    align-items: flex-start;      /* Bild und Text auf gleicher Höhe */
    justify-content: center;
    width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.zwergen-bild {
    flex: 0 0 250px;
    min-width: 0;
    text-align: center;
}
.zwergen-bild img {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}

.zwergen-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0;
    text-align: center;
}

/* =====================================================
   ZWERGENSTÜBCHEN-SEITE
===================================================== */

.zwergenstuebchen-seite {
    max-width: 1200px;
    margin: 0 auto;
}

.zwergen-bilder {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.zwergen-bilder img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

/* Smartphone */

@media (max-width: 768px) {

    .zwergen-bilder {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .zwergen-bilder img {
        width: 100%;
        height: auto;
    }

}
/* =====================================================
   10. SMARTPHONE
===================================================== */

@media (max-width: 768px) {

 .zwergen-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    .zwergen-bild {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .zwergen-bild img {
        display: block !important;
        width: 260px !important;
        max-width: 90% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .zwergen-text {
        display: block !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 12px !important;
        text-align: center !important;
        overflow: visible !important;
        color: #1f4e79 !important;
    }

    .zwergen-text p,
    .zwergen-text span,
    .zwergen-text strong {
        display: inline !important;
        color: #1f4e79 !important;
    }

    .zwergen-text p {
        display: block !important;
        margin: 0 0 16px !important;
    }
}   
/* =========================================
   Footer auf Smartphones
========================================= */

@media (max-width: 768px) {

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
    }

    .footer-box {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .container-footer .grid-child {
        display: block !important;
    }
}

/* ==================================================
   Convert Forms – Reithof Schuster
   ================================================== */

/* Gesamtes Formular */
.convertforms,
.convertforms form,
.convertforms .cf-form,
.convertforms .cf-form-wrap,
.convertforms .cf-content-wrap {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Formularfläche */
.convertforms {
    margin: 0 !important;
    padding: 0 25px 25px 25px!important;
    background-color: #F7E58D !important;
    border-radius: 8px !important;
}

/* Alle normalen Feldbereiche */
.convertforms .cf-control-group,
.convertforms .cf-field,
.convertforms .cf-form-group,
.convertforms .form-group,
.convertforms .cf-control,
.convertforms .cf-control-input {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Abstände zwischen den Feldern */
.convertforms .cf-control-group,
.convertforms .cf-field,
.convertforms .cf-form-group,
.convertforms .form-group {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}

/* Beschriftungen */
.convertforms label,
.convertforms .cf-label {
    display: block !important;
    margin: 0 0 6px 0 !important;
    color: #003366 !important;
    font-weight: 600 !important;
}

/* Hilfetexte unter den Feldern */
.convertforms .cf-description,
.convertforms .cf-help-text,
.convertforms .form-text,
.convertforms small {
     color: #003366 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Nur sichtbare Texteingabefelder */
.convertforms input[type="text"],
.convertforms input[type="email"],
.convertforms input[type="tel"],
.convertforms input[type="number"],
.convertforms input[type="url"],
.convertforms input[type="password"],
.convertforms textarea,
.convertforms select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 42px !important;
    box-sizing: border-box !important;

    padding: 10px 12px !important;

    background-color: #ffffff !important;
    color: #222222 !important;

    border: 1px solid #999999 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

/* Textfeld Nachricht */
.convertforms textarea {
    min-height: 170px !important;
    resize: vertical !important;
}

/* Fokus auf Eingabefeldern */
.convertforms input[type="text"]:focus,
.convertforms input[type="email"]:focus,
.convertforms input[type="tel"]:focus,
.convertforms input[type="number"]:focus,
.convertforms input[type="url"]:focus,
.convertforms textarea:focus,
.convertforms select:focus {
    border-color: #003f73 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 63, 115, 0.15) !important;
}

/* Checkboxen und Radiobuttons nicht auf volle Breite ziehen */
.convertforms input[type="checkbox"],
.convertforms input[type="radio"] {
    width: auto !important;
    min-height: 0 !important;
    margin-right: 8px !important;
}

/* Datenschutzfeld */
.convertforms .cf-checkbox-group,
.convertforms .cf-radio-group {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* reCAPTCHA-Bereich */
.convertforms .g-recaptcha,
.convertforms .cf-recaptcha,
.convertforms iframe {
    max-width: 100% !important;
}

/* Bereich des Senden-Buttons */
.convertforms .cf-submit,
.convertforms .cf-submit-wrapper,
.convertforms .cf-button-wrapper,
.convertforms .cf-form-actions,
.convertforms .cf-field-submit,
.convertforms .form-actions {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 15px 0 0 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Senden-Button */
.convertforms button[type="submit"],
.convertforms input[type="submit"],
.convertforms .cf-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 110px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 12px 28px !important;

    background-color: #003f73 !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;

    font-size: 1rem !important;
    cursor: pointer !important;
}

/* Hover */
.convertforms button[type="submit"]:hover,
.convertforms input[type="submit"]:hover,
.convertforms .cf-btn:hover {
    background-color: #1c5a91 !important;
}

/* Versteckte Felder und Spam-Schutzfelder */
.convertforms input[type="hidden"],
.convertforms .cf-honeypot,
.convertforms .cf-field-honeypot,
.convertforms .cf-control-group.cf-honeypot,
.convertforms [name*="honeypot"],
.convertforms [style*="display: none"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Leere Container unter dem Button entfernen */
.convertforms .cf-response:empty,
.convertforms .cf-footer:empty,
.convertforms .cf-form-bottom:empty,
.convertforms .cf-form-actions:empty,
.convertforms .cf-control-group:empty,
.convertforms .cf-field:empty,
.convertforms div:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Mobil */
@media (max-width: 768px) {
    .convertforms {
        padding: 18px !important;
    }

    .convertforms button[type="submit"],
    .convertforms input[type="submit"],
    .convertforms .cf-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Hilfetexte unter den Eingabefeldern */
.convertforms .cf-control-input-desc {
    color: #003366 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
}

/* Gemeinsame Einstellungen */
.bilder-galerie {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
    margin: 20px 0;
}

.bilder-galerie img {
    width: 100%;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}


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

/* Smartphone */
@media (max-width: 600px) {
    .bilder-galerie {
        grid-template-columns: 1fr;
    }
}

/* Bildergalerie – Hover-Effekt */
.bilder-galerie {
    overflow: hidden;
}

.bilder-galerie img {
    transition: transform 0.35s ease;
}

.bilder-galerie img:hover {
    transform: scale(1.06);
}


.start-bilder-zwei {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================
   Tablet: weißen Rand und Überlauf verhindern
   ========================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Alle Elemente korrekt in ihre Breite einrechnen */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Bilder dürfen niemals breiter als ihr Bereich werden */
img {
    max-width: 100%;
    height: auto;
}

/* Hauptbereiche und Footer */
.site-grid,
.container-header,
.container-component,
.container-footer,
footer,
.footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Urkunden und Bildergalerien */
.urkunden-grid,
.bilder-galerie {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.urkunden-grid img,
.bilder-galerie img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Zweispaltige Inhaltsblöcke */
.start-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.start-bild,
.start-text,
.start-bilder-zwei {
    min-width: 0;
    max-width: 100%;
}

/* Footer-Inhalte dürfen nicht überstehen */
.footer .grid-child,
.container-footer .grid-child,
.footer-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .urkunden-grid,
    .bilder-galerie {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .start-block {
        flex-wrap: wrap;
    }

    .start-bild,
    .start-text,
    .start-bilder-zwei {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .urkunden-grid,
    .bilder-galerie {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Footer auf Tablets vollständig anzeigen
   ========================================== */

@media (max-width: 1024px) {

    .container-footer,
    .container-footer .grid-child,
    footer,
    .footer,
    .footer-inner,
    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Innenabstand des Footers */
    .container-footer .grid-child,
    .footer-inner,
    .footer-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Footer-Spalten dürfen nicht überstehen */
    .footer-grid,
    .footer-columns,
    .footer-inhalt {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .footer-grid > *,
    .footer-columns > *,
    .footer-inhalt > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }
}

/* Auf schmaleren Tablets und Smartphones untereinander */
@media (max-width: 700px) {

    .footer-grid,
    .footer-columns,
    .footer-inhalt {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}
/* ===========================
   Hundezucht-Galerie
   =========================== */

.bilder-galerie.hundezucht {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    margin: 20px 0;
}

.bilder-galerie.hundezucht img {
    display: block;
    width: 100%;
    aspect-ratio: 500 / 475;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform .3s ease;
}

.bilder-galerie.hundezucht img:hover {
    transform: scale(1.03);
}

/* Tablet */
@media (max-width: 991px) {

    .bilder-galerie.hundezucht {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

}

/* Smartphone */
@media (max-width: 576px) {

    .bilder-galerie.hundezucht {
        grid-template-columns: 1fr;
        gap: 8px;
    }

}


.bilder-galerie.reitunterricht img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    transition: transform .3s ease;
}