/* Globale Einstellungen */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #e3f2fd;
  text-align: center;
  padding: 20px;
  color: white;
  margin: 0;
}

  /* Container */
  .container {
    max-width: 800px;
    margin: auto;
    background: linear-gradient(to right, #bbdefb, #90caf9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    color: black;
  }

  /* Titel */
  h1 {
    color: #333;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: bold;
  }

h2 {
    color: #444;
    border-bottom: 3px solid #2575fc;
    padding-bottom: 8px;
    text-align: left;
    font-size: 22px;
    font-weight: 600;
}

  /* Label */
  label {
    font-weight: bold;
    color: #0277bd;
    display: block;
    margin-top: 20px;
    font-size: 1.1em;
  }

  /* Eingabefelder */
  input, textarea, select, button {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    display: block;
    box-sizing: border-box;
    font-size: 16px; /* Korrigiert von 16p zu 16px */
  }

  input:focus, textarea:focus, select:focus {
    background-color: #e3e6ff;
    border-color: #2575fc;
    outline: none;
  }

  input {
    background-color: #f9f9f9;
    transition: 0.3s;
  }

  button {
    background: rgb(5, 93, 116);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-size: 18px;
    text-transform: uppercase;
  }

  button:hover {
    background: rgb(5, 93, 116);
    transform: scale(1.05);
  }

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-color: white;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.form-grid .form-section {
  flex: 1 1 30%;
  min-width: 260px;
}



  /* Tooltip */
  .tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 1.1em;
    display: none;
    z-index: 10;
  }

  /* Inhalt nach Generierung */
  .generated-letter {
    margin-top: 40px;
    background-color: #e1f5fe;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #81d4fa;
  }

  .generated-letter h2 {
    font-size: 2em;
    color: #0277bd;
    margin-bottom: 15px;
  }

  .download-btn {
    background-color: #66bb6a;
    padding: 18px;
    border-radius: 12px;
    color: white;
    font-size: 1.3em;
    width: auto;
    transition: background-color 0.3s;
    cursor: pointer;
  }

  .download-btn:hover {
    background-color: #388e3c;
  }

  .info-tip {
    font-size: 1.1em;
    color: #0277bd;
    margin-top: 8px;
  }

  /* Styling für die Auswahl-Boxen */
  select {
    background-color: #f1f8e9;
  }

  /* Reponsivität */
  @media (max-width: 768px) {
    .container {
      padding: 20px;
    }

    h1 {
      font-size: 2.5em;
    }

    input, textarea, button {
      font-size: 1em;
    }

    .generated-letter {
      padding: 20px;
    }

    .download-btn {
      padding: 15px;
      font-size: 1.2em;
    }
  }

.content {
    min-height: 0vh; /* Damit der Footer unten bleibt */
    padding: 20px;
}

footer {
    background: linear-gradient(to right, #bbdefb, #90caf9);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px 0;
}

.footer-links {
    background-color: linear-gradient(to right, #bbdefb, #90caf9);
    padding: 10px 0;
}

.footer-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom {
    padding: 100px;
}

.footer-bottom a {
    color: #000000; /* Hellblau */
    text-decoration: none;
}

.black {
    color: #1D1D32;
}

.gradient {
    background: linear-gradient(90deg, #9C8CFF, #2D3F85);
    background-clip: text;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#anschreiben-container {
  white-space: pre-line; /* Erhält Zeilenumbrüche */
  overflow: auto; /* Falls Text zu lang ist, scrollbar machen */
}

.generated-letter {
  font-family: "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  color: black;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.generated-letter p {
  margin-bottom: 1.2em;
}

:root {
  --primary-color: #007b5f;
  --secondary-color: #f0f8ff;
  --text-color: #000000;
  --font-family: 'Times New Roman', serif;
}

body {
  
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.generated-letter {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  text-align: left;
}

.generated-letter .header-info {
  text-align: right;
  margin-bottom: 30px;
}

.generated-letter p {
  margin-bottom: 1.2em;
}

.generated-letter h2 {
  margin-top: 30px;
  text-align: center;
  font-size: 20px;
  text-decoration: underline;
}

.download-button {
  display: block;
  margin: 30px auto 0;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #005e47;
}

.contact-info {
  margin-left: 35px;   /* leicht nach rechts */
  margin-top: -80px;   /* leicht nach oben */
  text-align: right;
}

.contact-info p strong {
  font-size: 15px;
  font-weight: bold;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer {
  background: #add8f6;
  padding: 30px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #000;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-links {
  max-width: 45%;
}

.footer-contact {
  max-width: 45%;
  text-align: left;
}

.footer-contact p strong {
  font-size: 16px;
  text-transform: uppercase;
}

.footer-impressum {
  border-top: 1px solid #ccc;
  padding-top: -100px;
  font-size: 13px;
}

.footer-impressum h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

footer a {
  color: #0033cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #a0d8ff, #c0e0ff);
  color: #333;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.heading {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
}

.heading .black {
  color: #000;
}

.heading .gradient {
  background: linear-gradient(to right, #0077cc, #00bbcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-section {
  margin-bottom: 25px;
}

.form-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0077cc;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

button {
  background-color: #0077cc;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 20px auto;
}

button:hover {
  background-color: #005fa3;
}

#generated-letter {
  margin-top: 30px;
  padding: 20px;
  background: #f1f9ff;
  border-radius: 10px;
  display: none;
}

footer {
  background: #add8f6;
  padding: 30px 20px;
  font-size: 14px;
  color: #000;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-links {
  max-width: 45%;
}

.footer-contact {
  max-width: 45%;
  text-align: left;
}

.footer-contact p strong {
  font-size: 16px;
  text-transform: uppercase;
}

.footer-impressum {
  border-top: 1px solid #ccc;
  padding-top: 20px;
  font-size: 13px;
}

.footer-impressum h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

footer a {
  color: #0033cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.kontaktbox {
  background-color: #f9fafb;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 40px auto;
  font-family: 'Segoe UI', sans-serif;
  color: #1a1a1a;
}

.kontaktbox h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.kontaktbox p {
  font-size: 16px;
  margin: 10px 0;
}

.kontaktbox a {
  color: #8b5cf6; /* sanftes Lila */
  text-decoration: none;
  font-weight: 500;
}

.kontaktbox a:hover {
  text-decoration: underline;
}

.kontaktbox h3 {
  margin-top: 30px;
  font-weight: 600;
  font-size: 18px;
}

.icon {
  margin-right: 8px;
}


.impressum-box {
  background-color: #f9fafb;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 40px auto;
  font-family: 'Segoe UI', sans-serif;
  color: #1a1a1a;
}

.impressum-box h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.impressum-box p {
  font-size: 16px;
  margin: 12px 0;
  line-height: 1.6;
}

.impressum-box a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 500;
}

.impressum-box a:hover {
  text-decoration: underline;
}

.datenschutz-box {
  background-color: #f9fafb;
  padding: 40px 20px;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Segoe UI', sans-serif;
  color: #1a1a1a;
}

.datenschutz-box h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.datenschutz-box h3 {
  font-size: 18px;
  margin-top: 30px;
  font-weight: 600;
  color: #333;
}

.datenschutz-box p {
  font-size: 16px;
  margin: 10px 0;
  line-height: 1.6;
}

.datenschutz-box a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 500;
}

.datenschutz-box a:hover {
  text-decoration: underline;
}

footer {
  background-color: #add8f6;
  padding: 20px;
  text-align: center; /* <-- zentriert den Text */
}

footer nav {
  margin-bottom: 10px;
}

footer a {
  margin: 0 8px;
  text-decoration: none;
  color: #0033cc;
}

footer a:hover {
  text-decoration: underline;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dark-mode-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 999;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dark-mode {
  background: #121212;
  color: #f1f1f1;
}

.dark-mode .container,
.dark-mode .form-section,
.dark-mode footer {
  background: #1e1e1e;
  color: #f1f1f1;
}

.dark-mode input,
.dark-mode textarea {
  background: #333;
  color: #fff;
  border-color: #555;
}
footer p, footer a, footer li {
  font-weight: 400 !important;
}

.dark-mode button {
  background: #333;
  color: #fff;
}
.spinner-inline {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media (max-width: 500px) {
  .input-row input[type="text"] {
    max-height: 40px;
    padding: 0.4rem !important;
    font-size: 1rem;
    line-height: 1.2;
  }
}
