/* ===============================
   Farb- & Basisvariablen
=============================== */
:root {
  --orange: #f6a736;
  --text: #333;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --dark-bg: #121212;
  --dark-text: #f0f0f0;
  --dark-section: #1f1f1f;
  --header-bg: #e0e0e0;
  --box-red: #FF9999;
  --box-green: #85FF7F;
}

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

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

a {
  color: var(--orange);
  text-decoration: none;
}

/* ===============================
   Vergleichsboxen (Probleme vs Lösungen)
=============================== */
.problem-solution-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.problem-box,
.solution-box {
  width: 100%;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
}

.problem-box {
  background-color: var(--box-red);
  text-align: right;
}

.solution-box {
  background-color: var(--box-green);
  text-align: left;
  margin-top: 8rem;
}

ul.icon-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul.icon-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

ul.icon-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

ul.icon-list.right li {
  padding-left: 0;
  padding-right: 2rem;
  text-align: right;
}

ul.icon-list.right li::before {
  left: auto;
  right: 0;
  color: #d00000;
}

.solution-box ul.icon-list li::before {
  color: #28a745;
}

@media (min-width: 769px) {
  .problem-solution-grid {
    flex-direction: row;
    justify-content: space-between;
  }
  .problem-box {
    align-self: flex-start;
  }
  .solution-box {
    align-self: flex-end;
    margin-top: 10rem;
  }
  .problem-box,
  .solution-box {
    width: 48%;
  }
}




/* ===============================
   Header / Navigation
=============================== */
.site-header {
  background: var(--header-bg);
  padding: 0.25rem 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-height: 80px;
  z-index: 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.logo-box {
  background: white;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  margin: -40px auto 2rem auto; /* leicht in den grauen Bereich rein */
  position: relative;
  z-index: 1;
}

.legal-note {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;  /* kleiner Abstand zum Logo */
  line-height: 1.3;
}



.logo-box .logo {
  max-width: 220px;
  margin-bottom: 0.5rem;
}

.legal-note {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1;
  margin-left: auto;
  flex-wrap: wrap;
}


.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-weight: bold;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: #333;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.nav a:hover {
  opacity: 0.8;
}

.login-button-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.login-button-area a {
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  margin-left: 1rem;
}

/* ===============================
   Hero, Abschnitte, Buttons, usw.
=============================== */
.hero {
  background-size: cover;
  background-position: top center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  text-align: center;
  padding: 2rem;
}

.section {
  padding: 3rem 0;
}

.flex-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.section.reverse .flex-section {
  flex-direction: row-reverse;
}

.image {
  flex: 1 1 45%;
}

.text {
  flex: 1 1 45%;
  min-width: 280px;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li::before {
  content: '';
  margin-right: 0.5rem;
}

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

ul.icon-list.right {
  text-align: right;
}

ul.icon-list.right li {
  padding-left: 0;
  padding-right: 2rem;
}

ul.icon-list.right li::before {
  content: attr(data-icon);
  position: absolute;
  right: 0;
  color: #d00000;
}

ul.icon-list li::before {
  font-size: 1.1rem;
  line-height: 1.3;
}

ul.icon-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul.icon-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

ul.icon-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  color: #28a745; /* grün für ✔️ */
}




.btn-primary {
  background: var(--orange);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #e6961f;
}

.btn-secondary {
  background: #e6961f;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  display: inline-block;
}

.btn-secondary:hover {
  background: #777;
}

.cta {
  padding: 3rem 0;
  text-align: center;
}

.site-footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.site-footer a {
  color: var(--orange);
}

/* ===============================
   Dark Mode
=============================== */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .site-header,
body.dark-mode .site-footer {
  background-color: #1a1a1a;
}

body.dark-mode .hero-overlay,
body.dark-mode .cta,
body.dark-mode .section {
  background-color: var(--dark-section);
}

body.dark-mode a {
  color: var(--orange);
}

body.dark-mode .btn-primary {
  background-color: #e6951f;
  color: white;
}

#darkModeToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}


/* ===============================
   Responsive
=============================== */
@media (max-width: 768px) {
  .flex-section {
    flex-direction: column;
  }

  .section.reverse .flex-section {
    flex-direction: column;
  }

  .text, .image {
    flex: 1 1 100%;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
  }

  .login-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  }

  body.dark-mode .login-box {
    background: #1f1f1f;
    color: #f0f0f0;
    border: 1px solid #333;
  }

  .login-box h1 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    text-align: center;
  }

  .login-box p {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contact-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .contact-form input[type="text"],
  .contact-form input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  body.dark-mode .contact-form input {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #555;
  }

  .intern-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  body.dark-mode .btn-secondary {
    background: #444;
  }
}

/* ===============================
   Abstände & Lesbarkeit
=============================== */

p {
  margin-bottom: 1rem;
}

p.tight {
  margin-bottom: 0rem;
}

ul,
.text-block,
.flex-section {
  margin-bottom: 5rem;
  margin-bottom: 3rem;
}

.text-block h2,
.text h2,
.text h3 {
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-primary {
  margin-top: 2.5rem;
}

/* Dashboard-Sektion */
.dashboard-box {
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 1000px;
}

/* Navigation im Dashboard */
.dashboard-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}
.dashboard-nav a {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
}
.dashboard-nav a:hover {
  background: #e6961f;
}

/* Datei-Liste */
.file-list ul {
  padding-left: 1.2rem;
}
.file-list li {
  margin-bottom: 0.5rem;
}
.file-list a {
  color: var(--text);
  text-decoration: underline;
}
body.dark-mode .file-list a {
  color: var(--dark-text);
}

