/* Stylesheet für Selfhtml Design 02 */

:root {
  --accentColor1: #337599;
  --accentColor2: #dfac20;  
  --backgroundColor1: #ddd;
  --backgroundColor2: white;  
  --textColor: #333;
  --yellow: #dfac20;	
} 

/*  responsives Layout mit Flexbox ab Z. 248   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */

html {
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font: normal 1em Arial, sans-serif;
  /* Keine Mindestschriftgröße! Dies wird dem Browser, bzw. dem Nutzer überlassen! */
  color: #333;
}


/* ====================================================   HEADER   ==================================================== */

[role="banner"] {
  background: url("../img/Design02.svg") no-repeat right,
  black linear-gradient(-45deg, #adc8d6, var(--accentColor1), black, black);
  background-size: contain, auto;
  padding: 0 0 0.5em;
}

@media screen and (max-width: 40em) {
  /* Normalerweise werden solche responsiven Layout-Einstellungen gesondert am Schluss notiert. Hier sollen die mulitple backgrounds aber gleich anfangs gezeigt werden. Auf zu kleinen Bildschirmen wird das Bild jedoch ausgeblendet.  */
  [role="banner"] {
    background-image: none;
  }
}

[role="banner"] h1,
[role="banner"] p {
  max-width: 60em;
  margin: 0 auto;
  padding-left: 10%;
  font-family: 'Roboto', sans-serif;
  font-variant: small-caps;
  font-weight: lighter;
  font-size: 2em;
  color: #eee;
}

[role="banner"] p {
  padding: 0 10% 0.2em;
  color: white;
}

[role="banner"] img {
  float: right;
  height: 15em;
}


/* ====================================================  NAV   ==================================================== */

nav {
  max-width: 30em;
  margin: 0 auto;
}

nav ul {
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background: var(--accentColor1);
  color: var(--backgroundColor2);
  text-decoration: none;
  display: inline-block;
	font-size: 1.2em;
  padding: 0.5em;
}

nav a:hover,
nav a:focus {
  background: var(--backgroundColor2);
  color: var(--accentColor1);
}

nav a:hover::after,
nav a:focus::after {
  color: transparent;
}


/* ===================== STYLE SWITCHER ============================= */

#styleswitcher {
  max-width: 60em;
  margin: 0 auto;
}

#styleswitcher li {
  list-style-type: none;
  display: inline-block;
}

#styleswitcher button {
  border: 1px solid transparent;
  border-radius: 0.2em;
  color: white;
  width: 4.5em;
  text-align: center;
}

[data-stylesheet="./css/violet.css"] {
  background: #9357b9;
}

[data-stylesheet="./css/standard.css"] {
  background: #28729a;
}

#styleswitcher [data-stylesheet="./css/green.css"] {
  background: #8db243;
  color: black;
}

#styleswitcher button[data-stylesheet="./css/yellow.css"] {
  background: #dfac20;
  color: black;  
}

/* ohne die Angabe der id hätte der Attributselektor eine geringere Spezifität und die Farbangabe des Texts wäre ignoriert worden. */

#styleswitcher [data-stylesheet="./css/orange.css"] {
  background: #df6c20;
	color: black;
}

[data-stylesheet="./css/red.css"] {
  background: #c32e04;
}

#styleswitcher button:hover,
#styleswitcher button:focus {
  font-weight: bold;
  border: 1px solid white;
}

/* ==================================== content ===========================  */

a,
.akzentfarbe1 {
  color: var(--accentColor1);
}

.akzentfarbe2 {
  color: #ccc;
}

h1,
h2 {
  color: var(--accentColor1);
  font-size: 1.50em;
  font-weight: normal;
  font-family: 'Tauri', serif;
  text-transform: uppercase;
}

.smallteaser {
  background: #eee;
  padding: 0.5em 0.5em 2em;
  position: relative;
}

.smallteaser h2 {
  display: flex;
  border-bottom: medium solid;
  align-items: flex-end;
}

.smallteaser h2 img,
.smallteaser h2 svg {
  margin-left: auto;
}

.smallteaser header p {
  border-bottom: thin solid currentColor;
}
aside h2,
.bigteaser h2 {
  color: var(--backgroundColor2);
}


.bigteaser > img,
.bigteaser > svg {
  float: right;
  margin: .5em;
  width: 2.5em;
}

.smallteaser header p {
  border-bottom: thin #D1D1D1 solid;
}

a.more {
  position: absolute;
  padding: .25em 0.5em;
  bottom: 1em;
  right: 1em;
  background: var(--accentColor1);
  color: white;
}

a.more:hover,
a.more:focus {
  background-color: #909090;
}

aside,
.bigteaser {
  background: var(--accentColor1);
  color: var(--backgroundColor2);
  padding: 0.5em 0.5em 2em;
  position: relative;	
}


aside a,
.bigteaser a {
  color: var(--backgroundColor2);
}

.bigteaser a.more {
  background: var(--backgroundColor2);
  color: var(--accentColor1);
}

/* ==================================== Kontaktformular ==================  */

form {
	display: grid;
	grid-template-columns: 7em 20em;
	gap: 1em;
}

label:after {
	content: ": ";
}

form input,
form textarea {
  background: #adc8d6; 
}

/* ==================================== footer ===========================  */

footer {
  background: #666 repeating-linear-gradient(-45deg, black, #151515 8em);
  padding: 0.5em 1em 0;
  margin-top: 1em;
  color: white;
}

footer > * {
  flex:  1 1 20em;
}

footer .branding {
  text-align: right;
}


/* ====================================================   LAYOUT   ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten*/

body {
  padding: 0 1em;
}

main {
  max-width: 65em;
  margin: 0 auto;
  padding: 1em 0;
}

/* Navigationselemente werden untereinander angezeigt */

nav ul {
  display: flex;
  flex-direction: column;
}

nav li {
  margin: .3em 0;
  flex: 1 1 100%;
}

nav a {
  width: 90%;
  margin: 0 5%;
  border-radius: .5em;
}

[aria-current=page] {
  color: black;
  font-weight: bold;
}

[aria-current=page]:hover,
[aria-current=page]:focus {
  color: black;
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 40em) {

/* Navigation wird nebeneinander ausgerichtet. */	

body {
  padding: 0;
}

/* Navigation wird nebeneinander ausgerichtet. */

nav ul {
  flex-direction: row;
  background: transparent;
}

nav li {
  margin: 0;
  flex: 1 1 0%;
}

nav a {

}

[aria-current=page] {

}
}


/* Main wird zum Flex-Container */

main,
footer {
  display: flex;
  flex-flow: row wrap;
}

main > * {
  flex: 1 1 18em;
  margin: 1em;
}

.bigteaser {
  flex: 1 1 18em;
}

/* Alle Unterseiten (nicht die Startseite also :not(.home)) */

:not(.home) h1 {
  flex: 0 0 100%; /* Überschrift über dem Hauptbereich über die gesamte Breite */
}

:not(.home) article {
  flex: 2 2 30em;   /* Hauptartikel zur Seitenspalte im Verhältnis 2:1 */
  max-width: 40em;  /* Begrenzt die Zeilen auf eine gut lesbare Länge */
}

:not(.home) article + aside {
  flex: 1 1 15em;   /* Seitenleiste zum Hauptartikel im Verhältnis 1:2 */
  max-width: 40em;  /* Begrenzt die Zeilen auf eine gut lesbare Länge */
}

blockquote {
	margin: 0;
	padding: 1em 0 0 3em;
	width: 80%;
	position: relative;
}

blockquote p{
	font-size: 2.5em;
}
cite {
	display: block;
	padding-top: 1em;
	text-align: right;
}

blockquote::before,
blockquote::after {
	position: absolute;
	display: block;
	font-size: 10em;
	color: var(--accentColor1);
}

blockquote::before {
	content: '“';
	left: -0.13em;
	top: -0.1em;
}

blockquote::after {
	content: '”';
	bottom: -0.3em;
	right: -0.4em;
}

img.right {
	float: right;
	margin-left: 1em;
}
img.left {
	float: left;
	margin-right: 1em;
}

/* Styles for Inline-SVG */

#ray{
	fill: none; 
	stroke: var(--accentColor2); 
	stroke-width: 7;
	stroke-linecap: round;
}
.cls-2{
	fill: var(--accentColor2);
}
.cls-3{
	fill: var(--backgroundColor2);
}
#darkmode #sky{
	fill: var(--accentColor1);
}
