/* Stylesheet für Selfhtml Design 01
  responsives Layout mit Flexbox ab Z. 247 */

/* ====================================================  GLOBAL DEFINITION  ==================================================== */

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

/* Farbfestlegungen nur als Fallback für IE9-11
   custom properties für alle anderen!            */
body {
  max-width: 65em;
  margin: 0 auto;
  padding: 0 0;
  font: normal 1em Arial, sans-serif;
  color: #0000FF; /* wird als currentColor für die Akzentfarbe verwendet. */
        color: var(--accent1-color);
  background-color: #ffffff;
        background-color: var(--background-color);
}

header  {

  background-color: #7fff00;
  background-repeat: no-repeat;
  background-position: center;
  color: #0000FF; /* wird als currentColor für die Akzentfarbe verwendet. */
        color: var(--accent1-color);
  background-color: #ffffff;
  background-color: var(--background-color);
}

p, ol, ul, dl {
        color: #333;
  color: var(--font-color);
}

:root {
  --background-color: #7fff00;
  --background2-color: #7fff00;
  --background3-color: #ccc;
  --accent1-color: #0000FF;
  --accent2-color: orange;
  --accent3-color: #fede9e;
        --font-color: #333;
  --font2-color: #666;
        --link-color: #0000FF;

}

:root.dark {
  --background-color: #666;
  --background2-color: #666;
  --background3-color: #ccc;
  --accent1-color: #0000FF;
  --accent2-color: orange;
  --accent3-color: #fede9e;
  --font-color: #000;
  --font2-color: orange;
        --link-color: orange;

}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0,3rem;
    margin-top: 0,2px;
}

/* ====================================================  HEADER  ==================================================== */

header {
  position: relative;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  color: #0000FF; /* wird als currentColor für die Akzentfarbe verwendet. */
        color: var(--accent1-color);
  background-color: #ffffff;
  background-color: var(--background-color);
}

header p {
  font-variant: small-caps;
  font-size: 2em;
}

header span {
  font-weight: bold;
}

.akzentfarbe1 {
  color:orange;
        color: var(--accent2-color);
}

.akzentfarbe2 {
  color: darkred;
        color: var(--accent1-color);
}

.toggle {
    position: absolute;
    top: 1em;
    right: 1em;
}

/* ====================================================  CONTENT  ==================================================== */

.container {
  display: flex;
  background-color: DodgerBlue;
}

.container div {
  background-color: #f1f1f1;
  margin: 5px;
  padding: 5px;
  font-size: 30px;
}


h1 {
  background-color: #00FFFF;  /*firebrick*/
  color: var(--font2-color);
  padding: 0.5em;
  font-family: sans-serif;
  border-radius: 0 1em 1em 1em;
  text-align: center;
}

h3 {
  text-align: left;
  font-family: sans-serif;
  font-variant: small-caps;
  font-size: 1em;
  font-weight: bold;
}

h4 {
  text-align: center;
  font-family: sans-serif;
  font-variant: small-caps;
  font-size: 2em;
  font-weight: bold;
}

h5 {
  background-color: GreenYellow;  /*firebrick*/
  color: var(--font2-color);
  padding: 1.5em;
  font-family: sans-serif;
  border-radius: 0 1em 1em 1em;
  text-align: center;
  font-variant: small-caps;
  font-size: 2em;
  font-weight: bold;
}

div {
  display: flex;
  margin: 10px;
  padding: 10px;
}
a {
  color: currentColor;
  color: var(--link-color);
  text-decoration: none;
}
a:hover, a:focus {
  font-weight: bold;
  background-color: var(--accent3-color);
}

a.more {
  float: right;
}
a.more::before {
  content: "►";
  margin-right: .5em;
  display:inline-block;
        text-decoration: none;
}

a.more:hover, a.more:focus {
  color: var(--accent1-color);
}

h2.img {
  padding-left: 2.5em;
}
img {
    max-width: 100%;
    height: auto;
}
.img.about {
  background: url('../css/icons/about.svg') left no-repeat;
  background-size: 2.5em;
}
.img.cash {
  background: url('../css/icons/cash.svg') left no-repeat;
  background-size: 1.25em;
}
.img.group {
  background: url('../css/icons/about.svg') left no-repeat;
  background-size: 2.5em;
}

img, a img {
  border: 0 none;
}

.dark img {
    filter: brightness(.8) contrast(1.2);
  }

.grid {
        max-width: 65em;
  display: grid;
        grid-template-columns: 47fr 53fr;
        gap: 1em;
}

.grid img {width: 100%;}

.landscape {width: 100%;}

article {
    display: block;
}

article > h2 {
  clear: both;
}
article > h2 + p > img {
        width: 33%;
  float: left;
  margin: .15em 1.5em 1.5em 0;
}
article > h2:nth-of-type(odd) + p > img {
  float: right;
  margin: .15em 0 1.5em 1.5em;
}

dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 1em 2em;
  margin-bottom: 3em;
}
dl > * {
  margin: 0;
  padding: 0;
}
dt {
  font-weight: bold;
}
dt::after {
  content: ":";
}

.news {
  background: no-repeat top .5em right .5em var(--background3-color);
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  padding: 1em;
}

.news h3 {
  color: var(--font-color);
}

.news.consultation {
  background-image: url('../css/icons/phone.svg');
}
.news.info {
  background-image: url('../css/icons/letter.svg');
}

aside ul,
.news ul {
  margin: 2em 0;
  padding: 0;
  color: var(--font-color);
  list-style-position: inside;
}

aside ul ::marker,
.news ul ::marker {
  color: var(--accent2-color);
  content: "►  ";
  font-size: 1.5em;
}

aside li,
.news li {
  padding: .5em 0;
}
.news li span {
  background: var(--accent2-color);
  border-radius: 0.5em;
    padding: 0.2em 0.7em;
}
aside ul {
  color: #333;
}

aside {

    width:100%;
    float: left;

}

.bild1 {
  float:left;
  width:33%;
  height:33%;
  border:1px ;
  padding: 1px;
}

.bild2 {
  float: none;
  width:33%;
  height:33%;
  border:2px ;
  padding: 1px;
}

.bild3 {
  float:right;
  width:33%;
  height:33%;
  border:1px;
  padding: 1px;
}

.dark .news h2,
.dark .news h3,
.dark .news ul {
    color: var(--background-color);
}

.dark .news a {
    color: var(--accent1-color);
}

/* ====================================================  NAV  ==================================================== */

nav ul {
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background-color: blue;
  color: white;
  text-decoration: none;
  display: inline-block;
  width: 95%;
  margin: .5em 0;
  padding: .5em 1em;
  border-radius: .5em;
}

nav a[aria-current="page"]{
 color: orange;
 font-weight: bold;
}

nav a:hover,
nav a:focus {
  background-color: var(--accent3-color);
  color: currentColor;
}

.dark nav a:hover,
.dark nav a:focus {
  color: #333;
}



nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */
footer {
  background-color: var(--accent1-color);
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  margin: 2em 0;
  padding: 0.5em 1em;
  display: flex;
}

footer ul,
footer p,
footer h4 {
  flex: 1 1 100%;
          color: var(--background3-color);
}

footer ul {
  padding-left: 0;
  margin-left: 0;
}

footer li  {
  list-style-type: none;
  display: inline-block;
  border-left: .2em solid #ccc;
}
footer li:first-child  {
  border-left-color: transparent;
}
footer a {
  color: var(--accent3-color);
}
footer a:hover, footer a:focus {
  color: var(--accent1-color);
}
footer li a {
  padding: 0 .5em 0 .7em;
}
footer p {
  margin-top: 0;
  padding-top: 0;
  text-align: right;
}

footer h4 {
  flood-color: #FF0000;
}

/* ====================================================  LAYOUT  ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten*/
main  {

  padding: 0;
  margin: 0;
}

/* Navigationselemente werden untereinander angezeigt */
nav ul {
  display: flex;
  flex-direction: column;
}

/* 2-Spaltenlayout mit breiterem aside 400*/
@media screen and (min-width: 25em) {
  header {
    height: 20em;
  }

}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 45em) {
  header {
    background: var(--background2-color) url('') no-repeat 80% bottom;
    background-size: contain;
  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: #0000FF;
  }

  nav li {
    margin: 0;
    flex: 1 1 0%;
  }

  /* Main wird zum Flex-Container */
  main {
    display: flex;
    flex-flow: row wrap;
  }

  main > * {
    flex: 1 100%;  /* Alle Kindelemente werden über die volle Breite dargestellt */
  }

  section {
    flex: 1 48%;  /* Diese Elemente erhalten eine halbe Breite */
    margin: 1%;
  }


}

@media screen and (max-width: 600px) {
  header {
    background: var(--background2-color) url('') no-repeat 40% bottom;
    background-size: contain;
  }
}



/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 58em) {
  section, aside {
    flex: 1 31%;  /* Diese Elemente erhalten eine Breite von 1/3.  */
    margin: 1%;
  }

  article {
    flex: 0 0 100%;
    margin: 0;
  }

/* article p, */
  article li,
  article blockquote {
    max-width: 40em;
  }

  #about {
    flex: 1 30%;
    margin: 1%;
    background-color: #eee;
    border: 1px solid darkred;
    padding: 1em;
    height: 23em;
  }

  #impressum {
    flex: 1 60%;
    margin: 1%;
}

  aside p {
    margin-bottom: 3em;
  }
  aside p:last-child {
    margin-bottom: 1.2em;
  }

}
  aside {
    width: 31%;
  }
/* toggle-button für Dark Mode */
.toggle label {
        position: relative;
        display: inline-block;
        width: 7.5em;
        height: 3.5em;
        color: transparent;
}

.toggle label:before,
.toggle label:after {
        /* Mond-Icon */
        position: absolute;
        content:'';
        background: skyblue url('../css/icons/moon.svg');
  background-size: 2em 2em;
  background-repeat: no-repeat;
  height: 2em;
  width: 2em;
        border-radius: 50%;
}
.toggle label:before {
  background-image: url('../css/icons/moon.svg');
        left: 0;
        top: 0;
}

.toggle label:after {
  background-image: url('../css/icons/sun.svg');
        right: -.5em;
        top: 0;
}
.toggle input {
        display: none;
}

.toggle .slider {
        /* Grundfläche */
        position: absolute;
        cursor: pointer;
        top: .5em;
        right: 2em;
        width: 3em;
        height: 1em;
        background-color: var(--accent3-color); /* dunkel */
        transition: all .3s ease-in-out;
        border-radius: 1em;
}

.toggle .slider:before {
        /* verschiebbarer Button */
        position: absolute;
        content:'';
    background: var(--accent2-color);
    background-size: 1em 1em;
    background-repeat: no-repeat;
    height: 1.5em;
    width: 1.5em;
        left: -0.25em;
        bottom: -0.25em;
        border-radius: 50%;
        transition: all .3s ease-in-out;
}

.toggle input:checked + .slider {
        background-color: #666;        /* hell */
}

.toggle input:focus + .slider {
        background-color: pink;
        box-shadow: 0 0 1px #5a9900;
}

.toggle input:checked + .slider:before {
        transform: translateX(1.9em);
}

.text .slider:after {
        /* Text vor dem FlipFlop-Schalter */
        position: absolute;
        content: "dunkel";
        color: transparent;
        font-weight: bold;
        height: 1.6em;
        left: -3.5em;
        bottom: 0.2em;
}

.text input:checked + .slider:after {
        /* Text hinter dem FlipFlop-Schalter */
        position: absolute;
        content: "hell";
        color: transparent;
        left: 4.5em;
}
/*verkleinerte Webseite */
iframe.verkleinert{
    height: 480px;
    width: 640px;
    display: block;
    overflow: hidden;
    position: absolute;
    transform: scale(0.5);
    transform-origin: left top 0;
}

/*FORM*/
form {
        width: 35em;
        padding-top: 3em;
        position: relative;
}

input {
        margin: 0 0 1em 31%;
        padding: .2em .5em;
        width: 60%;
        background-color: #fffbf0;
        border: 1px solid #e7c157;
}

label {
        text-align: right;
        line-height: 1.5;
        width: 30%;
        position: absolute;
        left: 0;
}

label::after {
        content: ": ";
}

button {
        margin-left: 31%;
}

input:required + label::before {
        position: absolute;
        left: 300%;
        content: "&#10032;"; /* &#9733;\2731*/
        color: red;
}

input:required:valid + label::before {
        content: "\2714";
        color: green;
}

/*+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#*/

header a, h1 a, h2 a, h3 a {
    text-decoration: none;
    color: #000000;
}

.w3-white {
    color: #000!important;
    background-color: #fff!important;
    margin: 1em;
    padding: 1em;
}

.w3-card-12 {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19)!important;
}

.siteContainer {
    background: no-repeat top 0.5em right 0.5em var(--background3-color);
    box-shadow: -0.3em 0.6em 0.6em 0 rgb(0 0 0 / 75%);
    padding: 1em;
    min-width: 60%;
}

/*+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+button#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#*/

/* From Uiverse.io by cssbuttons-io */
button {
  font-size: 17px;
  font-family: inherit;
  font-weight: 700;
  padding: 4px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  color: black;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
  background: linear-gradient(
    0deg,
    rgba(255, 213, 0, 1) 0%,
    rgba(255, 213, 0, 1) 47%,
    rgba(0, 91, 187, 1) 47%,
    rgba(0, 91, 187, 1) 100%
  );
  transition: all 0.1s ease-in-out;
}

button:active {
  transform: translateY(3px);
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 14px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

button .button-content {
  display: flex;
  align-items: center;
  background: white;
  padding: 0.7em 1.5em;
  padding-left: 1.2em;
  border-radius: 16px;
}

button svg {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  color: #ff0000;
  transition: transform 0.3s;
}

button:hover svg {
  transform: scale(1.2);
}