/*
Theme Name: Rena
Author: Verena Friedrich
Version: 1.0
*/

/* ================================
   Grundschriften und Body
================================ */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* ================================
   Header Menu
================================ */

/* Header Layout */
.site-header {
    display: flex;
    justify-content: space-between; /* Logo links, Menü rechts */
    align-items: center;
    /* padding: 1rem 2rem;  die erste Zahl ist abstand nach oben die zweite abstand nach rechts/links */
	padding: 15px 20px;         /* links/rechts Abstand zu Rand/Logo */

}

/* Logo / Name links */
.logo-left a {
    font-weight: bold;
	/* dynamische Skalierung für Mobile & Desktop 
	 * font-size: clamp(MIN, IDEAL, MAX); */
    /*font-size: clamp(0.9rem, 4vw, 1.1rem); */
	font-size: 1rem; /* feste Größe, nicht dynamisch */
	text-decoration: none;
    color: #000;
	white-space: nowrap; /* verhindert Zeilenumbruch */
}

/* Menü rechts */
.menu-right .header-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-right .header-nav li a {
    text-decoration: none;
    color: #000;          /* normale Schriftfarbe */
    font-weight: 500;
    position: relative;   /* für das Underline-Pseudoelement */
    transition: color 0.2s;
}

/* Underline beim Hover */
.menu-right .header-nav li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;       /* Abstand zur Schrift */
    width: 0;
    height: 2px;
    background-color: #00ff00; /* giftgrün wie bei 2023 */
    transition: width 0.3s;
}

.menu-right .header-nav li a:hover::after {
    width: 100%;
}

/* Unterstrich für aktuell aktive Seite */
.menu-right .header-nav li.current-menu-item > a::after {
    width: 100%;
}

/* Mobile Anpassungen */
@media (max-width: 600px) {
    .site-header {
        padding: 0.5rem 1rem;
    }

    .menu-right .header-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/*
Minimal-CSS für Project Grid
3-Spalten-Grid, das responsive ist. Später z.B. Media Queries einfügen, um auf Handys 1 Spalte anzuzeigen.
*/

/* Projekte Übersicht */
.projects-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.projects-grid {
    /* display: flex;
    flex-wrap: wrap;
    gap: 20px; */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
	margin-top: 2rem;
}

.project-item {
	/* Spalten Grid 
    width: calc(33% - 20px); 
    box-sizing: border-box;  */ 
	display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
    border: 0px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/*
.project-item img {
    max-width: 100%;
    height: auto;
    display: block;
} */ 


.project-item:hover {
    transform: translateY(-4px); /* Hüpfer */ 
}

.project-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
	display: block;
}

.project-info {
    padding: 1rem;
}

/*.project-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}*/

/* Titel mit Hover-Unterstrich */
.project-title a {
    text-decoration: none;
    color: #000;
    position: relative;
}

.project-title a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #00ff00; /* giftgrün */
    transition: width 0.3s;
}

.project-title a:hover::after {
    width: 100%;
}


.project-excerpt {
    font-size: 0.95rem;
    color: #666;
}

.project-year,
.project-medium {
    font-size: 0.9rem;
    /* color: #666; */
    margin: 0 0 0.3rem 0;
}

/*
Minimal-CSS für Projects Einzelansicht
*/

/*
.project-single {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.project-single h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.project-description {
    font-style: italic;
    margin-top: 15px;
}
*/

/* Single Project */
.single-project {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.single-project h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.single-project-thumb img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.single-project-fields p {
    font-size: 0.95rem;
    margin: 0.2rem 0;
}

.single-project-content {
    margin-top: 2rem;
    line-height: 1.6;
}



/* ================================
   News
================================ */

.news-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* Text links oben ausrichten */
  padding: 0 20px;         /* 2. zahl ist links/rechts Abstand zu Rand */
  margin-top: 100px;       /* Abstand nach oben zur Menüleiste */
  box-sizing: border-box;
}

/* Textspalte links */
.news-text-column {
  flex: 1 1 30%;           /* Linke Spalte: Textinfos */
  padding-right: 20px;     /* Abstand zur Bildspalte */
}

/* Bildspalte rechts (Masonry Layout) */
.news-image-column {
  flex: 2 1 70%;           
  column-count: 3;         /* 3 Spalten */
  column-gap: 20px;        /* horizontaler Abstand zwischen Spalten */
}

.news-item-image {
  display: inline-block;   /* für Masonry nötig */
  width: 100%;
  margin-bottom: 20px;     /* vertikaler Abstand zwischen Bildern */
}

.news-item-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;      /* optional für abgerundete Ecken */
  object-fit: cover;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);	
  opacity: 0.85; 
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.2s ease; /* transform für Hüpfer */
}

.news-item-image:hover img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px); /* Hüpfer */ 

}

/* ================================
   News Responsive
================================ */
@media (max-width: 900px) {
  .news-wrapper {
    flex-direction: column;
    margin-top: 30px;
	/* padding: 0 20px;  */
  }
  .news-text-column, .news-image-column {
    flex: 1 1 100%;
    padding-right: 0;
  }
  
  /* Masonry-Spalten anpassen */
  .news-image-column {
    column-count: 2;
    column-gap: 20px;
  }
}

@media (max-width: 500px) {
  .news-image-column {
    column-count: 2; /* war vorher 2 */
    column-gap: 20px;
    /* padding: 0 20px; 20px links/rechts auf Mobile */

  }
}

/* ================================
   News Text Styling
================================ */
.news-item-text h2 {
  margin: 0 0 6px 0; 
  line-height: 1.2;  
}

.news-item-text h2 a {
  text-decoration: none;
  text-transform: uppercase;
  color: #000;        
  font-weight: 500;   
  font-size: 1rem;  
  position: relative;
  transition: color 0.2s;
}

.news-item-text h2 a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;       
  width: 0;
  height: 2px;
  background-color: #00ff00; 
  transition: width 0.3s;
}

.news-item-text h2 a:hover::after {
  width: 100%;
}

.news-item-text h2.current-post > a::after {
  width: 100%;
}

/* Datum, Ort, Typ kleiner und dezent */
.news-date,
.news-location,
.news-type {
  color: #000;       
  font-size: 1rem;
  display: block;
  margin: 0 0 6px 0; 
  line-height: 1.2;
}

/* Link (News-Link) wie Menü-Hover */
.news-link {
  display: inline-block;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  margin-bottom: 20px; /* Abstand zwischen Newsitems */ 
}

.news-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #00ff00;
  transition: width 0.3s;
}

.news-link:hover::after {
  width: 100%;
}


/* ================================
   About Page
================================ */

.about-page {
    max-width: 800px; /* zentriert den Text */
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Grundschriften', sans-serif; /* gleiche Typo wie dein Menü */
    line-height: 1.6;
}

.about-page h1 {
    font-size: 1rem;
    /*margin-bottom: 1.2rem;*/
	text-transform: uppercase;
	text-decoration: none;
    color: #000;
	/* white-space: nowrap;  verhindert Zeilenumbruch */
}

.about-page .page-text {
	/* das hier hab ich gemacht um die Breite des Textes auf der About page kontrollieren zu können */
	max-width: 800px;    /* Breite für bessere Lesbarkeit, war vorher 800  */
    margin: 0 auto;      /* zentriert auf der Seite */
    column-count: 1;     /* Standard: 1 Spalte für Handy */
    column-gap: 2rem;    /* Abstand zwischen Spalten, wenn zwei Spalten */
    font-size: 1rem;
    line-height: 1.6;
}

/* Desktop: ab 1024px Bildschirmbreite zweispaltig 
@media screen and (min-width: 1024px) {
.about-page .page-text {
        column-count: 2;   /* zwei Spalten auf großen Bildschirmen 
        font-size: 1.1rem;
        line-height: 1.8;
    }
}*/

.about-page .about-image {
    text-align: center;
    margin-bottom: 2rem;
}

.about-page .about-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* ================================
   Fullscreen Slider 
================================ */

/*
.homepage-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}*/

.homepage-slider .slide {
    position: absolute;
    top: 20;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.homepage-slider .slide.active {
    opacity: 1;
    /* z-index: 2;*/
}

/* Skalierung auf Browserfenster*/
.homepage-slider img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Angabe photo credit zu Bildern */
.slide-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: #aaa;
    font-size: 12px;
    text-align: right;
    background: rgba(0,0,0,0.3);
    padding: 3px 6px;
}






