:root {
  /* Doppelte Definition entfernt, den helleren Ton gewählt */
  --bg-color: #FBFBFB;
  --text-color: #1a1a1a;
  --accent-color: #777777;
  --light-grey: #f2f3f4;
  --font-serif: "Georgia", serif;
  --font-sans: 'Raleway', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* raleway-thin - latin */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/raleway-v37-latin-regular.woff2') format('woff2');
}

/* raleway-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/raleway-v37-latin-regular.woff2') format('woff2');
}

/* raleway-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/raleway-v37-latin-500.woff2') format('woff2');
}

/* raleway-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/raleway-v37-latin-700.woff2') format('woff2');
}

/* Der main-Bereich füllt den Platz, damit der Footer unten bleibt */
main {
  flex: 1;
  width: 100%;
}

/* Dokumenten-Container (Bio/Feeling) */
.document-container {
  background-color: white;
  padding: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 20px auto;
}

/* Typografie */
.author-name {
  font-weight: bold;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.headline {
  color: #615353; /* Der braune Ton aus dem Bild */
  font-weight: bold;
  font-size: 1.4em;
  margin-bottom: 25px;
}

.poem-section {
  margin-bottom: 20px;
}

.image-placeholder {
  width: 100%;
  height: auto;
  margin: 30px 0;
  display: block;
}

.cta-button {
  display: block;
  width: 280px;
  padding: 20px;
  text-align: center;
  border: 1px solid black;
  text-decoration: none;
  color: black;
  transition: all 0.3s;
  margin: 40px auto;
}

.cta-button:hover {
  background: var(--accent-color);
  color: white;
}

/* --- NAVIGATION BASIS --- */
nav {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  width: 100%;
  justify-content: space-between;
  padding: 1.5rem 5%;
}

.logo {
  font-family: var(--font-sans);
  font-size: 2.0rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a, .nav-links span, .nav-links li {
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1;
  display: flex;
  align-items: center;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-color);
  margin-left: 1rem;
}

.active-lang {
  font-weight: bold;
}

/* DESKTOP: Hamburger verstecken */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* --- MOBILE VIEW: unter 768px --- */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    right: -100%;
    visibility: hidden;
    top: 0;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.4s ease-in-out, visibility 0.4s ease-in-out;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 1050;
  }
  
  .nav-links.active {
    right: 0 !important;
    visibility: visible !important;
  }
  
  .nav-links li a {
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 5px 20px;
  }
  
  .lang-switch {
    font-size: 1.3rem;
    margin-top: 25px;
    border-top: 1px solid #eee; /* Feine Linie wie in der Vita */
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* Korrektur: Unverschachtelt, damit die Textgrößen auf Handys wieder stimmen */
  .lang-switch span, 
  .lang-switch a {
    font-size: 1.3rem !important;
    letter-spacing: 1px;
    padding: 5px 8px;
  }
  
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  body.menu-open {
    overflow: hidden;
  }
} /* Hier schließt die mobile Media-Query jetzt sauber ab */

/* TABLET VIEW: 768px bis 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  nav {
    padding: 1.5rem 5%;
  }
  .nav-links {
    gap: 1.2rem;
  }
}

/* --- SEKTIONEN --- */
section {
  /*padding: 2rem 5%;*/
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-family: var(--font-sans);
  font-size: 3rem;
  margin: 1.5rem 1rem;
  font-weight: normal;
  text-align: center;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

/* ==========================================================================
 3. WERKE - LANDING GRID (5 Spalten)
 ========================================================================== */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 2rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.landing-item {
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: opacity 0.3s;
}

.landing-item:hover {
  opacity: 0.7;
}

.landing-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

.landing-item p {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
  padding: 2.5rem 5%;
  background-color: var(--light-grey);
  color: var(--accent-color);
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid #eee;
  width: 100%;
  margin-top: auto;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 1px;
  font-size: 0.75rem;
  transition: color 0.3s;
  display: inline-block;
  margin: 5px;
}

.footer-author {
  text-align: right;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 40px;
  padding-right: 50px;
}

footer p, footer div, footer a {
  margin-bottom: 0;
  display: inline-block;
}

/*main, section, footer {
  overflow: hidden;
}*/

.p-gap {
  margin-bottom: 1.1em !important;
}

.p-loose {
  line-height: 1.5;
}

.bio-main-container {
  max-width: 1000px;
  margin: 0 auto;
  /*padding: 100px 5%;*/
  display: block;
}

.bio-layout {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

.bio-col {
  flex: 1;
}

.text-right {
  text-align: right;
}

.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Trennlinie zwischen Bio und Vita */
.separator {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 60px 0;
}

.vita-title {
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 40px;
  font-weight: 300;
  font-size: 1.8rem;
}

.vita-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.vita-category h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 5px;
  color: #333;
}

.vita-category ul {
  list-style: none;
  padding: 0;
}

.vita-category li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
}

.vita-category li ostrong, 
.vita-category li strong {
  color: #555555;
  display: inline-block;
  width: 100px;
}

.exhibitions li span {
  font-weight: bold;
  margin-right: 15px;
  display: inline-block;
  width: 50px;
}

/* Mobile Anpassungen für die Bio-Inhalte */
@media (max-width: 768px) {
  .vita-category li strong {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }
  
  .bio-main-container {
    padding: 50px 5%;
  }
  
  .bio-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .bio-col.text-right {
    text-align: center !important;
  }
}

/* --- Masonry-Effekt --- */
.masonry-gallery {
  column-count: 3;
  column-gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 50px;
  text-align: center;
}

.masonry-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- TEXTSEITEN (Datenschutz / Impressum) --- */
.content-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 5%;
  line-height: 1.6;
}

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.content-page h2 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--text-color);
}

.content-page p, .content-page li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.content-page ul {
  margin-left: 20px;
  margin-bottom: 1.5rem;
}

.notice {
  background: #f6f8fa;
  padding: 12px 16px;
  border-left: 4px solid var(--accent-color);
  margin: 20px 0;
  font-size: 0.9rem;
}

.footer-links-container {
  margin-top: 10px;
}

.content-page a {
  color: #0366d6;
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

.content-page address {
  font-style: normal;
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
 6. RESPONSIVE DESIGN (Allgemein)
 ========================================================================== */
@media (max-width: 1024px) {
  .landing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .landing-grid {
    grid-template-columns: 1fr;
  }
  .masonry-gallery {
    column-count: 1;
  }
}

/* --- KONTAKTFORMULAR STYLING --- */
.minimalist-form {
  max-width: 600px;
  margin: 0 auto;
  /*padding: 40px 5%;*/
  text-align: center;
}

.minimalist-form form {
  text-align: left;
  margin-top: 40px;
}

.minimalist-form input, .minimalist-form textarea {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
}

.minimalist-form input:focus, .minimalist-form textarea:focus {
  border-color: var(--accent-color);
}

.minimalist-form button {
  display: block;
  margin: 20px auto 0;
  padding: 15px 50px;
  border: 1px solid var(--text-color);
  background: none;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: var(--font-sans);
}

.minimalist-form button:hover {
  background: var(--text-color);
  color: #fff;
}

@media screen and (max-width: 768px) {
  .navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15px;
  }
  .navbar-nav {
    text-align: left;
    width: 100%;
  }
}