body {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
  transition: margin-left 0.3s ease;
  margin-left: 250px; /* Platz für Sidebar */
}

/* Header */
#page-header {
  text-align: center;
  padding: 0px 20px 0;
}

.logo-heading {
  font-size: 36px;
  font-weight: 800;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: auto;
}

.subtitle {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  color: #444;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #e0e0e0;
}

/* Feature Boxen */
#feature-boxes {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

.feature {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  width: 260px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  border: 1px solid #e0e0e0;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.feature i {
  display: block;
  font-size: 32px;
  color: #1976d2;
  margin-bottom: 12px;
}

.feature p {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin: 0;
}

/* Upload-Bereich */
#upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 20px;
}

form {
  margin-top: 20px;
}

input[type="file"] {
  display: none;
}

#drop-area {
  width: 600px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background-color: #e0f0ff;
  border: 2px dashed #1976d2;
  border-radius: 18px;
  box-shadow: 0 0 30px 8px rgba(25, 118, 210, 0.35);
  padding: 30px 30px 10px 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

#drop-area.hover {
  border: 2px dashed #64b5f6;
  background-color: #f0f8ff;
  transition: all 0.2s ease;
}

.pdf-icon-row img {
  width: 60px;
  height: auto;
  margin: 0 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.pdf-icon-row img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#upload-ui p {
  font-size: 16px;
  font-weight: 600;
}

#fancy-upload-btn {
  background-color: #1976d2;
  color: white;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  padding: 10px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
}

#fancy-upload-btn:hover {
  background-color: #125aa3;
}

#fancy-upload-btn .icon {
  font-size: 18px;
  color: white;
}

/* Sidebar Toggle Button */
#sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  cursor: pointer;
}

.menu-icon {
  font-size: 28px;
  color: #1976d2;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1); /* Schatten bleibt */
  border-right: 1px solid #e0e0e0;          /* dünner Rand rechts */
  padding: 30px 20px 20px;
  transition: left 0.3s ease;
  z-index: 1000;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


#sidebar.active {
  left: 0;
}

#sidebar .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  float: right;
  cursor: pointer;
  color: #1976d2;
}

/* Sidebar Items */
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

#sidebar ul li i {
  color: #1976d2;
  font-size: 20px;
}

#sidebar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

#sidebar ul li a:hover {
  color: #1976d2;
}

.menu-links {
  padding-top: 10px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid #eee;
}

.sidebar-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-footer li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.sidebar-footer li i {
  color: #1976d2;
  font-size: 20px;
}

.sidebar-footer li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.sidebar-footer li a:hover {
  color: #1976d2;
}

/* Infosektionen */
section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

section h2 {
  color: #1976d2;
  font-size: 24px;
  margin-bottom: 12px;
}

ol li,
ul li {
  margin-bottom: 10px;
}

details {
  margin-bottom: 10px;
}

details summary {
  cursor: pointer;
  font-weight: bold;
  color: #1976d2;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin: 60px 0 30px;
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.menu-title {
  font-size: 17px;
  font-weight: 700;
  color: #000000; /* ⬅️ Schwarz */
  line-height: 1;
  margin-top: -10px; /* ⬅️ Leicht nach oben verschoben */
}

.menu-logo {
  width: 24px;
  height: 24px;
  margin-top: -10px;
}

.page-tagline {
  font-family: 'Inter', 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #5e6e85;
  text-align: center;
  line-height: 1.5;
  max-width: 900px;
  margin: 16px auto 36px;
}

.how-it-works-section {
  margin-top: 10px;
  padding: 40px 20px;
  background-color: #ffffff;
  text-align: center;
}

.how-it-works-title {
  font-size: 32px;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 40px;
}

.how-it-works-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.how-box {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 24px;
  min-height: 420px;
  max-width: 100%;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.how-img {
  width: 320px;
  max-width: 90%;          /* statt 100%, damit es innen schön bleibt */
  margin-bottom: 0;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.how-text {
  margin-bottom: 24px;
}

.how-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.how-text p {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
}

.upload-img {
  margin-top: 40px !important;
  align-self: center; /* wichtig, um das auto-Verhalten zu übersteuern */
}

.how-img-chat {
  margin-top: 32px;
  width: 320px;
  max-width: 90%;          /* statt 100%, damit es innen schön bleibt */
  margin-top: auto;        /* schiebt Bild nach unten bei Bedarf */
  margin-bottom: 0;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

#why-fragpdf {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.why-title {
  font-size: 32px;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 16px;
}

.why-subtext {
  font-size: 18px;
  margin-bottom: 40px;
  color: #333;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; /* Sorgt für gleiche Höhe */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-box {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.06);
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #e0e0e0;
}

.why-box strong {
  margin-bottom: 8px;
  font-weight: 700;
  display: block;
}

.why-text {
  color: #5e6e85;
  margin-top: 0;
  margin-bottom: 0; /* optional für sauberen Abschluss */
}

#faq-modern {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
}

.faq-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1976d2;
  text-align: center;
  margin-bottom: 32px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  color: #222;
  font-weight: 400; /* NICHT fett */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.faq-question.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 14px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

#upload-box-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 20px;
}

@keyframes loadingAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#upload-loading div div {
  transform: translateX(-100%);
  animation: loadingAnim 1.5s linear infinite;
}

#upload-progress-bar {
  display: none;
  text-align: center;
  margin: 120px auto 100px auto;
  max-width: 400px;
}

#upload-progress-bar p {
  font-size: 18px;
  margin-bottom: 16px;
}

.progress-container {
  width: 100%;
  background: #eee;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #36c, #8cf, #36c);
  animation: loadingAnim 1.2s linear infinite;
}

@keyframes loadingAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}





/* Responsives Layout für kleinere Bildschirme */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}





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

  .how-img {
    margin-bottom: 16px;
  }
}


