

/* ==========================================================
   Sara Piazza – Alles in einer CSS-Datei
   Grid, Boxen, Menü, Schrift, Farben, Responsive
========================================================== */

/* -----------------------------
   RESET & BASE
----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'changeregular', sans-serif;
  font-size: 16px;
  line-height: 1.2em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-image: url("../images/start.gif");
}

.contact{   
background-image: url("../images/contact.gif");}
.write{   
background-image: url("../images/write.gif");}
.read{   
background-image: url("../images/read.gif");}
.do{   
background-image: url("../images/do.gif");}
.who{   
background-image: url("../images/who.gif");}








/* -----------------------------
   FONT-FACES
----------------------------- */
@font-face {
    font-family: 'changeextralight';
    src: url('../font_change/Change-ExtraLight.woff2') format('woff2');
}
@font-face {
    font-family: 'changeregular';
    src: url('../font_change/Change-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'changesemibold';
    src: url('../font_change/Change-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'changeextrabold';
    src: url('../font_change/Change-ExtraBold.woff2') format('woff2');
}

/* -----------------------------
   TYPOGRAPHIE & LINKS
----------------------------- */
p { margin-bottom: 1.5em; }
.text { font-family: 'changeextralight'; font-size: 20pt; line-height: 1.4em; text-align: left; color: #ffffff; }
.textbold {font-family: 'changesemibold'; font-size: 20pt; line-height: 1.4em; letter-spacing: 0.02em;}
.textkl { font-family: 'changeextralight'; font-size: 12pt; line-height: 1.4em; text-align: left; color: #ffffff; }

h1,h2,h3,h4,h5,h6 { line-height:1.5em; margin:.45em 0; }

a:link, a:visited { text-decoration:none; color:#ffffff; font-size:20pt; }
a:hover { color:#000000; }

a.E { font-family:'changeextralight'; font-size:30pt; }
a.D { font-family:'changesemibold'; font-size:30pt; }
a.I { font-family:'changeextrabold'; font-size:30pt; }

a.textkl, a.textkl:link, a.textkl:visited { font-family: 'changeextralight'; font-size: 12pt; line-height: 1.4em; text-align: left; color: #ffffff; }
a.textkl:hover { color: #000000; }


/* -----------------------------
   LOGO
----------------------------- */
.logo_Sara {
    font-family: 'changeextralight';
    font-size: 60pt;
    line-height: 50%;
    color: #ffffff;
    text-align: center;
    margin: 20px 20px 20px 0px;
}

/* -----------------------------
   GRID & BOXES
----------------------------- */



.grid-container-wrapper {
  margin-top: 300px;
  border: 0px solid white;
} /* NO */


.bottom-space{
  height:40px;
  flex-shrink:0;
}


.grid-container-nav{
  display:grid;
  grid-template-columns:100%;
  gap:20px;
  padding: 0px 20px;
  max-width: 1200px;
  margin: 20px auto;

  }

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 20px;
  max-width: 1200px;
  min-height: calc(100vh - 460px); /* Resthöhe des Viewports */
  margin: 0 auto;
  border: 0px solid white;
  align-content:stretch;
}


.grid-container > div {
  display: flex;
  flex-direction: column;
 /* justify-content: stretch; */
  background-color: #000000; /* default fallback */
  text-align: left;
  padding: 20px;
  font-size: 30px;
}

.grid-container-text {
  display: grid;
  padding: 20px 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.box{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  line-height:1.2;
  padding:20px;
  grid-template-rows: 1fr auto;
  min-height: 400px; /* feste Mindesthöhe, sorgt für gleiche Höhe in Safari */
}


.box > div{
  display:block;
  line-height:1.1;
  -webkit-font-smoothing: antialiased;
  flex-direction:column;
  justify-content:flex-start;
}

.box a{
  display:block;        /* wichtig */
  line-height:1.1;      /* jetzt wirkt es korrekt */
  margin:0;
  padding:0;
}


.content-wrapper{
  margin-top:300px;
  padding:0 0px;
}

.text-container{
  max-width:1200px;
  margin:0 auto;
  padding:40px;
}

.rot{ background:#E7180B; }
.lila { background-color: #8A0194; }
.pink { background-color: #E61876; }
.bordeaux { background-color: #A3044C; }
.orange { background-color: rgba(252,114,22,1); }

.box.rot { background-color: #E7180B; }
.box.lila { background-color: #8A0194; }
.box.pink { background-color: #E61876; }
.box.bordeaux { background-color: #A3044C; }
.box.orange { background-color: rgba(252,114,22,1); }

.abstand {margin-top:300px;}


/* -----------------------------
   HAMBURGER-MENU
----------------------------- */



.header {
  display: flex;
  justify-content:center;
  align-items: center;
  background-color: #A3044C;
  padding: 10px 5px 10px 20px;
  position: relative;
  z-index: 10;
}

.header.rot {background-color: #E7180B;}
.header.lila { background-color: #8A0194; }
.header.pink { background-color: #E61876; }
.header.bordeaux { background-color: #A3044C; }
.header.orange { background-color: rgba(252,114,22,1); }

.logo_Sara{
  text-align:center;
}


.menu {
  list-style:none;
  display:none;
  flex-direction: column;
  gap:1em;
}

.menu{
  position:absolute;
  top:100%;
  left:0px;
  display:none;
  flex-direction:column;
  line-height:120%;
  gap:0em;
  background:#ff2056;
  padding:0px 20px 10px 20px;
  text-align:left;
  width:auto;
}


.menu li { margin-top:1em; }

.menu-btn { display:none; }

.menu-icon {
  cursor:pointer;
  display:block;
  width:60px;
  height:0px;
  position:absolute;
  left:20px;
  top:48px;               /* Burger bleibt links */
}


.menu-icon .navicon, .menu-icon .navicon:before, .menu-icon .navicon:after {
  content:'';
  display:block;
  height:7px;
  background:#ffffff;
  position:absolute;
  width:100%;
  transition: all .3s ease-out;
}

.menu-icon .navicon:before { top: -1.3em;; }
.menu-icon .navicon:after { top: 1.3em;; }

/* Checkbox checked */
.menu-btn:checked ~ .menu { display:flex; }
.menu-btn:checked ~ .menu-icon .navicon { background:transparent; }
.menu-btn:checked ~ .menu-icon .navicon:before { transform:rotate(-45deg); top:0; }
.menu-btn:checked ~ .menu-icon .navicon:after { transform:rotate(45deg); top:0; }


img{ max-width:100%; height:0px;} 

/* -----------------------------
   RESPONSIVE
----------------------------- */


@media (max-width:1079px) 
{
  body { 
  background-size: 1080px;
  background-position: center top;
  background-repeat: repeat;
  background-image: url("../images/start_p.gif"); }

  .write{  
  background-image: url("../images/write_p.gif");}
  .read{   
  background-image: url("../images/read_p.gif");}
  .do{     
  background-image: url("../images/do_p.gif");}
  .who{    
  background-image: url("../images/who_p.gif");}
  .contact{
  background-image: url("../images/contact_p.gif");}

  img{ max-width:100%; height:0px;} 
    
  .grid-container{
    display:block;
  }
  
  .grid-container-text {
  display: block;
  padding: 20px 20px;
  margin: 300px 20px 0 20px;
}
  .box{
  display:block;
  min-height:auto;
  margin-bottom:20px;   /* Abstand zwischen den Kacheln */
  }
    .box > div{
    display:block;
  }

  .logo_Sara { 
  font-size: 26pt;  
  margin-top:20px; 
  margin-left:auto;   /* Logo nach rechts */
  text-align:right;}

  a:link, a:visited { text-decoration:none; color:#ffffff; font-size:12pt; }

  a.E { font-family:'changeextralight'; font-size:20pt; letter-spacing: 0.01em;}
  a.D { font-family:'changesemibold'; font-size:20pt; letter-spacing: 0.01em;}
  a.I { font-family:'changeextrabold'; font-size:20pt; letter-spacing: 0.01em;}   

  .text { font-family: 'changeextralight'; 
  font-size: 12pt; 
  letter-spacing: 0.01em;
  line-height: 1.3em; 
  text-align: left; 
  color: #ffffff; }
  .textbold {font-family: 'changesemibold'; font-size: 12pt; 
  line-height: 1.3em;  letter-spacing: 0.02em;}
  .textkl { font-family: 'changeextralight'; font-size: 9pt; 
  line-height: 1.3em; text-align: left; color: #ffffff; }
  a.textkl, a.textkl:link, a.textkl:visited { 
  font-family: 'changeextralight'; font-size: 9pt; line-height: 1.3em; 
  text-align: left; color: #ffffff; }
  a.textkl:hover { color: #000000; }

  .menu{
  left:0px;     /* bleibt proportional */
  width:auto;    /* wichtig */
  text-align:left;}

  .menu li { text-align:left; }
  
  .menu-icon {
  cursor:pointer;
  display:block;
  width:30px;
  height:0px;
  position:relative;
  left:0px;
  top:-2px;               /* Burger bleibt links */
}

  .menu-icon .navicon, .menu-icon .navicon:before, .menu-icon .navicon:after {
  content:'';
  display:block;
  height:4px;
  background:#ffffff;
  position:absolute;
  width:100%;
  transition: all .3s ease-out;
}
  .menu-icon .navicon:before { top: -0.7em;; }
  .menu-icon .navicon:after { top: 0.7em;; }

  .header{justify-content:flex-start;}

}

@media (max-width:480px) {
    body { 
    background-position: center top;
	background-repeat: repeat;
    background-size: 600px;
    background-image: url("../images/start_m.gif"); 
    }

  .write {background-image: url("../images/write_m.gif"); }
  .read{  background-image: url("../images/read_m.gif");}
  .do{    background-image: url("../images/do_m.gif");}
  .who{   background-image: url("../images/who_m.gif");}
  .contact{background-image: url("../images/contact_m.gif");}

}
