:root {
    --text-2xs: 0.6rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    /* Standardgröße */
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.375rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --default-color: #333;
    --link-color: #1e5c8e;
    --text-padding-horizontal: 1rem;
    --default-border-color: #D3D3D3;
}

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

.neues li h3,
h1,
h2,
h3 {
    font-weight: 400
}

body,
img {
    max-width: 100%
}

.filter p,
.suchergebnisse {
    clear: both
}

html {
    font-size: 125%;
    scrollbar-gutter: stable;
}

blockquote,
body,
dd,
div,
dl,
dt,
fieldset,
form,
input,
p,
pre,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0
}

p,
ul {
    margin-bottom: 1rem
}

body {
    color: var(--default-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body:has(#hauptmenue.aktiv) {
    overflow: hidden;
}

h1 {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    font-size: var(--text-4xl);
    font-weight: 400;
    word-wrap: break-word
}

.ausgeblendet {
    position: absolute;
    top: -9000px;
    left: -9000px
}

h2 {
    margin-top: 2rem;
    font-size: var(--text-2xl)
}

.neues h2,
h3 {
    font-size: var(--text-xl)
}

h3 {
    margin-top: 0
}

a {
    color: var(--link-color);
}

a:hover {
    text-decoration: none;
}

figure {
    margin: 0
}

img {
    border-style: none;
    vertical-align: bottom
}

table {
    border-collapse: collapse
}

ul {
    list-style: none
}

details {
    margin: 1rem 0;
}

summary {
    margin: 1.5rem 0;
    color: var(--link-color);
    font-weight: 600;
    cursor: pointer;
}

.text-xl {
    font-size: var(--text-xl)
}

.btn-link-look {
    background: none;
    border: none;
    padding: 0;
    color: var(--link-color);
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#hauptmenue,
#menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#hauptmenue.aktiv,
#menu-overlay.aktiv {
    opacity: 1;
    visibility: visible;
}

#hauptmenue {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 85vw;
    height: 100vh;
    min-width: 340px;
    max-width: 400px;
    background: white;
    padding: 1rem;
    padding-top: 70px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#hauptmenue.open {
    display: block;
}

#menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
}

#hauptmenue .menu-section h2 {
    text-transform: uppercase;
    font-weight: 500;
}

#hauptmenue ul {
    margin-bottom: 0;
}

#hauptmenue li a {
    display: block;
    padding: 12px 0 12px 12px;
    color: black;
    letter-spacing: .125rem;
    text-decoration: none;
}

#hauptmenue a:hover {
    background-color: #B9D3EE
}

#hauptmenue a.aktiv {
    background-color: #B9D3EE
}

#hauptmenue ul li ul {
    padding-left: 15px;
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.search-container {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border: 1px solid var(--default-border-color);
    border-radius: 40px;
    background: #fff;
    transition: all 0.3s ease;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Ändert das Design, wenn man in das Feld klickt */
.search-container:focus-within {
    border-color: var(--link-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.modern-search {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    width: 100%;
    font-size: 16px;
    color: #333;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.search-btn:hover {
    color: #007bff;
}

.suche-mobil {
    margin-bottom: 2rem;
}

.suche-desktop {
    display: none
}

.bildverweise,
header {
    text-align: center
}

header {
    position: fixed;
    top: 0;
    z-index: 998;
    width: 100%;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    background-color: white;
}

#header-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px var(--text-padding-horizontal);
    max-width: 1024px;
}

#header-wrapper.small {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    transition: padding 0.3s ease;
}

.logo {
    width: 200px;
    height: auto;
}

.header-right {
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

#search-form-desktop {
    display: none;
}

#menu-button {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-button svg {
    width: 40px;
    height: 32px;
}

main {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    max-width: 1024px;
    margin: 80px auto 0 auto;
}

main>*,
main>article>* {
    grid-column: 2;
}

main figure.titelbild,
main>article>figure.titelbild {
    grid-column: 1 / 4;
    width: 100%;
    margin: 0;
}

main>article {
    display: contents;
}

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

.sidebar {
    padding: 15px;
    background: #f1f0f9;
}

.sidebar h2:first-child {
    margin-top: 0;
}

.bildverweise div,
.bildverweise h2 {
    width: 100%;
    position: absolute;
    margin: 0
}

#ausgabe ul {
    border: 1px solid #BEBEBE
}

#ausgabe ul li a {
    display: block;
    padding: 5px;
    white-space: nowrap
}

#ausgabe ul li:hover {
    background-color: #B9D3EE
}

.bildverweise div h3,
.bildverweise h2 {
    text-align: left;
    color: #fff;
    line-height: 1.7em
}

.bildverweise li {
    display: inline-block;
    position: relative;
    margin-bottom: 5px
}

#map,
.bildverweise img {
    display: block
}

.bildverweise h2 {
    top: 0;
    text-indent: .5em;
    text-shadow: 2px 2px 2px #000
}

.bildverweise div {
    background-color: rgba(30, 30, 30, .65);
    bottom: 0
}

.bildverweise div h3 {
    margin: 0;
    padding: 0 7px
}

.bildverweise .card-title {
    position: absolute;
    bottom: 0;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 7px 5px 7px;
    width: 100%;
    background-color: rgba(30, 30, 30, .65);
    color: white;
    text-align: left;
    font-size: var(--text-xl);
}

.neues {
    margin-top: .5rem;
    background-color: #fff
}

.neues h2 {
    margin: 0;
    background-color: #666;
    color: #fff;
    text-indent: .5em;
    line-height: 1.7em
}

.neues ul {
    padding-left: 5px;
    padding-right: 5px
}

.neues li {
    margin-top: 1rem
}

.neues li h3 {
    margin-top: .2rem;
    margin-bottom: .2rem
}

.xl-verweis {
    display: block;
    font-size: var(--text-xl);
    margin-bottom: 1.25rem;
}

.verweisliste {
    font-size: var(--text-xl);
}

.feiertage-ferien .tage,
.filter p,
.filter_auswahl,
.kalender .heute,
.kategorie,
.kommentar .autor,
.programm .untertitel,
.programm .zeit,
.programm h2,
.titel,
.vorspann,
main .kalender caption {
    font-weight: 700
}

.neues li .datum,
.neues li .datum2,
.neues li .geoeffnet,
.neues li .geschlossen,
.neues li .ort,
.neues li .text {
    margin-top: 0;
    margin-bottom: 0
}

.neues li .ort:before {
    content: url(../images/museum.png);
    margin-right: .3rem
}

.neues li .geoeffnet:before,
.neues li .geschlossen:before {
    content: url(../images/uhr.png);
    margin-right: .3rem
}

.neues li .datum2:before {
    content: url(../images/kalender.png);
    margin-right: .3rem
}

footer {
    margin: 5rem 0 2rem 0;
    font-weight: 600;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.kategorie {
    margin: 0
}

.uebersicht_verweis {
    margin-bottom: 2rem
}

#gratisinsmuseum ul,
article ul {
    margin-left: 2.5rem;
    margin-bottom: 1rem;
    list-style: disc;
    line-height: 2.5rem;
}

article .news_zeilen {
    margin-left: 0;
    list-style: none
}

article .news_zeilen li {
    border-bottom: 1px solid #e7e7e7
}

.credits {
    margin: 0 5px;
    font-size: var(--text-2xs);
    text-align: right;
    color: #757575;
}

.ueberschrift {
    margin-bottom: var(--text-lg);
}

.ueberschrift h1 {
    margin-bottom: 0
}

.ueberschrift h2 {
    margin-top: 0;
    margin-bottom: 0
}

.untertitel {
    margin-top: 0
}

#map_box {
    margin-bottom: 0.25rem;
    height: 100px;
    width: 100%;
    overflow: hidden;
}

#map_box.is-enlarged {
    height: 300px;
}

#map {
    height: 300px
}

.geoeffnet {
    color: #008a00
}

.geschlossen,
.hinweis {
    color: #A00
}

.hinweis {
    padding: 5px;
    background: #ff0
}

.filter li {
    float: left;
    list-style: none;
    padding-left: 15px;
    padding-bottom: 15px
}

.box {
    display: none
}

h4 {
    border-top: thin solid #D3D3D3;
    border-bottom: thin solid #D3D3D3
}

.pfeil:after,
.summary:after {
    border: .313em solid transparent
}

.summary {
    color: #8b0000
}

.summary:after {
    width: 0;
    height: 0;
    border-bottom: none;
    border-top-color: #8b0000;
    content: '';
    vertical-align: middle;
    display: inline-block;
    position: relative;
    right: -.313em
}

.details {
    display: none
}

.pfeil:after,
h4 .pfeil:after {
    width: 0;
    height: 0;
    content: '';
    vertical-align: middle;
    display: inline-block;
    position: relative;
    right: -.313em
}

.pfeil:after {
    border-bottom: none;
    border-top-color: #666
}

h4 .pfeil:after {
    border: .313em solid transparent;
    border-bottom: none;
    border-top-color: #8b0000
}

.eintrittspreise {
    width: 100%;
    margin-bottom: 1rem
}

.eintrittspreise td {
    padding: 2px 20px 2px 0;
    border-bottom: 1px solid #e7e7e7
}

.programm ul {
    margin: 1rem auto 1rem 1.125rem
}

.programm li {
    border-bottom: 1px solid #ddd
}

.programm h3 {
    margin-bottom: 0;
    font-weight: 700
}

.programm p {
    margin-top: 1rem
}

.programm .untertitel {
    margin-top: 0
}

.veranstaltungen li {
    margin-bottom: 1rem
}

.videos li {
    margin-bottom: 2rem
}

.fb-share-button {
    margin-top: 30px
}

#kommentare ul {
    margin: 0;
    padding: 0;
    list-style: none
}

.kommentar {
    padding: 10px;
    border: 1px solid #a9a9a9
}

.kommentar .autor {
    margin: 0;
    color: #8b0000;
    font-size: .95rem;
    text-transform: uppercase
}

#kommentarformular .sicherheitsfrage,
.galerie {
    margin-bottom: 1rem
}

.kommentar .datum {
    margin-top: .2rem;
    font-size: .8rem;
    color: #757575;
}

.kommentar .text {
    overflow: auto
}

#kommentarformular {
    max-width: 500px;
}

#kommentarformular label {
    display: block;
    padding: 5px 0;
    line-height: 1.7rem
}

#kommentarformular label input,
#kommentarformular textarea {
    display: block;
    width: 298px;
    border: 1px solid #a9a9a9;
    outline: 0
}

#kommentarformular label input {
    padding: 0 5px;
    height: 1.7rem
}

#kommentarformular label textarea {
    padding: 5px;
    font-family: inherit
}

#kommentarformular label input:focus,
#kommentarformular label textarea:focus {
    border-color: #a50021
}

#kommentarformular .sicherheitsfrage input {
    display: inline;
    float: none;
    width: 40px;
    margin-left: 5px
}

#kommentarformular #senden {
    float: none;
    width: 200px;
    margin-bottom: 1rem;
    padding: 12px;
    border: none;
    background-color: #ddd;
    font-size: 1rem;
    cursor: pointer
}

.galerie {
    display: inline-block;
    width: 100%
}

.feiertage-ferien .daten {
    display: block
}

.galerie img {
    float: left;
    height: 108px;
    margin: 0 3px 3px 0
}

.gesamtliste h3 {
    margin-bottom: 0
}

.youtube {
    width: 100%;
    max-width: 468px;
    height: 263px;
    border: none
}

.feiertage-ferien li {
    border-bottom: 1px solid var(--default-border-color);
}

.feiertage-ferien li {
    padding: 5px 30px 2px 0
}

.daten_bis:before {
    content: "\A";
    white-space: pre
}

main .kalender {
    width: 100%;
    max-width: 733px;
    margin-bottom: 15px;
    padding: 10px 5px;
    border: 1px solid #D3D3D3;
    background-color: #FFF
}

main .kalender table {
    width: 100%;
    text-align: center
}

main .kalender caption {
    margin-bottom: 18px
}

main .kalender th,
tr {
    line-height: 2em
}

.kalender td {
    width: 27px;
    text-align: center
}

.kalender a {
    color: grey
}

.kalender .sonntag {
    color: red
}

.kalender .auswahl {
    background-color: #B9D3EE
}

.kalender .heute_auswahl {
    border: 1px solid red;
    background-color: #FBB
}

.wetter {
    display: inline-block
}

.wetter_tag {
    float: left;
    width: 80px;
    text-align: center
}

.wetter_symbol {
    width: 60px;
    height: 60px;
    margin: 0 10px;
    background: url(../images/wettersymbole.png) 100px 100px no-repeat
}

.wetter_wochentag {
    margin: .5rem 0
}

.wetter .temp_min {
    color: #00f
}

.wetter .temp_max {
    color: red
}

.ws1 {
    background-position: -7px -6px
}

.ws2 {
    background-position: -73px -6px
}

.ws3 {
    background-position: -139px -6px
}

.ws4 {
    background-position: -206px -6px
}

.ws5 {
    background-position: -273px -6px
}

.ws6 {
    background-position: -339px -6px
}

.ws7 {
    background-position: -406px -6px
}

.ws8 {
    background-position: -7px -73px
}

.ws9 {
    background-position: -73px -73px
}

.ws10 {
    background-position: -139px -73px
}

.ws11 {
    background-position: -206px -73px
}

.ws12 {
    background-position: -273px -73px
}

.ws13 {
    background-position: -339px -73px
}

.ws14 {
    background-position: -406px -73px
}

.ws15 {
    background-position: -7px -140px
}

.ws16 {
    background-position: -73px -140px
}

.ws17 {
    background-position: -139px -140px
}

.ws18 {
    background-position: -206px -140px
}

.ws19 {
    background-position: -273px -140px
}

.ws20 {
    background-position: -339px -140px
}

.ws21 {
    background-position: -406px -140px
}

.ws22 {
    background-position: -7px -206px
}

.ws23 {
    background-position: -73px -206px
}

.ws24 {
    background-position: -139px -206px
}

.ws25 {
    background-position: -206px -206px
}

.ws26 {
    background-position: -273px -206px
}

.ws27 {
    background-position: -339px -206px
}

.ws28 {
    background-position: -406px -206px
}

.ws29 {
    background-position: -7px -273px
}

.ws30 {
    background-position: -73px -273px
}

.ws31 {
    background-position: -139px -273px
}

.ws32 {
    background-position: -206px -273px
}

.ws33 {
    background-position: -273px -273px
}

.ws34 {
    background-position: -339px -273px
}

.ws35 {
    background-position: -406px -273px
}

.ws36 {
    background-position: -7px -340px
}

.ws37 {
    background-position: -73px -340px
}

.ws38 {
    background-position: -139px -340px
}

.ws39 {
    background-position: -206px -340px
}

.ws40 {
    background-position: -273px -340px
}

.ws41 {
    background-position: -339px -340px
}

.ws42 {
    background-position: -406px -340px
}

.suchergebnisse .thumbnail {
    display: block;
    float: left
}

.suchergebnisse .entfernung {
    float: left;
    padding: 10px
}

.suchergebnisse h3 {
    clear: both;
    margin-top: 5px;
    margin-bottom: 0
}

.mobile {
    display: block
}

.desktop {
    display: none
}

form[name=MemorixFormular] {
    padding: 10px
}


#empfehlungen_unten {
    display: inline-block;
    width: 100%;
    min-height: 200px;
    padding: 0 10px;
    box-sizing: border-box
}

@media only screen and (min-width:768px) {

    #search-form-mobile {
        display: none;
    }

    #search-form-desktop {
        display: flex;
    }

    #ausgabe,
    .links {
        overflow: hidden
    }

    .neues li,
    .uebersicht_einleitung,
    aside,
    footer {
        clear: both
    }

    h2 {
        font-size: var(--text-2xl);
    }

    .header-right {
        align-items: center;
    }

    .neues {
        border: 1px solid var(--default-border-color)
    }

    .bildverweise {
        display: inline-block;
        width: 750px;
        margin: 0 0 10px;
        padding: 0
    }

    .bildverweise li {
        float: left;
        margin: 0 5px 5px 0
    }

    .neues {
        width: 733px;
        margin-top: 0
    }

    .neues h2 {
        margin: -1px;
        font-size: var(--text-xl)
    }

    .neues .datum,
    .neues .text,
    .neues li h3 {
        margin-left: 175px
    }

    .neues ul {
        padding: 0 0 15px
    }

    .neues li {
        display: inline-block;
        width: 703px;
        padding: 0 15px
    }

    .neues li .thumbnail {
        float: left;
        margin-right: 15px
    }

    .neues .datum {
        color: #999;
        font-size: .8rem
    }

    .neues li h3 {
        margin-top: 0;
        margin-bottom: 0;
        font-size: var(--text-lg);
    }

    footer {
        height: auto
    }

    .uebersicht_bild {
        float: left;
        margin-right: 10px;
        margin-bottom: 10px
    }

    h4 {
        border-top: none
    }

    .sidebar #map_box {
        height: 250px;
    }

    .sidebar #map {
        display: block;
        width: 100%;
        height: 250px;
    }

    .sidebar .verweis_karte {
        font-size: .8em
    }

    .feiertage-ferien {
        display: grid;
        grid-template-columns: minmax(150px, auto) 1fr;
        gap: 10px 50px;
    }

    .feiertage-ferien li {
        display: contents;
    }

    .feiertage-ferien li>span[itemprop="location"] {
        display: none;
    }

    .daten_bis:before {
        content: ""
    }

    .suchergebnisse ul {
        padding-left: 40px
    }

    .suchergebnisse li {
        display: inline-block;
        clear: both;
        width: 560px;
        padding: 0;
        margin-top: 15px;
        border: 1px solid var(--default-border-color);
        background-color: #FFF
    }

    .box,
    .details:not(#filter) {
        display: block
    }

    .kommentar,
    .summary:after {
        border: none
    }

    .suchergebnisse .thumbnail {
        float: left;
        margin-right: 15px;
        border: none
    }

    .suchergebnisse h3 {
        clear: none;
        margin-top: 1em;
        margin-bottom: 0;
        font-size: 18px;
        font-weight: 400
    }

    .summary {
        color: #666
    }

    #veranstaltungen_alt {
        display: none
    }

    #kommentare ul {
        margin: 0;
        padding: 0;
        list-style: none
    }

    .kommentar {
        margin-bottom: 18px;
        padding: 0
    }

    #kommentarformular label input,
    #kommentarformular textarea {
        display: inline;
        float: right;
        width: 312px;
        margin-right: 50px
    }

    #kommentarformular .sicherheitsfrage,
    #kommentarformular label textarea {
        margin-bottom: 1rem
    }

    .galerie {
        clear: both
    }

    .mobile {
        display: none
    }

    .desktop {
        display: block
    }

    #nach_oben {
        right: 50px
    }
}

@media only screen and (min-width:1024px) {

    main {
        grid-template-columns: var(--text-padding-horizontal) 1fr 2rem 300px var(--text-padding-horizontal);
    }

    main>*,
    main>article>* {
        grid-column: 2 / 5;
    }

    main:has(.sidebar)>*,
    article:has(.sidebar)>* {
        grid-column: 2;
    }

    main figure.titelbild,
    main>article>figure.titelbild {
        grid-column: 1 / 6;
    }

    .sidebar {
        grid-column: 4 !important;
        grid-row: 1 / 10;
        margin-top: 2rem;
        align-self: start;
    }

    figure.titelbild~.sidebar,
    article>figure.titelbild~.sidebar {
        grid-row: 2 / 10;
    }

    .bildverweise {
        margin-bottom: 8px
    }

    .facebook_link {
        display: block;
        float: left;
        width: 240px;
        padding: 5px;
        background: #415c98;
        text-align: center
    }

    .facebook_link a {
        color: #fff
    }
}

@media only screen and (min-width:1025px) {

    #hauptmenue {
        right: 50px;
    }

    #header-wrapper {
        padding-top: 30px;
        padding-bottom: 35px;
    }

    main {
        margin-top: 150px;
    }
}