﻿/* ================================

   style.css  

   centrals Stylesheet (k18)

   ================================ */

/* ================================

   basis.  

   - general settings  
   - Font and text 
   - element selectors and global classes 

   ================================ */

/**
  * General settings   
  */ 

*, 
*::before, 
*::after { 
  box-sizing: border-box; 
}

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6,
p, ul, ol, blockquote {
  margin-top: 0; 
}

/**
  * Font and text   
  */

body {
  font-family: "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem; 
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; font-variant: small-caps; }

/**
  * Element selectors 
  */

img, video {
  max-width: 100%; 
  height: auto; 
}
      
figure {
  margin-left: 0; 
  margin-right: 0; 
}

address { 
  font-style: normal; 
}

.visually-hidden { 
  position: absolute; 
  clip: rect(0, 0, 0, 0); 

  width: 1px; 
  height: 1px; 
  padding: 0; 
  border: 0; 
  margin: -1px; 

  overflow: hidden; 
} 

.site-content {
  scroll-margin-top: 1rem;
}

/* eof */ 

/* ================================

   layout.  

   - Seitenlayout 
   - Layoutbereiche 

   ================================ */

/** 
  * classic page layout with a fixed with (K15) 
  */ 

html { 
  background-color: whitesmoke; 
}

body { 
  background-color: white; 
  color: black; 
  max-width: 800px; 
  margin: 1rem auto; 
}

/** 
  * Areas of Layout 
  */ 

/* Kopfbereich (K07 und K15 ) */
.site-header { 
  padding: 1rem 1rem 0 1rem; 
}
.site-header h1 { 
  margin-bottom: 0; 
}
.site-header p { 
  margin-top: 0; 
}

/* Navigationsbereich */
.site-nav {
	background-color: #333;
  color: white; 
	padding: 0.5rem 1rem;
  margin: 1rem 0; 
}

/* Inhaltsbereich (K07, K14 und K15) */
.site-content { 
  line-height: 1.5; 
  padding: 0 1rem; 
}

/* Fußbereich (K07 und K15) */
.site-footer {
  font-size: smaller; 
  text-align: right; 
  background-color: #333;
  color: white;
  padding: 0.5rem 1rem;
  margin-top: 2rem; 
}
.site-footer a {
  color: white; 
  text-decoration: none; 
}

/* eof */

/* ================================

   layout-modern.  

   ================================ */

html { 
  background-color: transparent; 
}

body { 
  max-width: none; 
  padding: 0; 
  margin: 0; 
}

.inside {
  max-width: 800px; 
  padding: 0 1rem; 
  margin: 0 auto; 
}

.site-header,
.site-nav,
.site-content,
.site-footer {
  padding-left: 0; 
  padding-right: 0; 
}


/* eof */

/* ================================

- Gestaltung der Hauptnavigation  
- Hervorhebung des aktuellen Menüpunktes 
- Gestaltung der Meta-Navigation im Fußbereich 
- beide basieren auf display: inline  

================================ */

/** 
  * 1. Die Hauptnavigation (K05 und K15)
  */ 

.site-nav ul {
  padding: 0; 
  margin: 0; 
}

.site-nav li {
	display: inline;
	margin-right: 0.5rem;
}

.site-nav a {
  color: white; 
  text-decoration: none; 
}

/** 
  * 2. Die Meta-Navigation im Fußbereich (K05 und K15)
  */ 

.meta-nav ul {
  padding: 0; 
  margin: 0; 
}
.meta-nav li {
	display: inline;
	margin-right: 0.5rem;
}


/** 
  * 3. Aktueller Menüpunkt (gilt für beide Navigationen, K05)
  */ 

.current a {
  text-decoration: underline; 
}

/* eof */

/* ================================

- gestaltet die Inhalte in main 

================================ */ 


/** 
  * Die Links im Inhaltsbereich gestalten (K14 und K16)
  */ 

.site-content a[href^="http"]::after { content: " \2197"; }

.site-content a:link { color: #0b74b8; } 
.site-content a:visited { color: #36aade; } 
.site-content a:hover, .site-content a:focus { color: #f5662e; }
.site-content a:active { color: #d90000; }


/** 
  * Gestaltung der Infoboxen (K07 und K17)
  */ 

.infoboxen {
  background-color: #eee; 
  padding: 1rem 0; 
  margin-bottom: 1rem; 
}

.infobox {
  text-align: center; 
  background-color: white; 
  padding: 1rem;
  margin: 1rem 0; 
}

.infoboxleft {
  text-align: left; 
  background-color: white; 
  padding: 1rem;
  margin: 1rem 0; 
}

@media screen and (min-width: 800px) {
  .infoboxen2 > .inside {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr;     
    grid-gap: 1rem; 
  } 
}           

/** 
  * Createion for what you also should know
  */ 
.moreinfos {
  text-align: center; 

  background-color: #eee;
  background-image: linear-gradient(to right, #eee, whitesmoke); 
  box-shadow: 0 1px 3px rgb(51,51,51,0.3); 
  
  padding: 1rem;
  border-left: 5px solid #0b74b8; 
  margin: 0; 
  margin-bottom: 1rem; 
}

.moreinfo p:first-child {
  font-size: 1.25rem; 
  font-weight: bold; 
}


/**
  * Grundlegende Gestaltung der Inhalte auf der Seite News (K11) 
  */

.beitragsliste h3, 
.linklisten h3 {
  padding-top: 0.5rem; 
  border-top: 1px solid #eee; 
  margin-bottom: 0.25rem; 
}
.beitragsliste h3 a { 
  color: #333; 
}
.beitragsliste article, 
.linklisten section { 
  margin-bottom: 3rem; 
}
.beitragsinfo { 
  color: #999; 
}

/* ================================

- Gestaltung des Kontaktformulars

================================ */

.kontaktformular form {
  max-width: 400px; 
  background-color: #eee; 
  padding: 1rem; 
}

.kontaktformular div {
  margin-bottom: 1rem; 
}

.kontaktformular label { 
  cursor: pointer; 
}      

.kontaktformular label[for] { 
  display: block; 
}      
      
.kontaktformular button {
  background-color: #0b74b8;
  color: white; 
  padding: 0.5rem; 
  border: none;   
  font-size: inherit; 
  cursor: pointer; 
}

/* eof */
