/* ====================================================   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: #000000;
  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: 40px;
  height: 70px;
  float: right;
}

nav ul {
  text-align: right;
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-size: 12px; 
}

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 {

    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 {

    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 ===========================  */
.banner {
  margin-bottom: 25px;
  background-color: white;
    position: relative;
}

.banner img {
  max-height: 250px !important;
  display: block;
}

.banner h1 {
	color: rgb(51, 51, 51);
	margin-left: 10px;
	font-family: Open Sans, Arial, sans-serif;
	font-size: 20px; 
}

.banner p {
	color: rgb(51, 51, 51);
	margin-left: 10px;
	margin-right: 10px; 
	font-family: Open Sans, Arial, sans-serif;
	font-size: 12px;
}

.banner h1::after {
  content: ""; /* Inhalt für das Pseudo-Element */
  display: block; /* Um das Pseudo-Element als Blockelement zu behandeln */
  width: 3.5rem; /* Breite der Linie */
  height: .25rem; /* Dicke der Linie */
  background-color: #e2001a; /* Farbe der Linie */
  margin-bottom: 10px; /* Abstand zwischen Linie und Absatz */
  margin-top: 5px;
  border-radius: .125rem;
}


.button {
	font-family: Open Sans, Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #ffffff;
 	padding: 8px 10px;
 	background-color: #e2001a;
 	border-radius: 0;
 	cursor: pointer;
}

.overlay {
  position: absolute; /* Positioniert relativ zum .image-container */
  top: 30px;
  left: 30px;
  width: 35%;
  height: 80%;
  background-color: rgba(255, 255, 255, 0.8); /* Schwarz mit 50% Deckkraft */
}


.polaroid {
  margin-bottom: 25px;
  background-color: white;
}

.polaroid-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.polaroid h1{
	color: rgb(51, 51, 51);
	margin-left: 10px;
	font-family: Open Sans, Arial, sans-serif;
}

.polaroid p{
	font-size: 12px;
	text-align: center;
	margin-left: 70px;
	margin-right: 70px; 
	margin-bottom: 50px;
	margin-bottom: 50px;
}

.polaroid img{
	display: block;
margin: auto;
max-height: 300px; 
}


.container {
  text-align: left;
  padding-left: 10px;
}

.demo{
	  margin-bottom: 25px;
  background-color: white;
  margin: 40px 70px; 
}

.demo p{
	font-size: 12px;
	line-height: 1.5;
	padding: 10px 50px; 
}

.demo img{
	max-width: 400px;
	padding: 10px 10px;
}


.apps{
	  margin-bottom: 25px;
  background-color: white;
  margin: 40px 70px; 
}

.apps p{
	font-size: 12px;
	line-height: 1.5;
	padding: 10px 50px; 
}

.apps img{
	max-width: 180px;
	padding: 10px 10px;
}

.contact{
  background-color: rgb(244, 244, 244);
  margin: 40px 400px; 
}

.contact p{
	font-size: 12px;
	line-height: 1.5;
	padding: 10 100 px; 
}

.contact img{
	max-width: 400px;
	padding: 10px 10px;
	margin-right: 30px; 
}

.contact h4{
	font-size: 12px;
	line-height: 1.5;
	padding: 10 100 px; 
	font-wight: bold;
}

a {
  color: #e2001a;
}


.store {
  margin-bottom: 25px;
  background-color: white;
}

.store img {
  max-height: 65px !important;
  	padding: 10px 80px;

}

h1,
h2 {
  color: rgb(51, 51, 51);
  font-size: 1.5em;
  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;
  padding: 0px;
}


/* ==================================== footer ===========================  */

footer {
  /*padding: 0.5em 1em 0;*/
  margin-top: 1em;
  background-color: rgb(244, 244, 244);
}


footer > * {
  flex:  1 1 20em;
}

footer .branding {
  text-align: right;
}

/* Oberer Footerbereich (grau) */
.footer-1 {
    background-color: rgb(244, 244, 244); /* hellgrau */
    color: #333;
    padding: 1.5em 0;
}

/* Unterer Footerbereich (schwarz) */
.footer-2 {
    background-color: #000; /* schwarz */
    color: #fff;
    padding: 1em 0;
    font-size: 0.9em;
}

.footer-divider {
  height: 1px;
  background-color: rgb(244, 244, 244);
  margin: 0 20px; /* Links & rechts 20px eingerückt */
}

.footer-3 {
    background-color: #000; /* schwarz */
    color: #fff;
    padding: 1em 0;
    font-size: 0.9em;
}

.footer-3 p{
	padding-left: 100px;
	font-size: 11px;
}

.footer-3 a{
	font-size: 11px;
	color: white;
}

/* Zentrierte Inhalte */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

footer .footer-top,
footer .footer-bottom {
    flex: 0 0 100%; /* Bei Flexbox: volle Breite */
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  margin-left: 15px;
  display: inline-block;
}

.social-icons img {
  height: 20px;       /* maximale Höhe */
  width: auto;        /* Breite proportional */
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}


/* ====================================================   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: 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;
}

/* 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;
    }

}