/* ============================================
   BASE.CSS – globale Styles + Theme Switching
   ============================================ */

/* ------------------------------
   1. Fonts & Global Reset
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&display=swap');

.image-text-block {
  display: flex !important;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start !important; /* Wichtig: erzwingt oben Ausrichtung */
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}


/* Globaler Reset für Margin, Padding und Box-Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth Scroll-Verhalten für die Seite */
html {
  scroll-behavior: smooth;
}

/* ------------------------------
   2. Grundstruktur Body
------------------------------ */
body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  text-align: justify;
  transition: background-color 0.3s, color 0.3s;
}

/* ------------------------------
   3. Farbvariablen – Basis
------------------------------ */
:root {
  --primary: #3f7ecb;        /* Hauptfarbe (Buttons, Links, Highlights) */
  --accent: #ffcc80;         /* Akzentfarbe */
  --link: #aaa;              /* Standard Linkfarbe */
  --link-hover: #ffcc80;     /* Linkfarbe bei Hover */

  --bg: #ffffff;             /* Hintergrund Standard */
  --text: #111111;           /* Textfarbe Standard */
  --box-bg: #f5f7fa;         /* Hintergrund für Boxen / Karten */
  --button-bg: #3f7ecb;      /* Button Hintergrund */
  --button-hover: #2d65a5;   /* Button Hintergrund Hover */
  --box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ------------------------------
   4. Themes: Dark + weitere Varianten
------------------------------ */
body.dark {
  --bg: #0f0f0f;
  --text: #f5f5f5;
  --box-bg: #000000;
  --button-bg: #ff6600;
  --button-hover: #cc5200;
  --box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}


body.theme-blue {
  --bg: #eaf3fb;
  --text: #0f1e35;
  --box-bg: #eaf3fb;
  --button-bg: #3f7ecb;
  --button-hover: #2d65a5;
  --box-shadow: none;
}

body.theme-green {
  --bg: #f1f8f5;
  --text: #133d2e;
  --box-bg: #f1f8f5;
  --button-bg: #38925e;
  --button-hover: #2c7049;
  --box-shadow: none;
}

body.theme-beige {
  --bg: #fdf7f0;
  --text: #3d2f1d;
  --box-bg: #fdf7f0;
  --button-bg: #c29e6c;
  --button-hover: #a97e4a;
  --box-shadow: none;
}


/* ===================================================
   5. Layout & Struktur (Container, Sections, Footer)
=================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 4rem 2rem;
}

/* Spezieller Container für Hauptinhalte */
main.container {
  padding: 4rem 2rem;
  background-color: #4D5154; /* statt #38925e */
  border-radius: 16px;
  max-width: 900px;
  margin: 4rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}


/* Paragraph in main.container mit angepasster Farbe */
main.container p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: -2rem;
  text-align: center;
}

/* Footer mit zentriertem Text */
footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* ===================================================
   6. Typografie, Bilder, Links
=================================================== */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: inherit;
}

p {
  margin-bottom: 1rem;
  max-width: 800px;
}

a {
  color: #ff6600;
  text-decoration: none;
}

a:hover {
  color: var(--button-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ===================================================
   7. Header
=================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--box-bg);
  z-index: 1000;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ===================================================
   8. Buttons
=================================================== */
.btn, .button-wmf {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.btn-orange {
  background-color: #ff6600;
  color: #fff;
}
.btn-orange:hover {
  background-color: #cc5200;
}

.btn-blue {
  background-color: #007bff;
  color: #fff;
}
.btn-blue:hover {
  background-color: #0056b3;
}

.btn-outline {
  background: transparent;
  border: 2px solid #ff6600;
  color: #ff6600;
}
.btn-outline:hover {
  background-color: #ff6600;
  color: #fff;
}

.button-wmf {
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f0f0f;
  background-color: #ffcc80;
}
.button-wmf:hover {
  background-color: #ff6600;
  color: #fff;
}

/* ===================================================
   9. Flip Button (animierter Effekt)
=================================================== */
.flip1-btn {
  perspective: 800px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 160px;
  height: 42px;
  font-family: 'Manrope', sans-serif;
}

.flip1-btn span {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  backface-visibility: hidden;
  border-radius: 50px;
  line-height: 42px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.5s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/*
.flip1-btn span:first-child {
  background: var(--button-bg);
  color: var(--accent);
}
.flip1-btn span:last-child {
  background: var(--button-hover);
  color: #fff;
  transform: rotateX(180deg);
}
*/


.flip1-btn span:first-child {
  background: #2a2a2a;
  color: #ffcc80;
}

.flip1-btn span:last-child {
  background: #134b85;
  color: #fff;
  transform: rotateX(180deg);
}



.flip1-btn:hover span:first-child {
  transform: rotateX(180deg);
}

.flip1-btn:hover span:last-child {
  transform: rotateX(0deg);
}

/* ===================================================
   10. Formulare
=================================================== */
form {
  max-width: 700px;
  margin: 3rem auto;
  background-color: #fdfdfd;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #444;
}

form input, form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-family: 'Manrope', sans-serif;
}

form input:focus, form textarea:focus {
  border-color: #ffcc80;
  outline: none;
  background-color: #fcfcfc;
}

form button {
  background-color: #ffcc80;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
}

form button:hover {
  background-color: #ff9933;
  color: #fff;
}

/*
input[type="text"],
input[type="email"],
textarea,
select {
  height: 2.5rem; 
  line-height: 1.5;
  margin-bottom: 1rem; 
}
textarea {
  height: 6rem; 
}
*/

/* Entfernen der festen Höhe für Input-Felder */
input[type="text"],
input[type="email"],
textarea,
select {
  height: auto; /* Flexibel statt feste Höhe */
  line-height: 1.5;
  margin-bottom: 1rem; /* Mehr Abstand */
}


/* ===================================================
   11. Download-Buttons
=================================================== */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--button-bg);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  margin: 2rem auto;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: var(--button-hover);
}

.download-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ===================================================
   12. Fix: Bild/Text gleich hoch in .image-text-block
=================================================== */

.image-text-block {
  display: flex;
  align-items: stretch;
}

.image-text-block .image,
.image-text-block .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-text-block .image img {
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}


/*NEU - Test*/
.image-text-block .text {
  background-color: var(--box-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
}



/* ===================================================
   13. Theme Toggle Button (unten rechts)
=================================================== */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 10px 20px;
  background-color: var(--button-bg);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: var(--button-hover);
}

/* Theme Background & Text Farben für verschiedene Themes */
body.theme-blue,
body.theme-green,
body.theme-beige {
  background-color: var(--bg);
  color: var(--text);
}

body.dark {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}


/* Redundante Regeln für Theme-Toggle */
.theme-toggle {
  background-color: var(--button-bg);
}
.theme-toggle:hover {
  background-color: var(--button-hover);
}

/* ===================================================
   14. Theme Toggle Button (Details)
=================================================== */

.detailsWrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.detailsWrapper.show {
  max-height: 1000px; /* ausreichend hoch für Inhalte */
}

.toggleDetails {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--button-bg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 1rem 0;
}

.toggleDetails .chevron {
  width: 1em;
  height: 1em;
  transition: transform 0.3s ease;
}

.detailsWrapper.show + .chevron,
.toggleDetails[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}



.file-list {
    margin: 1em 0;
    padding: 0.5em;
    list-style: none;
    color: #333; /* gut lesbar, dunkel */
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.file-list li {
    margin-bottom: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d35400; /* z. B. dark orange */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn:hover {
    background: #e67e22;
}



.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1em;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  flex-wrap: wrap;
}

.site-logo {
  height: 48px;
  width: auto;
  display: block;
}

.logo-link {
  display: inline-block;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  flex-grow: 1;
  margin: 0 1em;
  white-space: nowrap;
}

.main-nav {
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 6em; /* bisher 1.5em */
}

.nav-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding-bottom: 0.2em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}


.nav-list li a:hover,
.nav-list li a.active,
.nav-list li a[aria-current="page"] {
  color: #d35400;
  border-bottom-color: #d35400;
}

/* ===================================================
   15. Mobile Fix für image-text-block
=================================================== */

@media (max-width: 768px) {
  .image-text-block {
    flex-direction: column;
    align-items: center;
  }

  .image-text-block .image,
  .image-text-block .text {
    width: 100%;
    max-width: 100%;
  }

  .image-text-block .image img {
    width: 100%;
    height: auto;
  }
}

.image-text-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}



/* Bei reverse wechseln Bild und Text */
.image-text-block.reverse {
  flex-direction: row-reverse;
}

/* Auf Mobil immer untereinander */
@media (max-width: 768px) {
  .image-text-block,
  .image-text-block.reverse {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Bilder und Text etwas schöner */
.image-text-block .image,
.image-text-block .text {
  flex: 1 1 45%;
}

/* Bild immer schön skaliert */
.image-text-block .image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Textblock mit maximaler Breite */
.image-text-block .text {
  max-width: 600px;
}



/* ===================================================
   16. Verschiebungen für ungerade / gerade Blöcke
=================================================== */
.image-text-block:nth-of-type(odd) .text {
  transform: translateX(-5%);
}
.image-text-block:nth-of-type(even) .text {
  transform: translateX(5%);
}

.image-text-block:nth-of-type(odd) .text {
  transform: translateY(15px);
}

.image-text-block:nth-of-type(even) .text {
  transform: translateY(-15px);
}


@media (max-width: 768px) {
  .image-text-block .text {
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
  }
}


/* ================================================
   Mobile Navigation fix: Spalte & zentriert
================================================= */
@media (max-width: 768px) {
  header.site-header nav.main-nav ul.nav-list {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  header.site-header nav.main-nav ul.nav-list li a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    padding: 0.5rem 0 !important;
  }
}


