/* 1. Globale Einstellungen für die gesamte Website ================== */ 

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

/* Sanftes Scrollen aktivieren */ 
html { scroll-behavior: smooth; }

/* Collapsing Margins vermeiden */ 
h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote { margin-top: 0; }

/* Bilder und Videos mit flexibler Breite einbinden */ 
img, video { max-width: 100%; height: auto; }

/* figure ohne horizontale Außenabstände */
figure { margin-left: 0; margin-right: 0; } 


/* 2. Grundlegende Gestaltung für Schrift und Text  ============================== */ 

body {
/* Systemschriftart auf dem Gerät des Benutzers; »Best Practice« kann sich ändern */
font-family: system-ui, -apple-system, "Segoe UI", Roboto, 
             "Helvetica Neue", Arial, sans-serif; 

/* Definition der Standardschriftgröße  */
font-size: 1rem; 
}  

/* Überschriften - Schriftgröße und Strichstärke */ 
h1 { font-size: 2.5rem; font-weight: 500; } 
h2 { font-size: 2rem; font-weight: 500; } 
h3 { font-size: 1.75rem; font-weight: 500; } 
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; } 

/* Unterstreichung für Hyperlinks dünn und etwas weiter weg vom Text */ 
a { text-decoration-thickness: 1px; text-underline-offset: 0.1875em; }

/* Kontaktaddressen nicht kursiv */
address { font-style: normal; }

/* 3. Nützliche, allgemeine Klassen ====================================== */ 

/* Boxen am Bildschirm ausblenden */
.visually-hidden {
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important; 
    overflow: hidden !important;
    white-space: nowrap !important;
  
    width: 1px !important; 
    height: 1px !important; 
    padding: 0 !important; 
    border: 0 !important; 
    margin: -1px !important; 
  }

/* 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 @supports */ 


/* Modul für klassisches Layout  */

/** 
  * 1. Klassisches Seitenlayout (begrenzte Breite, zentriert) 
  */ 

/* Hintergrundfarbe für das Stammelement */ 
html { background-color: whitesmoke; }

/* Grundlegende Gestaltung für body */
body {
    /* Hintergrundfarbe und Begrenzung der Breite */ 
    background-color: white; 
    min-width: 320px; 
    max-width: 600px; 
  
    /* Horizontal zentrieren */ 
    margin: 0.25rem auto;   
  }


/** 
  * 2. Kopfbereich (inklusive Inhalte)  
  */ 

/* Innen- und Außenabstände */
.site-header { 
  background: teal;
  padding: 1rem 1rem 0 1rem; 
} 

/* Fine-Tuning: Die Abstände um Logo und Slogan anpassen */ 
.site-header h1 { margin-bottom: 0; }
.site-header p { margin-top: 0; }


/** 
  * 3. Inhaltsbereich (Inhalte in content.css)  
  */ 

/* Innen- und Außenabstände */
.site-content { 
    line-height: 1.5; 
    padding: 0 1rem; 
    margin-bottom: 2rem; 
} 
 
/** 
  * 4. Fußbereich (inklusive Inhalte)  
  */ 

/* Grundlegende Gestaltung für den Footer */ 
.site-footer {
    font-size: smaller; 
    background-color: #333;
    color: white; 
    text-align: right; 
    padding: 0.5rem 1rem;
  }


/* Die Navigation im Fußbereich */   
.footer-nav ul {
  display: flex; 
  list-style: none; 
  padding: 0;   
  margin: 0; 
}
.footer-nav li {
  /* display: inline; */
  margin-right: 0.5rem;
}
.footer-nav li:first-child {
  padding-right: 0.5rem; 
  border-right: 1px solid #eee;
}
.footer-nav li:last-child {
  margin-right: 0; 
  margin-left: auto;
}
.site-footer a {
  display: block;
  color: white; 
  text-decoration: none; 
}

/** 
  * Ende layout.css 
  */ 

/** ============== modern layout ========================= */

html { background-color: transparent; }
body { 
  display: flex;
  flex-flow: column;
  max-width: none; 
  min-height: 100vh; 
  padding: 0; 
  margin: 0; 
}

.inside {
  max-width: 600px; 
  padding: 0 1rem; 
  margin: 0 auto; 
}

@supports (display:grid) { 
  .inside { 
    max-width: 960px; 
  }
} 

/* Abstände der Infoboxen korrigieren - zusätzliche Klasse erhöht Spezifität */ 
.site-content .infoboxen { padding: 1rem 0; } 
.site-content .infobox { margin: 1rem 0; }

.site-header, .site-nav, .site-content, .site-footer { 
  padding-left: 0; 
  padding-right: 0; 
}

.site-content {
  flex: 1; 
}

/** Ende layout-modern.css  */ 


/** Mobile First Gestaltung der Navigation in einem schmalen Viewport */ 

.site-nav { 
    background-color: #333;
    color: white; 
    box-shadow: 0 2px 6px rgb(51,51,51,0.3); 
    margin-bottom: 2rem; 
} 

.site-nav .inside {
    padding: 0;
}

.site-nav ul {
    display: flex; 
    flex-flow: column; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.site-nav a {
    display: block; 
    text-decoration: none; 
    background: #333; 
    color: white;
    padding: 0.25rem 0.25rem;
}

.site-nav a:hover, 
.site-nav a:focus { 
    background: #07b; 
    color: white; 
}

.current a { 
    background: #666; 
    color: white; 
    text-decoration: none;
}


/** Kein JavaScript? Menübutton ausblenden  */ 
.no-js .menubutton { display: none; }

/** 
* Wenn JavaScript aktiviert ist:  
* - Menübutton gestalten 
* - Burger-Symbol einbauen 
*/ 
.js .menubutton { 
    display: flex; 
    align-items: center; 
    
    cursor: pointer;
    background: inherit; 
    color: white;
    font: inherit; 
    text-align: center; 
    
    padding: 0.5rem 1rem; 
    border: 0; 
    margin: 0; 
}

.js .menubutton::before {
    content: url(../bilder/menuburger.svg); 
    width: 1rem; 
    height: 1rem; 
    margin-right: 0.25rem; 
}
  

/**
  * Navigationsliste ausblenden 
  */
.js .site-nav ul {
    max-height: 0; 
    overflow: hidden; 
} 

/**
  * Navigationsliste einblenden 
  * Klick/Druck auf den Button fügt im HTML .showmenu hinzu 
  */    
.js .showmenu + ul {
    max-height: 100rem; 
    transition: max-height 0.5s ease-in-out;  
    overflow: auto; 
} 
.js .showmenu.menubutton::before {
    content: url(../bilder/menuclose.svg); 
}    
  
/**
  * Horizontale Navigation für breitere Viewports  
  */
@media screen and (min-width: 600px) {
    .menubutton { 
        display: none !important; 
    } 
    .site-nav { 
        position: sticky; 
        top: 0; 
    } 
    .site-nav .inside {
        padding: 0 1rem; 
    }
    .site-nav ul { 
        max-height: none !important; 
        flex-flow: row; 
        padding: 0; 
    }
    .site-nav li {
        flex: 1; 
        max-width: 10rem; 
        text-align: center; 
        border-left: 1px solid #eee; 
    }
    .site-nav li:last-child { 
        border-right: 1px solid #eee; 
    }

} /* Ende @media */

/** 
  * Hyperlinks im Inhaltsbereich gestalten 
  */

/* Linkzustände für den Inhaltsbereich */
.site-content a:link { color: #07b; } 
.site-content a:visited { color: #3ad; } 
.site-content a:hover, .site-content a:focus { color: #f63; } 
.site-content a:active { color: #ec3; }  

/* Externe Hyperlinks */
/* .site-content a[href^="http"]::after { content: " (in neuem Tab oder Fenster)"; }  */
/*.site-content a[href^="http"]::after { content: " \2197"; } */
/* .site-content a[target="_blank"]::after { content: " \2197"; } */


/** Grundlegende Gestaltung der Infoboxen */
.infoboxen {
    background-color: #eee; 
    padding: 1rem; 
    margin-bottom: 1rem; 
  }

  @media screen and (min-width: 600px) {
    .infoboxen > .inside {
      display: grid; 
      grid-template-columns: 1fr 1fr 1fr; 
      grid-gap: 1rem; 
    } 
  } /* Ende @media */  

  .infobox {
    display: flex; 
    flex-flow: column;
       
    text-align: center; 
    background-color: white; 
    padding: 1rem;
    margin: 1rem; 
  }  
  
  .infobox p:last-child { 
    margin-top: auto; 
  } 
