
:root {
  --black: #0f0f0f;
  --gray: #3f3f3f;
  --green: #0a5a5a;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.375em; /* 22px */
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* 10. Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}
/* 11. Layout and atmosphere */

body {
  display: grid;
  gap: 0.5em;
  /*background: url(./img/PA252311.JPG);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;*/
  background-color: rgba(166, 185, 177, 0.75);
  font-family: 'Titillium Web', Verdana, Arial, Helvetica, sans-serif;
  color: var(--black);
  font-size: 30;
  overflow: auto;
/*  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  -khtml-hyphens: auto;
  hyphens: auto;*/
}

header {
  max-width: 45em;
  width: 100%;
  margin: 0 auto;
  display: inline-block;
  height: 120px;
  padding: 1em 2em;
}

main, aside, footer {
  max-width: 78em;
  width: 100%;
  padding: 0.6em 2em;
  background-color: rgba(250, 245, 219, 0.6);
  color: var(--black);
  float: left;
}

aside {
  background-color: rgba(250, 245, 219, 0.3);
}

aside img {
  margin: 0 auto;
}

footer {
  background-color: rgba(166, 185, 177, 0.75);
  margin-bottom: 2em;
}

.flex-container {
	display: flex;
	margin-bottom: 0.5em;
	justify-content: left;
}

/* Textauszeichnungen */

h1, h2, h3 {
  font-weight: 700;
}

h1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	visibility: visible;        
	font-size: 1.45em; /* 24px */
  line-height: 1.125em; /* 18px */
	text-align: right;
	color: var(--black);
}

h2 {
	font-family: 'Titillium Web', Verdana, Arial, Helvetica, sans-serif;
  font-size: 2.1875em; /* 35px */
  line-height: 1.125em; /* 18px */
  margin-top: 0.4em;
  margin-bottom: 0.4em;
  color: var(--green);
}

h3 {
	font-family: 'Titillium Web', Verdana, Arial, Helvetica, sans-serif;
  font-size: 1.45em; /* 24px */
  line-height: 1.125em; /* 18px */
  margin-top: 0.6em;
  margin-bottom: 0.4em;
  color: var(--green);
}

p.teasertext {
    font-family: 'Titillium Web', Verdana, Arial, Helvetica, sans-serif;
    font-size: 1.188em; /* 19px */
    line-height: 1.375em; /* 22px */
    margin-bottom: 0.5em;
    color: var(--black);
}

ul, ol {
    padding: 0;
    margin: 0.5em 0 0.8em 1em;
}

li {
    margin-left: 1em;
}

a:link {
    color: red;
    text-decoration: none;
}

a:visited {
    color: #78AD30;
    text-decoration: none;
}
a:hover, a:active {
    color: #b75bc7;
    text-decoration: none;
}

.btn a {
  float: right;
  border-radius: 200px;
  color: white;
  background: var(--green);
  padding: 5px 16px;
  margin-top: 1.2em;
  margin-bottom: 0.8em;
}

.highlight {
   color: #FF6600;
   font-weight: bold;
}

.active {
   color: yellowgreen;
}

/* ----------------------------------------------------------------------------- *
 *                          Styles für Desktops 1024px / 16px/em = 64em          *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 64em) {

  .wrapper {
    display: grid;
    gap: 0.5em;
		grid-template-columns: 1fr [main-start] minmax(20em, 3fr) [main-end] minmax(16em, 1fr) [aside-end] 1fr;
		grid-template-rows: [main-start] 1fr [foot-end] min-content [foot-end]; 
  }

  .flex-container {
	  display: flex;
	  margin-bottom: 0.5em;
    margin-top: 1em;
	  justify-content: right;
  }
  
	main {
 		grid-column: main-start / main-end;
		grid-row: main-start / main-end;
    float: left;
    margin-bottom: 0.5em;
    padding: 0 1em 1.2em 1.2em;
    border-radius: 1em;
  }

  aside, footer {
 		grid-column: main-end / aside-end;
    float: left;
    background-color: rgba(250, 245, 219, 0.6);
    padding: 0 1em 1.2em 1.2em;
    border-radius: 1em;
  }

  footer {
    text-align: right;
    margin-bottom: 0;
  }
}

/* Images */

img.form {
	float: left;
	shape-outside: url(./img/DVT_1898_Logo.png);
  shape-image-threshold: 0.0;
	shape-margin: 1.5em;
}

img.form:hover{
  scale: 1.1;
}

.main-img {
  max-width: 60%;
	height: auto;
  padding: 0.3125em 15px 0.625em;
}

img.link:hover {
	filter: alpha(opacity = 75); /* IE 6, 7, 8 */ 
	opacity: .75; /* alle anderen Browser einschließlich IE 9 */
}

/* figure.slides-Container um die Bilder */

.slides {
  margin: 0.4em 0 0.8em;
  line-height: 0;
}

figure {
  position: relative;
  margin-top: 0;
}

figcaption {
  position: absolute;
  bottom: 0;
  font-size: 0.875em;
  line-height: 1.4em;
  padding: 0.5em;
  text-align: center;
  width: 100%;
  background: black;
  color: white;
  opacity: 0.6;
}

/* ----------------------------------------------------------------------------- * 
 *                          Styles für Formulare                                 *
 * ----------------------------------------------------------------------------- */

fieldset {
  border: none;
	margin: 0 auto;
}

legend {
  color: #4A6491;
  font-size: 1.375em;
  padding: 0 0.5em;
}

.formset {
  margin: 0.5em 0;
}

.formset label, .formset input, .formset textarea {
  display: inline-block;
}

.formset label {
  width: 100%;
  line-height: 2.5em;
}

.formset input, .formset textarea {
  width: 100%;
  border: 1px solid var(--gray);
	background:white;
  padding: 0.2em 0.5em;
	resize: none;
}

.formset input:focus, .formset textarea:focus {
  outline: transparent;
	background: #e6e6e6b7;
  border-color: #d94141;
  caret-color: var(--gray);
}

.submit-btn {
  float: right;
  border-style: none;
  border-radius: 200px;
  color: white;
  background: var(--green);
  padding: 5px 16px;
  margin-top: 0.5em;
}

input:required, textarea:required {
  padding-right: 3%;
  background: url("../img/char_asterisk.svg") no-repeat scroll right top / 0.6em auto transparent;
}

input[type='number']:out-of-range {
  border-color: red;
}

/* Positionierung der Required * in em */

em {
  left: 98%;
}

/* ----------------------------------------------------------------------------- *
 *                          Styles für Teaserboxen                               *
 * ----------------------------------------------------------------------------- */

/* clearing für floatende Teaserboxen */
section {
  overflow: hidden;
  margin-top: 1em;
}

.box {
  background-color: #d3d1c2;
}

.teaser {
  margin: 1em 0 0 0;
}

.box-inner {
  padding: 0.8em 1em 1em;
}

.box.teaser {
  overflow: auto;
  margin-top: 1em;
}

.teaser h3 {
  margin: 0 0 0.4em;
}

.teaser p {
  margin: 0;
  font-size: 1em; /* 16 px */	
}

/* ----------------------------------------------------------------------------- *
 *                  Teaser geht noch über die gesamte Breite,                    *
 *              aber Text rutscht im Teaser rechts neben das Bild                *
 *                          400px / 16px/em = 25em                               *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 25em) {
    .box.teaser img {
        max-width: 45%;
        height: auto;		
        float: left;
        margin: 0 1em 0.2em -1em;
    }
}

/* ----------------------------------------------------------------------------- *
 *                       Teaserboxen mit Bild und Text für größere Auflösungen   *
 *                          750px / 16px/em = 46.875em                           *
 * ----------------------------------------------------------------------------- */
@media only screen and (min-width: 46.875em) {

    .box {
      /* Trick für gleichlange Spalten  - dazu gehört ein overflow: hidden für den umgeb. Container */
      margin-bottom: -99999px !important;
      padding-bottom: 99999px !important;
    }

    /* Wenn der Screen breiter wird, werden 2 Teaserboxen nebeneinander dargestellt. Achtung: 2x47+5<100%, da ein Schatten sonst abgeschnitten würde */
    .box.teaser {
      float: left;
      margin-right: 5%;
      width: 47%;
    }

    .box.teaser img {
      max-width: 100%;
      height: auto;
		  display: block;
		  margin: 0 auto;
		  float: none;
    }

    /* damit 2 Teaser-boxen den gesamten Inhaltsbereich ausfüllen,
     * wird bei jedem zweiten das Margin auf 0 gesetzt. */
    .box.teaser:nth-of-type(2n+2) {
      margin-right: 0;
    }
}

/* Tabellen */

caption {
  font-style: italic;
  color: #FFF;
  font-size: 1.25em;
  background: #1A1F2B;
  padding: 0.5em;
}

table {
  width: 100%;
  text-align: left;
  font-size: 0.938em;
}

tr {
  display: block;
  overflow: auto;
	padding: 0.2em;
}

thead {
  display: none;
}

td {
  width: 100%;
  float: left;
  display: block;
  padding: 0.3em 1em;
}

td:first-of-type {
  color: #000;
	background: none;
	border-width: 1px;
	border-style: solid none;	
}

td:before {
  font-weight: bold;
  content: attr(data-header) " ";
}

.hideonss {
  display: none;
}

.tdbig {
	color: #000;
	font-weight: bold;
  font-size: 1.188em; /* 19px */
  line-height: 1.375em; /* 22px */
}

@media only screen and (min-width: 30em) {

    thead {
      display: table-header-group;
    }

    tr {
      display: table-row;
      border: none;
      padding-bottom: 0;
    }

    th, td {
      padding: 1em;
      float: none;
      display: table-cell;
      width: auto;
    }

    th {
      color: #646464;
		  background: none;
		  border-width: 1px;
      border-style: solid none;
    }

    td:first-of-type {
	    color: inherit;
      background: none;
		  border: none;
    }

    td:before {
      content: '';
    }
	
	.hideonss {
    display: table-cell;
	}

	.tdbig {
		color: #000;
	}

} 

/* Navigation */

.navigator{
  position: sticky;
  bottom: 1em;
  zoom: 0.8;
}

.nav-wrap {
  border: 1px solid #8f8f8f;
  width: fit-content;
  margin: 0 auto;
  border-radius: 100px;
  position: relative;
  background: linear-gradient(0deg, #484848, #303030);
  &:after {
    content: "";
    display: block;
    position: absolute;
    inset: -4px;
    background: linear-gradient(180deg, #bababa, #000000);
    border-radius: 100px;
    z-index: -1;
  }
}

.nav {
  width: fit-content;
  anchor-name: --nav;
  margin: 2px;
  a {
    z-index: 10;
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    color: white;
    text-decoration: none;
    &:before {
      content: "";
      display: block;
      position: absolute;
      inset: 0px;
      opacity: 0.2;
    }
    &.active {
      anchor-name: --active;
      color: black;
    }
    &:hover:before {
      anchor-name: --nav;
    }
  }
}

.bubble {
  background: white;
  top: anchor(top);
  right: anchor(right);
  bottom: anchor(bottom);
  left: anchor(left);
  position: absolute;
  transition: all 0.2s;
  border-radius: 100px;
  &.active {
    position-anchor: --active;
    z-index: 2;
    background: linear-gradient(180deg, #f2f2f2, #b3b3b3);
    box-shadow: inset 0 2px 7px white;
  }
  &.hover {
    z-index: 1;
    background: linear-gradient(180deg, #4a4a4af4, #0f0f0f);
    box-shadow: inset 0 2px 7px #c6c6c66b;
    position-anchor: --nav;
  }
}

@media only screen and (min-width: 30em) {
  h1 {
    font-size: 1.8125em; /* 30px */
  }

  .navigator{
    zoom: 1;
  }
}

/* 12. DVT-Icons */

@font-face {
    font-family: 'dvt-icons';
    src:    url('../fonts/dvt-icons.eot?bmde2v');
    src:    url('../fonts/dvt-icons.eot?bmde2v#iefix') format('embedded-opentype'),
        url('../fonts/dvt-icons.ttf?bmde2v') format('truetype'),
        url('../fonts/dvt-icons.woff?bmde2v') format('woff'),
        url('../fonts/dvt-icons.svg?bmde2v#dvt-icons') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'dvt-icons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    
    /* Enable Ligatures */
    letter-spacing: 0;
    -webkit-font-feature-settings: "liga";
    -moz-font-feature-settings: "liga=1";
    -moz-font-feature-settings: "liga";
    -ms-font-feature-settings: "liga" 1;
    -o-font-feature-settings: "liga";
    font-feature-settings: "liga";
	  -webkit-font-variant-ligatures: discretionary-ligatures;
    font-variant-ligatures: discretionary-ligatures;

    /* Better Font Rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-home:before {
    content: "\e900";
}
.icon-mail:before {
    content: "\e901";
}