header,
footer,
nav,
section,
aside,
main,
article,
figure,
figcaption {
  display: block;
}
body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
code,
ol,
ul,
li,
dl,
dt,
dd,
figure,
table,
th,
td,
form,
fieldset,
legend,
input,
textarea {
  margin: 0;
  padding: 0;
}
table {
  border-spacing: 0;
  border-collapse: collapse;
}
caption,
th,
td {
  text-align: left;
  text-align: start;
  vertical-align: top;
}
abbr,
acronym {
  font-variant: normal;
  border-bottom: 1px dotted #666;
  cursor: help;
}
blockquote,
q {
  quotes: none;
}
fieldset,
img,
iframe {
  border: 0;
}
ul {
  list-style-type: none;
}
sup {
  vertical-align: text-top;
}
sub {
  vertical-align: text-bottom;
}
del {
  text-decoration: line-through;
}
ins {
  text-decoration: none;
}
body {
  font: 12px/1 "Lucida
Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  color: #000;
}
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: 99%;
  font-weight: inherit;
}
pre,
code {
  font-family: Monaco, monospace;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: 400;
}
h1 {
  font-size: 1.8333em;
}
h2 {
  font-size: 1.6667em;
}
h3 {
  font-size: 1.5em;
}
h4 {
  font-size: 1.3333em;
}
table {
  font-size: inherit;
}
caption,
th {
  font-weight: 700;
}
a {
  color: #00f;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1em;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
pre,
blockquote,
table,
ol,
ul,
form {
  margin-bottom: 12px;
}

/* LAYOUT MIT SPALTEN */

/* Wrapper */
#wrapper {
  display: grid;
  min-height: 100vh;
  @supports (min-height: 100dvh) {
    min-height: 100dvh;
  }
  grid-template-rows: min-content 1fr min-content;
  grid-template-areas:
    "header"
    "container"
    "footer";
}

/* Header */
header {
  grid-area: header;
  background: var(--bg-header);
  color: var(--clr-header);
  padding-block: 2rem;
}
header .inside {
  display: grid;
  grid-template-columns: minmax(0.5rem, 1fr) minmax(0, 1200px) minmax(
      0.5rem,
      1fr
    );
  column-gap: 1rem;
}
header .logo {
  grid-column: 2 / span 3;
}
header .nav-wrapper {
  grid-column: 5 / span 9;
  justify-self: end;
}

/* Container */
#container {
  grid-area: container;
}

/* Footer */
footer {
  grid-area: footer;
  background: var(--bg-footer);
  color: var(--clr-footer);
  padding-block: 2rem;
}
footer .inside {
  display: grid;
  grid-template-columns: minmax(0.5rem, 1fr) repeat(12, minmax(0, 5rem)) minmax(
      0.5rem,
      1fr
    );
  column-gap: 1rem;
}
footer .copyright {
  grid-column: 2 / -2;
}

/* Main */
@layer main {
  main .inside {
    display: grid;
    grid-template-columns: minmax(0.5rem, 1fr) repeat(12, minmax(0, 5rem)) minmax(
        0.5rem,
        1fr
      );
    column-gap: 1rem;
  }
  main .inside .mod_article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
  }
  main .inside .mod_article * {
    grid-column: 2 / -2;
  }
}

/* Artikel */
.mod_article {
  &.bg {
    padding-block: 1rem;
    color: var(--inverse);
    background-color: var(--secondary);
  }
}

/* Hilfsklasse für volle Breite */
.fullwidth {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  & > * {
    grid-column: 2 / -2;
  }
}

/* Hilfsklassen Hintergrundfarbe */
.bg {
  padding-block: 2rem;
}
.bg--primary {
  background: var(--primary);
  color: var(--inverse);
}
.bg--secondary {
  background: var(--secondary);
  color: var(--inverse);
}
.bg--light {
  background: var(--neutral-light);
  color: var(--clr);
}
.bg--dark {
  background: var(--neutral-dark);
  color: var(--inverse);
}

/* Inhaltselement Text */
.media {
  row-gap: 1rem;
}
.media--above,
.media--below {
  & figure {
    /* Medium */
    @media only screen and (min-width: 48em) {
      grid-column: 2 / span 5;
    }
  }
}
.media--left {
  & figure {
    /* Medium */
    @media only screen and (min-width: 48em) {
      grid-column: 2 / span 5;
    }
  }
  & .rte {
    /* Medium */
    @media only screen and (min-width: 48em) {
      grid-column: 7/ -2;
    }
  }
}
.media--right {
  & figure {
    /* Medium */
    @media only screen and (min-width: 48em) {
      grid-column: 9 / -2;
      order: 3;
    }
  }
  & .rte {
    /* Medium */
    @media only screen and (min-width: 48em) {
      grid-column: 2 / span 7;
    }
  }
}

/* Inhaltselement Galerie */
.content-gallery {
  /* hier: "automatische" Galerie basierend auf Mindestbreite der Bilder */
  & ul {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.content-gallery--cols-5 {
  /* Beispiel für 5-spaltige Galerie */
  & ul {
    /* Small */
    @media only screen and (min-width: 37.5em) {
      grid-template-columns: repeat(2, 1fr);
    }
    /* Medium */
    @media only screen and (min-width: 48em) {
      grid-template-columns: repeat(3, 1fr);
    }
    /* Large */
    @media only screen and (min-width: 64em) {
      grid-template-columns: repeat(5, 1fr);
    }
  }
}

/* Textboxen */
/* Textelemente als Boxen mit Bild oben */
.content-text--box {
  container-type: inline-size;
  display: flex;
  flex-flow: column;
  gap: 1rem;
  &.bg {
    padding-block: 0 1rem;
  }
  & h1,
  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    padding-inline: 1rem;
    margin: 0;
  }
  & figure {
    width: 100%;
    margin: 0;
    order: -1; /* Bild immer oben */
  }
  & .rte {
    padding-inline: 1rem;
  }
}

/* Boxen in der Elementgruppe */
.content-element-group--box {
  display: grid;
  gap: 1rem;
  /* Medium */
  @media only screen and (min-width: 48em) {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Large */
  @media only screen and (min-width: 64em) {
    grid-template-columns: repeat(4, 1fr);
  }
}

html {
  overflow-y: scroll;
  height: 100%;
  font-size: 16px;
  line-height: 24px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  border-top: 4px solid #9f111b;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.5;
  color: #292c37;
}

/* Anpassen Boxmodel */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

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

/* Headlines */
h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1 {
  font-size: 2.375em;
  line-height: 1.26315789em;
  margin-top: 0.63157895em;
  margin-bottom: 1.2631579em;
  color: #9f111b;
}

h2 {
  font-size: 1.75em;
  line-height: 1.71428571em;
  margin-top: 0.85714286em;
  margin-bottom: 0.85714286em;
}
h3 {
  font-size: 1.3125em;
  line-height: 1.14285714em;
  margin-top: 1.14285714em;
  margin-bottom: 0em;
}
h4,
h5,
h6 {
  font-size: 1em;
  line-height: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 0em;
}

/* sonstige Abstände und Elemente */
p,
ul,
ol,
pre,
table,
blockquote {
  margin-top: 0em;
  margin-bottom: 1.5em;
}
ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0em;
  margin-bottom: 0em;
}

ul {
  list-style: square;
}

ol {
  list-style: decimal;
}

li {
  margin-left: 2em;
}

/* Links */
a,
a:visited {
  color: #9f111b;
  text-decoration: underline;
}

a:hover,
a:focus,
a:active {
  color: #710c13;
  outline: 0;
}

a:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

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

/* Navigation */
.mod_navigation ul {
  margin: 0;
  padding: 0;
}

.mod_navigation li {
  list-style: none;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.mod_navigation a,
.mod_navigation strong {
  display: block;
  text-decoration: none;
  color: #292c37;
  margin: 0 1em;
  line-height: 1.5;
}

.mod_navigation li:last-child,
.mod_navigation li:last-child.active {
  margin-right: 0;
}

.mod_navigation a:hover,
.mod_navigation a:focus {
  color: #9f111b;
}

.mod_navigation strong.active,
.mod_navigation .trail {
  color: #9f111b;
}

