/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Radlush';
  src: url('../Fonts/Radlush-ExtraBold.ttf') format('truetype');
  font-weight: 800;
}

@font-face {
  font-family: 'Radlush';
  src: url('../Fonts/Radlush-SemiBold.ttf') format('truetype');
  font-weight: 600; 
}

@font-face {
  font-family: 'InstrumentSerifItalic';
  src: url('../Fonts/InstrumentSerif-Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'ZT Nature';
  src: url('../Fonts/ZTNature-ExtraBold.woff2') format('woff2'),
       url('../Fonts/ZTNature-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}


/* ---------- Global ---------- */
html {
  scroll-behavior: smooth; /* Smooth Scroll bleibt */
  height: 100%;            /* Voller Viewport */
}

body {
  margin: 0;
  padding: 0;
  background-color: #202826;
  font-family: Arial, sans-serif;
  color: #fff;
  height: 100%;            /* Voller Viewport */
  overflow: hidden;        /* OPTIONAL: verhindert globales Scrollen, wenn gewünscht */
}

/* Globale Box-Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- Layout ---------- */
.container {
  display: flex;
  height: 100vh;
  flex-direction: row;
  position: relative;
  margin: 0; /* Kein äußerer Rand */
}

.left,
.right {
  padding: 0;              /* Padding außen entfernen */
  border: none;            /* Äußeren schwarzen Rand entfernen */
  display: flex;
  flex-direction: column;
}

.left {
  flex: 1;
  max-width: 60%;
  background-color: #cfd3d1;
  position: relative;
  display: flex;
  flex-direction: column;
  color: black;
  overflow: hidden;
  border-right: 2px solid black; /* nur die Trennung zur rechten Seite */
  padding: 20px;
}

.right {
  flex: 1;
  max-width: 40%;
  background-color: #cfd3d1;
  display: flex;
  flex-direction: column;
  color: black;
  padding-left: 20px; 
  padding-right: 20px;
  height: 100%; 
  min-height: 0; /* WICHTIG für Flexbox Scroll */
  overflow: hidden; /* verhindert globales Scrollen, rechte Spalte scrollt intern */
}



/* ---------- Navigation ---------- */
.right-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  font-family: 'Radlush', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 100;
  border: none;
  background-color: rgba(207, 211, 209, 0.95);
  backdrop-filter: blur(5px);
}

.right-nav a {
  color: black;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.2s ease;
}

.right-nav a:hover {
  color: #666;
}

.nav-divider {
  color: black;
  margin: 0 6px;
}

/* ---------- Scrollbarer rechter Bereich ---------- */
.right-scroll-content {
  flex: 1;             /* füllt Höhe der rechten Spalte */
  min-height: 0;       /* WICHTIG: Scroll funktioniert */
  overflow-y: auto;    /* scrollt nur rechts */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-right: 34px;
}


.right-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.right-scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.right-scroll-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
}

.right-scroll-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.7);
}



/* ---------- Überschriften ---------- */
h1 {
  font-family: 'Radlush', sans-serif;
  font-size: 5.6em;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 0.8;
  text-transform: uppercase;
}

h1 br {
  content: "";
  margin-bottom: 0.2em;
  display: block;
}

.section-heading {
  font-family: 'InstrumentSerifItalic', serif;
  font-size: 2em;
  text-transform: uppercase;
  margin-bottom: 0; /* Abstand zwischen Überschrift und Box */
  padding-bottom: 0;
  padding-left: 5px;
}

/* ---------- Newsletter Spiral-Button ---------- */
.newsletter-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  border: 2px solid black;
  border-radius: 50%;
  background-color: transparent;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
}

.newsletter-button:hover {
  animation: gentle-shake-fast 0.2s ease-in-out infinite;
  /* JS kann hier den Sound triggern */
}

.spiral-svg {
  width: 100%;
  height: 100%;
  animation: rotateReverse 12s linear infinite;
}

.spiral-text {
  font-family: 'Untyped', sans-serif;
  font-size: 16px;
  fill: black;
  letter-spacing: 1.5px;
}

.spiral-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}

@keyframes rotateReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  animation: rotateForward 12s linear infinite;
  z-index: 2;
  transition: transform 0.05s ease-out;
}

.inner-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes rotateForward {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes gentle-shake-fast {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-0.5px, 0.5px) rotate(-0.3deg); }
  40%  { transform: translate(0.5px, -0.5px) rotate(0.3deg); }
  60%  { transform: translate(-0.4px, 0.4px) rotate(-0.2deg); }
  80%  { transform: translate(0.4px, -0.4px) rotate(0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ---------- Newsbereich ---------- */
/* ---------- Newsbereich ---------- */
.news-box {
  background-color: #cfd3d1;
  padding: 5px;           /* wie vorher, Safari ok */
  border-radius: 5px;
  border: 2px solid black;
  overflow-y: auto;
  color: black;
  font-size: 1.1em;
  line-height: 1.5;
  height: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  flex-direction: column; 
  gap: 10px;             /* leicht verkleinert */
  margin-bottom: 25px;
  align-items: center;    
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #000;
}

.news-item:last-child {
  border-bottom: none;
}

.news-text {
  width: 100%;
  max-width: 800px;        
  text-align: left;
  margin: 0 auto;
}

.news-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 5px;         /* minimaler Abstand außen */
  box-sizing: border-box;
  flex-shrink: 0;
}

.news-image-side img {
  width: auto;
  max-width: 90%;             /* maximal 90% der Boxbreite */
  max-height: 100%;           /* passt sich Containerhöhe an */
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 5px;
  margin: 0 auto;             /* zentriert horizontal */
  flex-shrink: 0;             /* verhindert Firefox-Verkleinerung */
}

/* ---------- Querformat-News-Item ---------- */
.news-item.landscape {
  display: flex;
  flex-direction: column;        /* Bild über Text */
  align-items: center;           /* horizontal zentrieren */
  gap: 10px;                     /* minimaler Abstand zwischen Bild und Text */
  width: 100%;
  max-height: none;              /* verhindert Firefox-spezifisches Überschreiten */
}

/* Bild-Container */
.news-item.landscape .news-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 55vh;              /* maximale Höhe des Containers */
  padding: 5px;                  
  box-sizing: border-box;
}

/* Bilder */
.news-item.landscape .news-image-side img {
  width: auto;
  max-width: 90%;               /* passt sich Boxbreite an */
  max-height: 100%;             /* jetzt relativ zum Container */
  object-fit: contain;
  display: block;
  border-radius: 5px;
  margin: 0 auto;
}




/* Scrollbar Styling */
.news-box::-webkit-scrollbar {
  width: 4px;
}

.news-box::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3);
  border-radius: 2px;
}

.news-box::-webkit-scrollbar-track {
  background: transparent;
}

.news-box a {
  color: black;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s ease, transform 0.2s ease;
}

.news-box a:hover {
  color: #666;
  transform: translateX(3px);
}


/* ---------- Rechte Sections / Boxen ---------- */
.section-box {
  background-color: #cfd3d1;
  padding-top: 25px;    /* Abstand oben vom Box-Rand zum Text */
  padding-right: 10px;  /* Abstand rechts vom Box-Rand zum Text */
  padding-bottom: 10px; /* Abstand unten vom Box-Rand zum Text */
  padding-left: 5px;   /* Abstand links vom Box-Rand zum Text */
  border-radius: 5px;
  border: 2px solid black;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Dim / Highlight Verhalten für rechte Sections */
.right-half-sections > section.section-dimmed {
  opacity: 0.28;
  transition: opacity 220ms ease;
  /* keine pointer-events: none — Links sollen klickbar bleiben */
}

.right-half-sections > section.section-focused {
  opacity: 1;
  transition: opacity 220ms ease;
}

/* Optional: kleine visuelle Verstärkung für Fokus (Shadow / Border) */
.right-half-sections > section.section-focused .section-box {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: box-shadow 220ms ease;
}

/* Aktives Nav-Link Styling */
.right-nav a.active {
  color: #444;
  text-decoration: none;
}



/* ---------- Projekte ---------- */
.project-list {
  list-style-type: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-weight: bold;
}

.project-list li {
  font-family: 'ZT Nature', sans-serif;
  font-weight: 1300;
  margin-bottom: 10px;
  font-size: 1.6em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Termine ---------- */
.termine-list {
  list-style-type: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-family: 'ZT Nature', sans-serif;
  font-weight: 600;
  font-size: 1.6em;
}

.termine-list li {
  margin-bottom: 10px;
}

.termin-datum {
  font-size: 0.7em;
  font-weight: 400;
  color: #555;
  display: inline-block;
  margin-bottom: 2px;
}

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

/* ---------- Über ---------- */
.ueber-text {
  font-family: Arial, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

/* ---------- Kontakt ---------- */
.kontakt-text {
  font-family: Arial, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 10px;
}

.kontakt-text a {
  color: black;
  text-decoration: none;
  font-weight: 400;
}

.kontakt-text a:hover {
  text-decoration: underline;
  color: #444;
}

/* ---------- Hover-Effekt Projekte/Termine ---------- */
.project-list a,
.termine-list a {
  display: inline-block;
  color: black;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.project-list a:hover,
.termine-list a:hover {
  transform: translateX(6px);
  color: #666;
}

/* ---------- Divider ---------- */
.divider-wave {
  width: 100%;
  height: 40px;
  margin: 20px 0;
  background: url('images/wave-divider.svg') no-repeat center;
  background-size: contain;
}

/* ---------- Footer ---------- */
.dve-footer {
  position: absolute; /* fixiert innerhalb der linken Spalte */
  bottom: 0;          /* immer unten in der Spalte */
  left: 0;
  width: 100%;        /* volle Breite der linken Spalte */
  padding: 10px 20px 10px 20px;
  background-color: #cfd3d1;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  color: black;
  border-top: none;
  box-sizing: border-box;
}


.dve-footer a {
  font-weight: normal;
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dve-footer a:hover {
  color: #444;
  text-decoration: none;
}

.right-scroll-content > * {
  transition: opacity 0.3s ease;
}

/* Unsichtbarer Abstand am unteren Ende, damit alle Sections korrekt "oben" einrasten */
.scroll-spacer {
  height: 70vh;    /* genug Platz zum Weiter-Scrollen */
  width: 100%;
  flex-shrink: 0;
}

.right-section {
  scroll-margin-top: 0 !important;
}

/* Einheitliche Innenabstände — wichtig für identische Scrollhöhe */
.right-section h1,
.right-section h2,
.right-section h3 {
    padding-top: 120px;  /* exakt gleich viel wie dein sticky-header */
    margin-top: -120px;  /* kompensiert das Padding → wirkt wie scroll-margin */
}