/** ==========================================
    Einstieg in HTML und CSS  
    Stylesheet für die Übungswebsite 
 
    basis.css  
    wird in style.css per @import eingebunden  
 
    ======================================= */

/** 
  * 1. Globale Einstellungen für die gesamte Website 
  */

/* roboto-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v48-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/roboto-v48-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/roboto-v48-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto-v48-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v48-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/roboto-v48-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v48-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* Farben mit nenutzerdefinierten Eigenschaften (aka CSS-Variablen) */
html {
    --basisfarbe: white; 
    --kontrastfarbe: black; 
    --akzentfarbe: #07b; 
    --schattenfarbe: rgb(51,51,51,0.3);
  
    --grau-dunkel: #333;
    --grau-mittel: #999; 
    --grau-hell: #eee; 
    --grau-sehr-hell: whitesmoke;
    --sehr-hell: #f9f9f9;

    --linkfarbe: #05a;
    --linkfarbe-visited: #50a; 
    --linkfarbe-hover-focus: #a05; 
    --linkfarbe-active: #a50;
    --linkfarbe-dunkel: #000159ff;
    --blass-rot: #96000099;
  }
  
/* border-box aktivieren */
*, *::before, *::after { box-sizing: border-box; }
  
/* Sanftes Scrollen aktivieren */ 
html { scroll-behavior: smooth; }

/**
  * 2. Grundlegende Gestaltung von Schrift und Text
  */
 /**
  * 1. Klassisches Seitenlayout (Hintergrund, begrenzte Breite, zentriert)
  */
html { background-color: var(--basisfarbe);
font-family: "Roboto", sans-serif;
  font-size: 1.0rem;
  letter-spacing: .06em;
}


body {
  background-color: var(--basisfarbe);
  min-width: 320px;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

 /* body sanft einblenden  */

body {
  animation: einblenden 1s;
  -moz-animation: einblenden 1s; /* Für Firefox */
  -webkit-animation: einblenden 1s; /* Für Safari und Chrome */
  -o-animation: einblenden 1s; /* Für Opera */
}

@keyframes einblenden {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-moz-keyframes einblenden {
  /* Für Firefox */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes einblenden {
  /* Für Safari und Chrome */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-o-keyframes einblenden {
  /* Für Opera */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Flexible Bilder und Videos */ 
img, video { 
    max-width: 100%; 
    height: auto; 
}

/* Grundlegende Gestaltung von figure und blockquote */ 
figure, blockquote { 
  margin-right: 0; 
  margin-left: 0;
}

/* CSS-Regel zur Vermeidung von Collapsing Margins */ 
h1, h2, h3, h4, h5, h6,
p, ul, ol, blockquote {
  margin-top: 0; 
}


/* Gestaltung der Überschriften */
h1 { font-size: 2.5rem; } 
h2 { font-size: 1.5rem; }
h3 { font-size: 1.75rem; } 
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; } 

h1, h2, h3, h4 { font-weight: 500; } 

/* Unterstreichung für Hyperlinks */ 
a { 
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em; 
}


.nodecoration:hover {
    text-decoration: underline;
}

.nodecoration {
    text-decoration: none;
}
  
/* Schrift nicht kursiv */
address { font-style: normal; }

/* ein- und ausblenden von elementen mit div desktop und mobil  */

 @media screen and (min-width: 600px) {

 .desktop  {
     display: block;
      }
 .mobile  {
     display: none;
      }
 .wide  {
     display: none;
      }
 }
 @media screen and (max-width: 599px) {

 .desktop  {
     display: none;
      }
 .mobile  {
     display: block;
      }
 .wide  {
     display: none;
      }
 }

 @media screen and (min-width: 1400px) and (max-height: 900px) {


 .desktop  {
     display: none;
      }
 .mobile  {
     display: none;
      }
 .wide  {
     display: block;
      }
}


/* Inhalt head nav und mobile nav */
  @media screen and (min-width: 600px) {

 /*.deskcontent  {
     display: block;
      }
 .mobile-nav  {
     display: none;
      }
      */
 }
 @media screen and (max-width: 599px) {
  /*
 .deskcontent  {
     display: none;
      }
 .mobile-nav  {
     display: block;
      }
      */
 }


details {
   background-color: var(--sehr-hell);
   padding: 0.2rem;
   border: 1px solid lightgrey;
   margin-bottom: 0.2rem;
}

summary {
    cursor: pointer;
    font-weight: 400;
    font-size: 1.0rem;

}

/** 
  * 3. Nützliche, allgemeine Klassen 
  */ 

/* Boxen am Bildschirm ausblenden */
.visually-hidden { 
  position: absolute;
  clip: rect(0, 0, 0, 0); 
  clip-path: inset(50%); 
  overflow: hidden;
  white-space: nowrap;
  width: 1px; 
  height: 1px; 
  padding: 0; 
  border: 0; 
  margin: -1px;
} 

/* Skip-Links sichtbar machen wenn Fokus und aktiviert */
a.skip-link:focus { 
  outline: 2px solid var(--akzentfarbe);
  background: var(--basisfarbe);
  display: block;
  position: static; 
  clip: auto; 
  clip-path: none;
  overflow: visible; 
  white-space: inherit;
  width: auto; 
  height: auto; 
  padding: 0.5rem; 
  border: none;
  margin: 0; 
} 

/* Klassen zum Floaten */
.float-rechts { 
  float: right; margin: 0 0 0 1rem; 
}

.float-links  { 
  float: left;  margin: 0 1rem 0 0; 
}

.float-stoppen { 
  clear: both; 
}

figure[class~="float-rechts"], 
figure[class~="float-links"] { 
  text-align: center; 
}

/* Floats umschließen für alte und neue Browser */
.float-umschliessen { 
  overflow: hidden; 
} 

@supports (display: flow-root) { 
  .float-umschliessen {
    display: flow-root; 
    overflow: initial; 
  } /* Ende .float-umschliessen */ 
} /* Ende @supports */ 


/* Ende basis.css */