@font-face {
  font-family: 'mangfallpraxis';
  src: url('/css/Roboto-Regular.ttf');
}

@font-face {
  font-family: 'mangfallpraxis-bold';
  src: url('/css/Roboto-Bold.ttf');
}

:root {

  --page-width-content: 800px;
  --page-width-header: 1024px;

  /* Shoelace configuration */
  --sl-color-primary-50: rgb(248 250 250);
  --sl-color-primary-100: rgb(231 237 238);
  --sl-color-primary-200: rgb(214 224 226);
  --sl-color-primary-300: rgb(194 209 212);
  --sl-color-primary-400: rgb(168 190 194);
  --sl-color-primary-500: rgb(135 165 171);
  --sl-color-primary-600: rgb(100 138 146);
  --sl-color-primary-700: rgb(69 115 124);
  --sl-color-primary-800: rgb(44 96 106);
  --sl-color-primary-900: rgb(21 69 78);
  --sl-color-primary-950: rgb(13 43 48);

  --sl-font-sans: mangfallpraxis-bold, sans-serif;

  /* Mangfallpraxis Colors */
  /* Hauptfarbe */
  --color-primary: #19525D;

  /* Seitenhintergrund: Hauptfarbe sehr hell */
  --color-background: #FBFDFD;

  /* Seitentitel: hell */
  --color-background-header: #E0ECEE;

  /* Navigationsleiste: mittelhell */
  --color-background-navigation: #B6D0D5;

  /* Tabellenhintergrund: mittelhell */
  --color-background-table: #B7D0D4;

  /* rot */
  --color-secondary: #972626;
  /* Remove Button in Anfragen.html */
  --color-secondary-90: #972626;
  /* Verschiedene Hervorhebungen + remove Button in Anfragen.html - Hover */
  --color-secondary-80: #C04F4F;
}


/* Head, Body and Footer */
body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: mangfallpraxis, sans-serif;
  line-height: 1.4;
}

.topline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  margin: 16px;
}

.toplinetitle {
  width: fit-content
}

.toplinename {
  font-size: x-large;
  padding-bottom: 8px;
}

.toplinedescription {
  font-size: larger;
}

@media screen and (max-width: 840px) {
  .toplinedescription {
    width: min-content;
  }
}

.toplinelogo {
  height: 4rem;
  align-self: center;
  /* top | right | bottom | left */
  padding: 16px 32px 16px 16px;
  vertical-align: middle;
}

.headerphone {
  padding-top: 6px;
  min-width: fit-content;
  font-size: medium;
  line-height: 1.1em;
  text-align: right;
  align-self: end;
  flex-grow: 1;
  flex-direction: column;
  margin-bottom: 2px;
}

sl-button.main-button::part(base) {
  background-color: var(--color-primary);
}

header,
footer {
  display: flex;
  background-color: var(--color-background-header);
}

header {
  justify-items: center;
}

footer {
  background: var(--color-background-navigation);
  flex-wrap: wrap;
  width: 100%;
}

main {
  flex-grow: 1;
  margin: 5% 10%;
  max-width: var(--page-width-content);
  align-self: center;
  text-align: justify;
}

li {
  text-align: left;
}

@media screen and (max-width: 440px) {
  main {
    flex-grow: 1;
    margin: 2% 2%;
  }
}

.flexbox {
  display: flex;
  flex-wrap: wrap;
}

.flex-column {
  flex-direction: column;
}


.flex-row {
  flex-direction: row;
}

main>h1:first-child,
main>h2:first-child,
main h3:first-child,
main h4:first-child {
  margin-top: 0px;
}


h1,
h2,
h3,
h4 {
  text-align: start;
  color: var(--color-primary);
}


a:link {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: var(--color-primary)
}

table {
  background-color: var(--color-background-table);
}

th,
td {
  background-color: var(--color-background);
  padding: 2px 8px;

}

/* List line height */
ul li {
  line-height: 150%;
}

/* Links im Header / Footer */
.home {
  padding: 8px;
  text-decoration: none !important;
  color: black;
  display: inline-block;
}

.home:hover {
  color: black;
  background-color: var(--color-background);
}


.impresstitle {
  color: var(--color-primary);
  font-weight: bold;
}


/* -------------------------------------------------- */
/*                                                    */
/* Newscard                                           */
/*                                                    */
/* -------------------------------------------------- */

.news {
  width: 100%;
  margin-bottom: 12px;
}

.news [slot='header'] {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news::part(header) {
  background: var(--color-background-header);
}

.news h4 {
  margin: 0;
}

.news date {
  width: max-content;
  white-space: nowrap;
  font-size: small;
  font-weight: normal !important;
  margin-left: 8px;
}


.news>p {
  margin-block-start: 0px;
}

.news>p:last-child {
  margin-block-end: 0px;
}


/* -------------------------------------------------- */
/*                                                    */
/* a hint                                             */
/*                                                    */
/* -------------------------------------------------- */

.ahint {
  display: flex;
  flex-direction: row;
}

.ahint sl-icon {
  align-self: baseline;
  margin-right: 8px;
  padding-top: 2px;
  min-width: 18px;
  height: auto;
}


/* -------------------------------------------------- */
/*                                                    */
/* Infobox                                            */
/*                                                    */
/* -------------------------------------------------- */

.infobox {
  padding: 4px;
  border: solid 1px lightgrey;
  border-left: solid 4px var(--color-secondary-80);
  background-color: white;
  width: inherit;
  margin-bottom: 12px;
}

.infobox-header {
  text-align: start;
  font-weight: bold;
  font-size: large;
  color: var(--color-primary);
  padding: 8px;
}

.infobox-comment {
  padding: 8px;
}

/* remove bottom margin of <p> elements in infobox-comment (chrome, firefox user
   agent css) */
.infobox-comment>p:first-child {
  margin-block-start: 0px;
}

.infobox-comment>p:last-child {
  margin-block-end: 0px;
}


/* -------------------------------------------------- */
/*                                                    */
/* Anfragen.html styling                              */
/*                                                    */
/* -------------------------------------------------- */

.request-section-header {
  margin-bottom: 0px;
}

.request-section-body {
  margin-left: 8px;
  margin-right: 8px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  flex-wrap: wrap;
}

.request-section-invalid {
  padding: 4px;
  border-left: solid transparent 4px;
  background-color: #f0f0f0;
  border-color: var(--color-secondary-80);
}

.display-none {
  display: none
}

/* Checkbox styling */
sl-checkbox::part(base) {
  color: unset;
  font-family: unset;
}

sl-checkbox::part(label) {
  line-height: inherit;
}

sl-checkbox::part(control) {
  margin-top: 2px;
  border-color: var(--sl-color-primary-950);
}

/* "Remove" button on anfragen.html */
sl-button.remove-request::part(base) {
  background-color: var(--color-secondary-90);
  color: white;
}

sl-button.remove-request::part(base):hover {
  background-color: var(--color-secondary-80);
}

.request {
  padding: 4px;
  border-left: solid transparent 4px;
  background-color: #f0f0f0;
  border-color: var(--color-primary);
  width: inherit;
}

.request-header {
  font-weight: bold;
  font-size: large;
  padding: 8px;
}

.request-comment {
  padding: 8px;
}

/* Default for narrow screens: label above input */
.request-value-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

/* Wider screens: label left of input */
@media screen and (min-width: 440px) {
  .request-value-input {
    flex-direction: row;
    align-items: center;
  }

  .request-value-input> :first-child {
    width: 40%;
  }

  .request-value-input> :last-child {
    width: 60%;
  }
}


/* -------------------------------------------------- */
/*                                                    */
/* kontakt.html styling                               */
/*                                                    */
/* -------------------------------------------------- */

@media screen and (min-width: 600px) {
  .contact {
    display: flex;
    gap: 64px;
    justify-items: baseline;
    align-items: initial;
    justify-content: space-between;
  }
}


/* ---------------------------------------------------------------------- */
/*                                                                        */
/* Show scroll to top button if top is no longer visible                  */
/*                                                                        */
/* ---------------------------------------------------------------------- */

#scrollTopButton {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 16px;
  /* Place the button at the bottom of the page */
  right: 30px;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
}

:not(:defined) {
  /* visibility: hidden; */
  display: none;
}
