:root {

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

  /* Shoelace configuration */
  --sl-color-primary-50: rgb(248 250 251);
  --sl-color-primary-100: rgb(232 237 242);
  --sl-color-primary-200: rgb(215 223 233);
  --sl-color-primary-300: rgb(195 208 222);
  --sl-color-primary-400: rgb(170 188 208);
  --sl-color-primary-500: rgb(138 162 190);
  --sl-color-primary-600: rgb(103 135 171);
  --sl-color-primary-700: rgb(72 111 154);
  --sl-color-primary-800: rgb(48 91 140);
  --sl-color-primary-900: rgb(12 63 121);
  --sl-color-primary-950: rgb(1 38 80);

  /* Mangfallpraxis Colors */
  /* Dunkelblau */
  --color-primary: #023773;
  --color-primary: hsl(211.86, 96.58%, 22.94%);
  /* sehr hell */
  --color-background: #fefdff;
  /* hell */
  --color-background-header: #f0f2fb;
  /* mittelhell */
  --color-background-table: #d4dff1;
  /* mittelhell */
  --color-background-navigation: #d4dff1;
  /* logo rot */
  --color-secondary: #e30613;
  /* logo rot */
  --color-secondary-90: #e8303b;
  /* logo rot */
  --color-secondary-80: #ed5a63;
  /* logo rot */
  --color-secondary-50: #F5B1B4;
  /* logo hellblau */
  --color-tertiary: #a1daf8;
}




/* Head, Body and Footer */
body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 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;
}

.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.black-text::part(base) {
  color: black;
}

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

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

header {
  padding: 16x;
  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;
}


/* Finde mich */
.hint {
  text-decoration: none;
  padding: 8px;
}

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


/* -------------------------------------------------- */
/*                                                    */
/* 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;
  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;
}
