/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1.25em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ===== SCHRIFTEN */

@font-face {
    font-family: 'Museo300';
    src: url('../fonts/Museo300-Regular-webfont.eot');
    src: url('../fonts/Museo300-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Museo300-Regular-webfont.woff') format('woff'),
         url('../fonts/Museo300-Regular-webfont.ttf') format('truetype'),
         url('../fonts/Museo300-Regular-webfont.svg#Museo300Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo500';
    src: url('../fonts/Museo500-Regular-webfont.eot');
    src: url('../fonts/Museo500-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Museo500-Regular-webfont.woff') format('woff'),
         url('../fonts/Museo500-Regular-webfont.ttf') format('truetype'),
         url('../fonts/Museo500-Regular-webfont.svg#Museo500Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo700';
    src: url('../fonts/Museo700-Regular-webfont.eot');
    src: url('../fonts/Museo700-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Museo700-Regular-webfont.woff') format('woff'),
         url('../fonts/Museo700-Regular-webfont.ttf') format('truetype'),
         url('../fonts/Museo700-Regular-webfont.svg#Museo700Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'Nunito400';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Nunito-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Nunito400Italic';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/Nunito-Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Nunito700';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Nunito-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Nunito700Italic';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/Nunito-BoldItalic.ttf') format('truetype');
}

html, input, textarea, label span { font-family: "Nunito400", sans-serif; }
h1, .sitemap .footer-navigation > ul > li a { font-family: "Museo700", sans-serif; }
h2, .sub-navigation, .infoleiste, .thirdlevel a { font-family: "Museo300", sans-serif; }
strong, nav, a, button, footer p strong { font-family: "Museo500", sans-serif; }
h3, p > strong, td strong, label { font-family: "Nunito700", sans-serif; }
em, i { font-family: "Nunito400Italic", sans-serif; }
em strong, i strong, strong em, strong i { font-family: "Nunito700Italic", sans-serif; }


h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; }
nav { font-size: 1.1rem; }
h3, .footer-navigation a, button, input, textarea, .unterseiten { font-size: 1rem; }
.footer-navigation > ul > ul, .social-media, .privacywire { font-size: 0.9rem; }
.zusatz, .InputfieldError, small { font-size: 0.8rem; }
.zusatzstoffe, .zusatzstoffe small, .kcal, .kcal small { font-size: 0.7rem; }

h1, h2, h3, strong, .speiseplan th p { font-weight: normal; }
p > strong, td strong, .hinweis-mitnahme, .hinweis-geburtstag { font-weight: bold; }

.pflegesatz th:first-of-type, .speiseplan th { text-align: left; }
nav, .galerie figure { text-align: center; }
.infos, .pflegesatz th:nth-of-type(n+2), .pflegesatz td:nth-of-type(n+2) { text-align: right; }
a, footer a:hover { text-decoration: none; }
a:hover, footer a, button:hover { text-decoration: underline; }
h1, h2 { text-wrap: balance; }
.privacywire ul, .kontakt-formular ul { list-style: none; }

/* ===== FARBEN */

.text-home, .text-allgemeines, .text_rot, h1, a, .text-allgemeines + .galerie button, .dateien .background-allgemeines a.text-allgemeines, .speiseplan .speise.mitnahme strong, .hinweis-mitnahme, .back-to-top { color: rgb(182, 56, 32); }
.text-herbstsonne, .text_gelb, .text-herbstsonne + .galerie button, .dateien .background-herbstsonne a.text-herbstsonne { color: rgb(250, 186, 0); }
.text-leistungen, .text_gruen, .text-leistungen + .galerie button, .dateien .background-leistungen a.text-leistungen, .speiseplan .wochentag strong, .page-leistungen .galerie .fa-square { color: rgb(177, 200, 0); }
.text-ueber-uns, .text_violett, .text-ueber-uns + .galerie button, .dateien .background-ueber-uns a.text-ueber-uns, .page-ueber-uns .galerie .fa-square { color: rgb(182, 51, 136); }
.text-informationen, .text_blau, .text-informationen ~ .galerie button, .dateien .background-informationen a.text-informationen, .speiseplan .speise.geburtstag strong, .hinweis-geburtstag { color: rgb(0, 81, 158); }
.text_orange { color: #f26122; }
.text_tuerkis { color: #00a3b3; }
nav.main-navigation a, .background-home a, .social-media a, .background-home a, .background-herbstsonne a, .background-leistungen a, .background-ueber-uns a, .background-informationen a, a .background-herbstsonne, footer, footer a { color: #fff; }
.sub-navigation a, .unterseiten li a { color: #000; }

.page-home a.button, .page-home button, .background-home, .background_rot, .background-allgemeines, .background-news, .MarkupPagerNav .MarkupPagerNavOn a, footer { background-color: rgba(182, 56, 32, 1); color: #fff;  }
	/* nav .background-home:not(.current):hover { background-color: rgba(182, 56, 32, 0.75); } */
		.sub-navigation.background-home, .MarkupPagerNav a, .page-home figcaption, .InputfieldError, .dateien .background-allgemeines { background-color: rgba(182, 56, 32, 0.25); color: #000; }
    .back-to-top { background-color: rgb(235, 206, 200); }
.page-herbstsonne a.button, .page-herbstsonne button, .background-herbstsonne, .background_gelb, .page-herbstsonne th { background-color: rgba(250, 186, 0, 1); color: #fff; }
	/* nav .background-herbstsonne:not(.current):hover { background-color: rgba(250, 186, 0, 0.75); } */
		.sub-navigation.background-herbstsonne, .page-herbstsonne tr:last-of-type, .page-herbstsonne figcaption, .dateien .background-herbstsonne, .background-herbstsonne .unterseiten li { background-color: rgba(250, 186, 0, 0.25); color: #000; }
.page-leistungen a.button, .page-leistungen button, .background-leistungen, .background_gruen, .speiseplan-header { background-color: rgba(177, 200, 0, 1); color: #fff; }
	/* nav .background-leistungen:not(.current):hover { background-color: rgba(177, 200, 0, 0.75); } */
		.sub-navigation.background-leistungen, .page-leistungen figcaption, .success, .dateien .background-leistungen, .background-leistungen .unterseiten li, .veraltet, .speiseplan { background-color: rgba(177, 200, 0, 0.25); color: #000; }
.page-ueber-uns a.button, .page-ueber-uns button, .background-ueber-uns, .background_violett { background-color: rgba(182, 51, 136, 1); color: #fff; }
	/* nav .background-ueber-uns:not(.current):hover { background-color: rgba(182, 51, 136, 0.75); } */
		.sub-navigation.background-ueber-uns, .page-ueber-uns figcaption, .dateien .background-ueber-uns, .background-ueber-uns .unterseiten li { background-color: rgba(182, 51, 136, 0.25); color: #000; }
.page-informationen a.button, .page-informationen button, .background-informationen, .background_blau { background-color: rgba(0, 81, 158, 1); color: #fff; }
	/* nav .background-informationen:not(.current):hover  { background-color: rgba(0, 81, 158, 0.75); } */
		.sub-navigation.background-informationen, .page-informationen figcaption, .dateien .background-informationen, .background-informationen .unterseiten li { background-color: rgba(0, 81, 158, 0.25); color: #000; }
.background_orange { background-color: #f26122; color: #fff; }
.background_tuerkis { background-color: #00a3b3; color: #fff; }
/* footer { background-color: #000; } */
.privacywire-ask-consent, .galerie figure { background-color: #ddd; }
.sitemap { background-color: #eee; }
.unterseiten, nav .thirdlevel, .datei { background-color: #fff; }

.facebook { background-color: #3b5998; }
.instagram { background-color: #ff0069; }

.border-home, .border-allgemeines, .footer-navigation .border-home li, .InputfieldError { border-color: rgb(182, 56, 32); }
.border-herbstsonne, .footer-navigation .border-herbstsonne li { border-color: rgb(250, 186, 0); }
.border-leistungen, .footer-navigation .border-leistungen li, .success { border-color: rgb(177, 200, 0); }
.border-ueber-uns, .footer-navigation .border-ueber-uns li { border-color: rgb(182, 51, 136); }
.border-informationen, .footer-navigation .border-informationen li { border-color: rgb(0, 81, 158); }
.back-to-top { border-color: rgb(255, 255, 255); }

section + section, .sitemap, .downloads { border-top: 1px solid #ccc; }
footer section + section { border-top: 1px solid #333; }
.unterseiten li + li { border-top: 2px solid #fff; }

/* ===== ABSTÄNDE */

body, h1, h2, h3, p, ul, ol, nav ul, figure, .zusatzstoffe { margin: 0; }
nav ul, .sub-navigation ul, .MarkupPagerNav, .privacywire ul, .kontakt-formular ul { padding: 0; }

* + h2, footer .logo + *, * + .responsive-video, a.button, button, .MarkupPagerNav, * + .galerie, .downloads, .kontakt { margin-top: 2rem; }
.responsive-table + a.button { margin-top: 1rem; }
p + *, *:not(h3) + p, h2 + *, * + h3, .privacywire button, .privacywire-page-links, .privacywire ul, h1 + div, .kontakt-formular button, .Inputfield + .Inputfield { margin-top: 0.75rem; }
.logo img + .logo-subline, .telefon + .social-media, .dateien i, .Inputfield p + * { margin-top: 0.25rem; }
h1 + h2, .team h3 + p, .news-box-teaser, .kcal { margin-top: 0; }

h3 { margin-bottom: 0.75rem; }
.faq h3, .jahresplan h3, .speiseplan th h3 { margin-bottom: 0; }

/* ===== ALLGEMEINES */

* { box-sizing: border-box; }

.wrapper {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

section { padding: 4em 0; }
.sitemap { padding: 2em 0; }
.downloads { padding: 2em 0 0; }

.columns {
  column-count: 2;
  column-gap: 3em;
  column-rule: 1px solid #ddd;
}
.columns h3, .columns figure, .columns hr, .columns p:has(img) { column-span: all; }
.columns p:has(img.align_left), .columns p:has(img.align_right) { column-span: none; }

hr { margin: 2rem 0; }

img { max-width: 100%; }

figcaption { 
  padding: 0.5em 1em;
  border-radius: 0 0 0.5em 0.5em;
}

a.button, button, .MarkupPagerNav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.5em;
  cursor: pointer;
}

.responsive-video {
  position: relative;
  padding-bottom: 56%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.responsive-video iframe,
.responsive-video object,
.responsive-video embed,
.responsive-video .privacywire-ask-consent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fa-stack { margin-left: -0.4em; }

.Inputfield:not(.InputfieldSubmit) i, .Inputfield_Sonstiges { 
  display: none;
  visibility: hidden;
}

.back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  
  padding: 0.5rem;
  
  border-width: 1px;
  border-style: solid;
  border-radius: 0.25rem;
}

/* === TABELLEN */

table { 
  width: 100%;
  border-collapse: collapse;
}

.pflegesatz th, .pflegesatz td { padding: 0.5em 0.75em 0.4em; }

.pflegesatz th:first-of-type { border-top-left-radius: 0.5em; }
.pflegesatz th:last-of-type { border-top-right-radius: 0.5em; }

.pflegesatz tr + tr { border-top: 1px dotted #000; }
.pflegesatz tr.solid { border-top: 1px solid #000; }
.pflegesatz tr.double {
  border-top: 1px solid #000;
  border-bottom: 3px double #000;
}

.responsive-table {
  width: 100%;
  overflow-y: auto;
  margin: 0 0 1em;
}

.responsive-table::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
}

.responsive-table::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  border: 0.25rem solid #fff;
  background-color: rgba(0, 0, 0, 0.3);
}

/* ===== HEADER */

.farbbalken { 
	height: 20px;
	width: 100%; 
	clear: left;
}
.farbbalken > div { 
	height: 20px; 
	float: left;
}
.farbbalken .background_blau, .farbbalken .background_violett, .farbbalken .background_tuerkis { width: 7.7%; }
.farbbalken .background_rot { width: 15.3%; }
.farbbalken .background_gelb, .farbbalken .background_gruen { width: 30.8%; }

/* === INFOLEISTE */

.infoleiste {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	
	padding: 2em 0 1em;
}

.logo img { width: 15rem; }

.telefon {
	display: inline-block;
	padding: 0.35em 1em 0.25em;
  border-width: 2px;
  border-style: solid;
  border-radius: 0.5em;
}

.social-media a {
	display: inline-block;
	padding: 0.35em 0.4em 0.25em;
}

/* === SLIDESHOW */



/* === NAVIGATION */

.slide-nav { position: relative; }

nav {
	position: absolute;
	bottom: 0;
	
	width: 100%;
}

nav .hauptseiten {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-column-gap: 0.5em;
}
nav li, .sub-navigation { list-style: none; }
nav .hauptseiten > li {
	border-radius: 1em 1em 0 0;
	transition: border-radius 0.25s;
  position: relative;
}
nav .hauptseiten > li.current, nav .hauptseiten > li:hover { border-radius: 0; }

nav .unterseiten {
  position: absolute;
  width: 100%;
  top: 2.8rem;
  left: 0;
  z-index: 5;

  display: none;
  visibility: hidden;
}

nav .unterseiten li { position: relative; }

nav .hauptseiten li:hover > ul {
  display: block;
  visibility: visible;
}

nav .thirdlevel {
  position: absolute;
  top: -2px;
  left: 100%;
  z-index: 5;

  border: 2px solid #fff;

  display: none;
  visibility: hidden;
}

nav .unterseiten .thirdlevel a { 
  white-space: nowrap;
  padding: 0.35rem 0.75rem 0.3rem;
}

nav .unterseiten > li:hover > ul {
  display: block;
  visibility: visible;
}

nav a { 
	display: block;
	padding: 0.75rem 0.5rem 0.5rem;
}
nav .unterseiten a { padding: 0.35rem 0.5rem 0.3rem; }

.sub-navigation ul { padding: 0.75em 0; }
.sub-navigation li {
  display: inline-block;
  margin-right: 2em;
}

.sub-navigation .thirdlevel { 
  display: inline-block;
  padding: 0;
  margin-left: 0.25em;
}
.sub-navigation .thirdlevel li { margin: 0; }
.sub-navigation .thirdlevel li + li { margin-left: 1em; }

.farbbalken-navigation { height: 0.5em; }

/* === NEWS */

.news {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 1em;
}

.news > div:first-of-type {
	grid-column-start: 1;
	grid-column-end: 4;
}

.news-box-bereich { padding: 0.5em 1em; }

.news-box-content {
  border-width: 0 2px 2px;
	border-style: solid;	
	border-radius: 0 0 1em 1em;

  overflow: hidden;
}

.news-box:first-of-type .news-box-content, .newsarchiv .news-box-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 1em;
}
.news-box:first-of-type .news-box-text, .newsarchiv .news-box-text { grid-column: 1 / span 3; }
.news-box:first-of-type img + .news-box-text, .newsarchiv img + .news-box-text { 
  grid-column: 2 / span 2;
  padding: 1em 1em 1em 0;
}

.news-box-text { padding: 1em; }

.news-box:nth-of-type(n+2) .news-box-teaser { 
	display: -webkit-box;
	-webkit-line-clamp: 4;
  line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-box:first-of-type .news-box-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsarchiv {
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 1em;
}

.MarkupPagerNav li {
  text-decoration: none;
  display: inline-block;
}

/* === JAHRESPLAN TEASER */

.jahresplan-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 1em;
}

.jahresplan-teaser > div {
  border-width: 2px;
  border-style: solid;
  border-radius: 0 0 1em 1em;
}

.jahresplan-teaser > div > div { padding: 0.5rem 1rem; }

/* === SITEMAP */

.uebersicht {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 1em;
}

.uebersicht-box {
	border-width: 2px;
	border-style: solid;
	border-radius: 0 0 1em 1em;
}

.uebersicht-box-bereich { padding: 0.5em 1em; }
.uebersicht-box-text { padding: 1em; }

.uebersicht-box ul { padding-left: 0; }
.uebersicht-box li { 
	display: inline-block;
	list-style: none;
  margin-right: 1em;
}

/* ===== ÜBER UNS */

/* === TEAM */

.team {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 2em 1em;
}

/* === GESCHICHTE/JAHRESPLAN */

.eintrag {
  display: flex;
  width: 100%; 
  column-gap: 2.5%;
}

.eintrag { 
  padding: 2em 0;
  border-left-style: solid;
  border-left-width: 0.25em;
}
.jahresplan .eintrag { padding: 1em 0; }

.jahr { flex-basis: 10%; }
.jahr-inhalt { 
  flex-basis: 87.5%;
  overflow: hidden;
}

.jahr h2, .jahr h3 {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;  
}
.jahr-inhalt h3 { margin-top: 0.5rem; }

/* ===== SPEISEPLAN */

.speiseplan {
  /* display: grid; */
  background-image: url("../images/herbstsonne-essens_muster.png");
  overflow: hidden;
  border-radius: 0 0 0.5em 0.5em;
}
.speiseplan thead, .speiseplan tbody { padding: 0.5rem; }
.speiseplan tr {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 2.5fr 2.5fr 1.25fr 1.25fr;
  grid-template-areas: "wochentag suppe menue1 menue2 dessert1 dessert2";
  hyphens: auto; 
}
.speiseplan tr + tr { border-top: 0; }
.speiseplan td {
  padding: 1em 0.75em;
  background-color: rgba(255, 255, 255, 1);
}
/*
.speiseplan .wochentag, .speiseplan .suppe, .speiseplan .dessert1, .speiseplan .dessert2 { width: 12.5% }
.speiseplan .menue1, .speiseplan .menue2 { width: 25%; }
*/
.speiseplan .wochentag, .speiseplan .suppe, .speiseplan .dessert1, .speiseplan .dessert2 { min-width: 125px; }
.speiseplan .menue1, .speiseplan .menue2 { min-width: 250px; }
.speiseplan .suppe { grid-area: suppe; }
.speiseplan .menue1 { grid-area: menue1; }
.speiseplan .menue2 { grid-area: menue2; }
.speiseplan .dessert1 { grid-area: dessert1; }
.speiseplan .dessert2 { grid-area: dessert2; }

.speiseplan-header th { padding: 0.5em 0.75em 0.4em; }
.speiseplan-tag { padding: 0.5em 0.5em 0.5em; }
.speiseplan-tag + .speiseplan-tag { padding-top: 0; }

.zusatzstoffe, .kcal { 
  display: inline-block;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
}
.zusatzstoffe li {
  display: inline-block;
  list-style: none; 
}
.zusatzstoffe li::after { content: ", "; }
.zusatzstoffe li:last-of-type::after { content: none; }

.zusatzstoffe-und-allergene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 1rem;
}

/* ===== INFORMATIONEN */

/* === KONTAKT */

.kontakt {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 2em;
}

input:not([type="checkbox"]), textarea, .InputfieldError { 
  width: 100%;
  padding: 0.25em 0.5em;

  border-width: 1px;
  border-style: solid;
  border-radius: 0.25em;
}

input:is([type="checkbox"]) { margin-right: 0.5em; }

.success {
  padding: 1em;
  border-width: 1px;
  border-style: solid;
  border-radius: 0.5em;
}

/* === DATEIEN */

.dateien {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 1em;
}

.dateien > div {
  padding: 0.5em;
  border-radius: 0.5em;
}

.datei {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
}

/* === FAQ */

article + article { margin-top: 1em; }

.klappbox-button { 
	padding: 0.5em 1em;
	transition: border-radius 0.25s;
	
	display: grid;
	grid-template-columns: auto 1em;
	align-items: center;
	
	cursor: pointer;
}

.klappbox-content {
	display: none;
	padding: 1em;
	border-width: 2px;
	border-style: solid;
	border-radius: 0 0 0.5em 0.5em;
}

/* ===== FOOTER */

.footer-infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1em;
  align-items: center;
}

.footer-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-gap: 1em;
}

.footer-navigation ul { padding: 0; }
.footer-navigation ul ul ul { padding-left: 1em; }
.footer-navigation li { list-style: none; }

.footer-navigation > ul > li {
	padding-bottom: 0.25em;
	border-bottom-width: 2px;
	border-bottom-style: solid;
	margin-bottom: 0.5em;
}

/* === COOKIEBANNER */

.privacywire-ask-consent { padding: 2em; }
.privacywire-page-links a + a { margin-left: 0.5em; }
.privacywire input { margin-right: 0.5em; }

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1100px) {

  .main-navigation .wrapper, .sub-navigation .wrapper { 
    width: 100%; 
    padding: 0 0.5em;
  }

  .news, .dateien { grid-template-columns: 1fr 1fr; }
  .news > div:first-of-type { 
    grid-column-start: auto;
    grid-column-end: auto;
  }
  .news-box:first-of-type .news-box-content { display: block; }
  .news-box:first-of-type img + .news-box-text { padding: 1em; }

  .footer-navigation { grid-template-columns: 1fr 1fr 1fr; }

}

@media only screen and (max-width: 1000px) {

  nav { font-size: 1em; }
  nav .unterseiten li { font-size: 0.9em; }

  .team { grid-template-columns: 1fr 1fr 1fr; }

  nav .unterseiten { top: 2.6rem; }

}

@media only screen and (max-width: 900px) {

  .newsarchiv .news-box-content { grid-template-columns: 1fr 1fr; }

}

@media only screen and (max-width: 800px) {

  .columns { column-count: auto; }

  .footer-navigation { grid-template-columns: 1fr 1fr; }
  .jahresplan-teaser, .news, .dateien, .uebersicht, .kontakt, .footer-infos { grid-template-columns: 1fr; }

  .eintrag { 
    flex-wrap: wrap;
    flex-direction: column;
    grid-row-gap: 2em;
  }
  .jahr-inhalt { padding-left: 1rem; }

}

@media only screen and (max-width: 725px) {

  nav .hauptseiten { grid-template-columns: 1fr 1fr 1fr 1fr; }
  nav .hauptseiten > li:first-of-type { 
    display: none;
    visibility: hidden;
  }

}

@media only screen and (max-width: 700px) {

  .infos { font-size: 0.9em; }

  .infoleiste { 
    grid-template-columns: 1fr;
    grid-row-gap: 1em;
  }
  .infos {
    display: flex;
    gap: 0.5em;
    text-align: left;
  }

  .team { grid-template-columns: 1fr 1fr; }

  .newsarchiv .news-box-content { display: block; }
  .newsarchiv img + .news-box-text { padding: 1em; }

}

@media only screen and (max-width: 600px) {

  .main-navigation .wrapper { padding: 0; }

  nav { position: relative; }
  nav .hauptseiten { 
    grid-template-columns: 1fr 1fr;
    grid-gap: 0;
  }
  nav .hauptseiten > li { border-radius: 0; }
  nav .hauptseiten li:hover .unterseiten { 
    display: none;
    visibility: hidden;
  }

  .privacywire-ask-consent { font-size: 0.9em; }
  button { margin-top: 1rem; }

  .privacywire-ask-consent { padding: 1em; }

  section { padding: 2em 0; }

}

@media only screen and (max-width: 500px) {

  html { font-size: 1.125em; }

  .privacywire-ask-consent, table { font-size: 0.9em; }

  .footer-navigation { grid-template-columns: 1fr; }

  .sub-navigation li { margin-right: 1em; }

}

@media only screen and (max-width: 400px) {

  /* html { font-size: 1em; } */

  .team { grid-template-columns: 1fr; }

}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

