@import url("template-grid.css");
@import url("params.css");
@import url("font.css");
@import url("menu.css");
@import url("footer.css");
@import url("startseite.css");
@import url("mehrgestalt.css");
@import url("gemeinsam.css");

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

html {
    font-size: 100%;}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;}}


body {
         margin          : 0;
         padding         : 0;
         font-size       : 1rem;
         line-height     : 1.5;
         font-family     : 'standard';
         color           : var(--text);
         background      : var(--bg-color);
         -webkit-font-smoothing: antialiased;
         -moz-osx-font-smoothing: grayscale; }

@media (max-width: 700px) {
body {
         font-size       : 1.2rem;
         line-height     : 1.3;}}

/* Ueberschriften */
h1, h2, h3, h4, h5, h6 {
    font-family          : 'logo-schrift';
    color                : var(--text-logo)}



h2 {
         font-size       : 2rem;
         padding         : 0.5em 0 .3em 0;}
@media (min-width: 601px) {
h2 {
         font-size       : 1.85rem;
         padding         : 0.5em 0 0.35em 0;}}




/* Gemeinsame Grundeinstellungen */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 1.4em;
    margin-bottom: 0.55em;
}

h1, h2{
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.7em;
    padding-bottom: 5px;}

.page-header {
    margin-bottom: 1.7em;}


/* H3 – Unterüberschrift */
h3 {
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    font-weight: 650;
    padding: 0.75em 0 1em 0;
    border-bottom: 0px solid var(--gs-allgemein);}

h3 .schulinfo {
         font-weight: 400!important;}

/* H4 */
h4 {
    font-size: 1.3rem;
    font-weight: 650;
}

/* H5 */
h5 {
    font-size: 1.15rem;
    font-weight: 600;
}


/* Kopfbereich Rechtliches */
.header-rechtliches {
    position: sticky;
    top: 0;
    z-index: 999;
    max-height: 200px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.35s ease;
}

/* Bild im Kopfbereich */
.header-rechtliches img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 150px;
    height: auto;
    object-fit: contain;
}

/* Absatzabstände entfernen */
.header-rechtliches p {
    margin: 0;
}

/* Beim Scrollen ausblenden */
.header-rechtliches.header-hidden {
    transform: translateY(-100%);
}





.mod_edocman_document-list .document .document-details .title{
         font-size       : 1.6rem;}
@media (min-width: 601px) {
.mod_edocman_document-list .document .document-details .title {
         font-size       : 1.2rem;}}


/* Lange Links umbrechen */
a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        min-width: 0 !important;
        max-width: 100% !important;}
a {
         color           : var(--link);
         text-decoration : none;
         font-weight     : bold}

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

a:focus-visible img {
    outline: 3px solid #263f34;
    outline-offset: 4px;
    border-radius: 4px;
}
a:hover,
a:focus {
         color           : var(--link-hover);
         text-decoration : underline;}

/* Spezieller Fokusstil, wenn sichtbar per Tastatur */
a:focus-visible {
    color: var(--link-hover);
    text-decoration: underline;
    outline: 3px solid #ff6600;
    outline-offset: 3px;}

ul.tags li a {
    pointer-events: none;
}

/* ==========================================
   GLOBALE LISTENFORMATIERUNG
   ========================================== */

.com-content-article__body ul,
.com-content-article__body ol,
.item-content ul,
.item-content ol {
    list-style-position: outside;
    padding-left: 2.6em;
    margin: 0.5em 0 1em 0;
}

.com-content-article__body ul li,
.com-content-article__body ol li,
.item-content ul li,
.item-content ol li {
    padding-left: 0.25em;
    margin-bottom: 0.25rem;
    line-height: 1.65;
}

/* Verschachtelte Listen */
.com-content-article__body ul ul,
.com-content-article__body ul ol,
.com-content-article__body ol ul,
.com-content-article__body ol ol {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    padding-left: 1.5em;
}

/* Smartphone */
@media (max-width: 600px) {
    .com-content-article__body ul,
    .com-content-article__body ol {
        padding-left: 1.4em;
    }

    .com-content-article__body ul li,
    .com-content-article__body ol li {
        padding-left: 0.15em;
    }
}

/* ==========================================
   ZURÜCK-BUTTON – GLOBAL
   ========================================== */

.backbutton {
    display: block;
    margin: 30px 0 20px;
}

.backbutton a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;

    background: #eaf1f7;
    color: #254e73 !important;
    border: 1px solid #d6e3ee;
    border-radius: 8px;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;

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

/* Pfeil vor dem Text */
.backbutton a::before {
         font-family     : 'FA-Solid';
         content         : '\f053';
    font-size: 1.5rem;
    line-height: 0.8;
}

/* Hover */
.backbutton a:hover {
    background: #315b83;
    color: #ffffff !important;
    border-color: #315b83;
    transform: translateX(-2px);
}

/* Smartphone */
@media (max-width: 600px) {
    .backbutton {
        margin: 24px 0 16px;
    }

    .backbutton a {
        padding: 9px 15px;
        font-size: 0.95rem;
    }
}


/* Weiterlesen als gut sichtbarer Button */
p.readmore a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    padding: 9px 15px !important;
    margin-top: 3px !important;

    background: #eaf1f7 !important;
    color: #254e73 !important;
    border: 1px solid #d6e3ee !important;
    border-radius: 8px !important;

    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;

    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
p.readmore a::after {
    content: "\f061";
    font-family: "FA-Solid";
    font-weight: normal;
    font-size: 0.85em;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

/* Pfeil bewegt sich beim Hover leicht nach rechts */
p.readmore a:hover::after {
    transform: translateX(4px);
}

/* ==========================================
   LINKS IM FLIESSTEXT
   ========================================== */
/* ==========================================
   LINKS IM FLIESSTEXT MIT ICON
   ========================================== */

a.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 4px 10px;
    margin: 2px 1px;

    color: #176b70 !important;
    background: #e5f3f2;
    border: 1px solid #c5e3e1;
    border-radius: 5px;

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

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

/* FontAwesome-Icon */
a.link-btn::after {
    content: "\f35d";
    font-family: "FA-Solid";
    font-size: 0.8em;
    font-weight: normal;
}

/* Hover */
a.link-btn:hover {
    color: #ffffff !important;
    background: #176b70;
    border-color: #176b70;
    text-decoration: none !important;
}

/* Tastaturfokus */
a.link-btn:focus-visible {
    outline: 2px solid #315b83;
    outline-offset: 3px;
}

/* Smartphone */
@media (max-width: 600px) {
    a.link-btn {
        padding: 5px 9px;
        font-size: 0.95rem;
    }
}

/* normalize */
address  {
         font-style      : normal;}
p {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    unicode-bidi: isolate;}

h1, h2, h3, h4, h5, h6  {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: normal;
    unicode-bidi: isolate;
}

figure {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;}

dl {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    unicode-bidi: isolate;}

dd {
    display: block;
    margin-inline-start: 0px;
    unicode-bidi: isolate; }
input {
    margin: 0em;
    padding: 0;
    border-width: 0px;
    border-style: inset;
    border-color: inherit;
    border-image: initial;
    padding-block: 0px;
    padding-inline: 0px;}

fieldset {
    display: block;
    min-inline-size: min-content;
    margin-inline: 0px;
    border-width: 0px;
    border-style: groove;
    border-color: threedface;
    border-image: initial;
    padding-block: 0em;
    padding-inline: 0em;}

/* Bilder / Medien */
img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}


/* FORMULARE */

button,
input,
textarea,
select {
    font: inherit;
}

button,
input,
textarea,
select {
    margin: 0;
}

/*  BARRIEREFREIHEIT  */
/*
 * Für Inhalte, die visuell versteckt,
 * für Screenreader aber weiterhin vorhanden
 * sein sollen.
 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0; }

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    color: #fff!important;
    background-color: #DF0000;
    transform: translateY(-200%);}

.skip-link:focus-visible {
    transform: translateY(0);}


/*  Silbentrennung
 * Nicht global auf * anwenden.
 *
 * Besser gezielt für längere Textbereiche:*/
.com-content-article__body p {
     hyphens: auto;
     -webkit-hyphens: auto;
     overflow-wrap: break-word;}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;}}

/* BREADCRUMBS */

/* =========================================
   BREADCRUMB – dezente Gestaltung
   ========================================= */

.breadcrumb-leiste {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    padding: 8px 0;
    margin: 0 0 20px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #777;
    background: transparent;
    box-sizing: border-box;
}

.breadcrumb-leiste p {
    font-size: 0.88rem;
    margin-bottom: 0px;    }
/* Module vereinheitlichen */
.breadcrumb-leiste > .moduletable {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Startseite */
.breadcrumb-leiste #mod-custom156 p {
    margin: 0 !important;
    padding: 0 !important;
}

.breadcrumb-leiste #mod-custom156 a {
    color: #777;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.breadcrumb-leiste #mod-custom156 a:hover {
    color: #315d7e;
}

/* Kleines Haus-Icon vor Startseite */
.breadcrumb-leiste #mod-custom156 a::before {
    font-family: "FA-Solid";
    content: '\f015';
    margin-right: 7px;
    font-size: 0.85em;
    color: #999;
}

/* Joomla Breadcrumb */
.breadcrumb-leiste .breadcrumbs-wrapper {
    display: flex;
    align-items: center;
    margin-left: 10px !important;
}

/* Navigation */
.breadcrumb-leiste .breadcrumbs-wrapper nav {
    margin: 0 !important;
    padding: 0 !important;
}

.breadcrumb-leiste ol.mod-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Breadcrumb-Elemente */
.breadcrumb-leiste ol.mod-breadcrumbs li {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
}

/* Joomla-Standard-Icon entfernen */
.breadcrumb-leiste .mod-breadcrumbs__divider {
    display: none !important;
}

/* Aktuelle Seite */
.breadcrumb-leiste .breadcrumb-item.active {
    color: #999;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 600px) {
    .breadcrumb-leiste {
        font-size: 0.82rem;
        padding: 6px 0;
        margin-bottom: 15px;
    }

    .breadcrumb-leiste .breadcrumbs-wrapper {
        margin-left: 7px !important;
    }

    .breadcrumb-leiste .breadcrumbs-wrapper::before {
        margin-right: 7px;
    }
}


/* =========================================
   Breadcrumb – Trennung der Ebenen
   ========================================= */

/* Trenner zwischen Startseite und Joomla-Breadcrumb */
.breadcrumb-leiste .breadcrumbs-wrapper {
    margin-left: 0 !important;
}


/* Joomla-eigenen ersten Trenner entfernen */
.breadcrumb-leiste .mod-breadcrumbs__divider {
    display: none !important;
}

/* Trenner zwischen den Joomla-Ebenen */
.breadcrumb-leiste ol.mod-breadcrumbs li + li::before {
    font-family: "FA-Solid";
    content: '\f105';
    display: inline-block;
    margin: 0 10px;
    color: #bbb;
    font-size: 0.8em;
}

/* Smartphone */
@media (max-width: 600px) {
    .breadcrumb-leiste .breadcrumbs-wrapper::before,
    .breadcrumb-leiste ol.mod-breadcrumbs li + li::before {
        margin-left: 7px;
        margin-right: 7px;
    }
}


.icon-edit {
    display: inline-block;
    font-size: 18px;
    margin-right: 6px;
}

a[aria-describedby^="editarticle-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0;
    background: #eef2f5;
    border-radius: 50%;
}

a[aria-describedby^="editarticle-"] .icon-edit {
    font-size: 17px;
}

a[aria-describedby^="editarticle-"]:hover {
    background: #dce8f2;
}

a[aria-describedby^="editarticle-"] .icon-edit::before {
    font-family: "FA-Solid";
    content: "\f044";
    font-weight: normal;
}

a[aria-describedby^="editarticle-"] .edit-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Formulargruppen */
.control-group {
    margin-bottom: 24px;
}

/* Beschriftung */
.control-group .control-label {
    margin-bottom: 8px;
}

.control-group .control-label label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #34434a;
}

/* Pflichtfeld-Stern */
.control-group .star {
    color: #c65b50;
}

/* Eingabefelder */
.control-group .controls input.form-control,
.control-group .controls textarea,
.control-group .controls select {
    width: 100%;
    max-width: 650px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #ccd5d8;
    border-radius: 5px;
    background: #fff;
    color: #34434a;
    font-family: inherit;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Fokus */
.control-group .controls input.form-control:focus,
.control-group .controls textarea:focus,
.control-group .controls select:focus {
    border-color: #438b78;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 139, 120, .12);
}

/* Platzhalter */
.control-group .controls input::placeholder,
.control-group .controls textarea::placeholder {
    color: #9aa8ac;
}


/* Editor-Buttons */
.editor-xtd-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Einzelne Buttons */
.editor-xtd-buttons .xtd-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #d5dfdc;
    border-radius: 5px;
    background: #f4f7f6;
    color: #344b45;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}

/* Icons */
.editor-xtd-buttons .xtd-button span {
    font-size: 16px;
}

/* Hover */
.editor-xtd-buttons .xtd-button:hover {
    background: #438b78;
    border-color: #438b78;
    color: #fff;
    cursor: pointer;
}

/* Button-Abstand und Anordnung */
.d-grid.gap-2.mb-2 {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
    margin-bottom: 24px !important;
}

/* Grundgestaltung aller Aktionsbuttons */
.d-grid.gap-2.mb-2 button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}

/* Icons */
.d-grid.gap-2.mb-2 button.btn span {
    font-size: 15px;
}

/* Speichern – Hauptaktion */
.d-grid.gap-2.mb-2 [data-submit-task="article.apply"],
.d-grid.gap-2.mb-2 [data-submit-task="article.save"] {
    background: #438b78;
    border-color: #438b78;
    color: #fff;
}

.d-grid.gap-2.mb-2 [data-submit-task="article.apply"]:hover,
.d-grid.gap-2.mb-2 [data-submit-task="article.save"]:hover {
    background: #326e5e;
    border-color: #326e5e;
}

/* Als Kopie speichern */
.d-grid.gap-2.mb-2 [data-submit-task="article.save2copy"] {
    background: #eaf1ee;
    border-color: #d5e2dc;
    color: #365e50;
}

.d-grid.gap-2.mb-2 [data-submit-task="article.save2copy"]:hover {
    background: #dcebe4;
}

/* Versionen */
.d-grid.gap-2.mb-2 [data-joomla-dialog] {
    background: #f3f5f5;
    border-color: #dce2e1;
    color: #45565a;
}

.d-grid.gap-2.mb-2 [data-joomla-dialog]:hover {
    background: #e8eeec;
}

/* Abbrechen */
.d-grid.gap-2.mb-2 [data-submit-task="article.cancel"] {
    background: #f8e9e8;
    border-color: #e8cecb;
    color: #a34d48;
}

.d-grid.gap-2.mb-2 [data-submit-task="article.cancel"]:hover {
    background: #f1d9d6;
    border-color: #d9b5b0;
    color: #923e39;
}