/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */

html {
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font: normal 1em "Open Sans", sans-serif;
  /* Keine Mindestschriftgröße! Dies wird dem Browser, bzw. dem Nutzer überlassen! */
  color: #333;
}

a:link, a:visited {
 text-decoration: none;
}




/* ====================================================   HEADER   ==================================================== */

[role="banner"] {
	max-width: 65em;
	margin: 0 auto;
	padding: 1em 0;

}

@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: 55m;
  margin: 0 auto;
  /*padding-left: 10%;*/
  font-family: "Open Sans", sans-serif;;
  font-size: 2em;
  color: #e2001a;
  padding-top:38px;
}

[role="banner"] p {
  padding: 1em 10%;
  color: white;
}

[role="banner"] img {
  height: 5em;
  max-width: 5em;
  padding-left: 15px;
}



/* ====================================================  NAV   ==================================================== */

nav {
 margin: 0 auto;
  max-width: 30em;
  padding-top: 15px;
  padding-right: 30px;
  height: 70px;
  float: right;
}

nav ul {
  text-align: right;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  color: black;
  text-decoration: none;
  display: inline-block;
  padding: 1em 0 1em 1em;
}

nav a:hover,
nav a:focus {
  /*background: #28729a;*/
  color: #e2001a;
}

nav a.fore::after {
	/*display: inline-block;*/
    font-family: "Material Icons";
   content: 'open_in_new';
   font-size: 1em;
   color: #797a7a;
	float:right;
	padding-left: 5px;
	margin-right: 10px;
	margin-top: 3px;
}

nav a.lang::after {
	/*display: inline-block;*/
    font-family: "Material Icons";
   content: 'language';
   font-size: 1em;
   color: #797a7a;
	float:right;
	padding-left: 5px;
	margin-right: 10px;
	margin-top: -3px;

}
nav a.lang:hover::after {
   color: #e2001a;
}

nav a.fore:hover::after {
   color: #e2001a;
}




/* ==================================== content ===========================  */

.polaroid {
  margin-bottom: 25px;
  background-color: white;
}

.polaroid img {
  max-height: 190px !important;
}

.container {
  text-align: left;
  padding-left: 10px;
}


.liste {
	display: block;
	padding-inline-start: 40px;	
	list-style-type: none;
	padding: 0px;
}

.liste li {
	border-bottom: 1px solid #BDBDBD;
	padding: 10px;
}

.liste li.last {
	border-bottom: none;
	padding: 10px;
}


a.link::after{
	display: inline-block;
  font-family: "Material Icons";
  content: 'chevron_right';
  font-size: 1.5em;
	color: #e2001a;
	float: right;
	text-align: center;
	margin: -5px;
}

a.link-last::after{
	display: inline-block;
  font-family: "Material Icons";
  content: 'chevron_right';
  font-size: 1.5em;
	color: #e2001a;
	float: right;
	text-align: center;
	margin: -5px;
}

a.download::after{
	display: inline-block;
  font-family: "Material Icons";
  content: 'download';
  font-size: 1.5em;
	color: #e2001a;
	float: right;
	text-align: center;
	margin: -5px;
}

a.link-last::after{
	display: inline-block;
  font-family: "Material Icons";
  content: 'download';
  font-size: 1.5em;
	color: #e2001a;
	float: right;
	text-align: center;
	margin: -5px;
}


a {
  color: #e2001a;
}


h1,
h2 {
  color: #e2001a;
  font-size: 1.2em;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}

h3 {
  color: #e2001a;
  font-size: 1.2em;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}


/* ==================================== footer ===========================  */

footer {
  padding: 0.5em 1em 0;
  margin-top: 1em;
}

footer p {
  color: #797a7a;
  text-align: center;
  font-size: 12px;
	}

footer > * {
  flex:  1 1 20em;
}

footer .branding {
  text-align: right;
}
a::after{
	display: inline-block;
  font-family: "Material Icons";
  content: 'open_in_new';
  font-size: 12px; 
	color: #e2001a;
	text-align: center;
	padding: 5px;
}

a.download::after {
  display: inline-block;
  content: none;

}


/* ====================================================   LAYOUT   ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten*/

body {
  padding: 0 1em;
  background-color: #f4f4f4;
}

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: 150px;
  margin: 0 10%;
  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 {
  background: transparent;
}

[aria-current=page] {
  color: #28729a;
}
}


/* Main wird zum Flex-Container */

main,
footer {
  display: flex;
  flex-flow: row wrap;
}

main > * {
  flex: 1 1 18em;
  margin: 1em;
  background-color: white;
  padding: 10px;
  box-shadow:  3px 6px 5px 0px rgba(204,204,204,0.68);

}

.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 */
}


.header-content {
    display: flex;
    align-items: bottom;
    gap: 15px; /* Abstand zwischen Bild und Titel */
}

.header-image {
    max-width: 40px; /* Bildgröße */
    object-fit: cover;
    border-radius: 50%; /* Optional: Rundes Bild */
}

.header-title {
    font-size: 1.5em;
    color: #333;
}
#last-box {
  flex: 0 0 calc(33.333% - 2em) !important;
  max-width: calc(33.333% - 2em);
}

/* Responsives Design */
@media (max-width: 600px) {
    .header {
        padding: 20px;
    }

    .header-title {
        font-size: 1.2em;
        padding-left: 10px;
    }
    
    .header-image {
        width: 40px;
        height: 40px;
    }

    .polaroid img {
      max-height: none !important;
    }

}
