/* Inter Font - Local */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-SemiBold.ttf') format('truetype');
}

/* GLOBAL RESET - Verhindert horizontalen Scroll */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

html {
  overflow-x: hidden !important;
  overflow-y: auto;
  width: 100% !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  overscroll-behavior-x: none;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow-scrolling: touch;
  -webkit-overflow-scrolling: touch;
  overflow-clip-margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FAFAF9;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
  position: relative;
}

/* Unterseiten (Datenschutz, Nutzungshinweise, FAQ, Impressum) */
.page-content {
  display: block;
  padding: 0;
  width: 100%;
}

/* Top Navigation */
.top-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  z-index: 1000;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: 1rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  background-color: #FAFAF9;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: hidden;
}

.nav-icon-link {
  display: block;
  flex-shrink: 0;
}

.nav-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  transition: opacity 0.15s ease;
}

.nav-icon-link:hover .nav-icon {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 0.25rem 0;
  text-align: left;
  white-space: nowrap;
}

.nav-link:hover {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hamburger Menu Button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: #4b5563;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile: nur vertikaler Scroll, kein horizontaler */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body {
    touch-action: pan-y;
  }
}

/* Mobile: Fließtext einheitlich 1.125rem (18px) – gut lesbar auf dem Handy */
@media screen and (max-width: 768px) {
  .description,
  .anleitung-content,
  .anleitung-content p,
  .scenario-content,
  .scenario-content p,
  .scenario-title,
  .scenario-label,
  .dos-donts-content,
  .dos-donts-content p,
  .dos-donts-label,
  .faq-question,
  .faq-answer p,
  .nav-link,
  .warning-box,
  .highlight-box,
  .subsection-title {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
  }
}

@media screen and (max-width: 640px) {
  .description,
  .anleitung-content,
  .anleitung-content p,
  .scenario-content,
  .scenario-content p,
  .scenario-title,
  .scenario-label,
  .dos-donts-content,
  .dos-donts-content p,
  .dos-donts-label,
  .faq-question,
  .faq-answer p,
  .nav-link,
  .warning-box,
  .highlight-box,
  .subsection-title {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
  }
}

/* Mobile Navigation – Icon und Burger BEIDE fest positioniert */
@media screen and (max-width: 768px) {
  .top-navigation {
    position: relative;
    min-height: calc(max(0.75rem, env(safe-area-inset-top)) + 2.5rem + 0.75rem);
    padding: 0;
    padding-top: calc(max(0.75rem, env(safe-area-inset-top)) + 2.5rem + 0.75rem);
    display: block;
  }

  .nav-icon-link {
    position: absolute;
    top: max(0.75rem, env(safe-area-inset-top));
    left: 0.75rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    z-index: 100;
  }

  .nav-icon {
    width: 2rem;
    height: 2rem;
  }

  .nav-hamburger {
    display: flex;
    position: absolute;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    z-index: 100;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .anleitung-container {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 0.75rem;
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .top-navigation {
    min-height: calc(max(0.5rem, env(safe-area-inset-top)) + 2.25rem + 0.5rem);
    padding-top: calc(max(0.5rem, env(safe-area-inset-top)) + 2.25rem + 0.5rem);
  }

  .nav-icon-link {
    top: max(0.5rem, env(safe-area-inset-top));
    left: 0.5rem;
    height: 2.25rem;
  }

  .nav-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .nav-hamburger {
    top: max(0.5rem, env(safe-area-inset-top));
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .nav-links {
    padding: 0.5rem;
  }

  .anleitung-title,
  .title {
    font-size: 1.75rem;
  }

  body {
    padding: 0.5rem;
    width: 100%;
  }
}

.container-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.title-icon {
  flex-shrink: 0;
  margin-top: calc(3rem + (2.5rem * 1.2) / 2 - 1.5rem);
}

.title-icon-img {
  width: 3rem;
  height: 3rem;
  display: block;
}

.container {
  width: 100%;
  max-width: 720px;
  flex: 1;
}

.anleitung-container .container {
  max-width: 100%;
}

@media (max-width: 768px) {
  .container-wrapper {
    gap: 1rem;
  }

  .title-icon-img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .title-icon {
    padding-top: calc((2rem * 1.2) / 2 - 1.25rem);
  }
}

@media (max-width: 640px) {
  .container-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }

  .title-icon {
    margin-top: 0;
    align-self: flex-start;
    padding-top: 0;
  }

  .title-icon-img {
    width: 2rem;
    height: 2rem;
  }
}

.content-wrapper {
  padding: 3rem 0;
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.anleitung-container .content-wrapper {
  padding: 0;
}

/* Header */
.header {
  margin-bottom: 4rem;
}

.anleitung-container .header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: none;
}

.title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: #111827;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Inline SVG Icon */
.inline-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin: 0 0.25em;
}

.inline-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.divider-line {
  display: none;
  width: 3rem;
  height: 0.5px;
  background-color: #d1d5db;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
  max-width: 640px;
}

.anleitung-container .description {
  max-width: 100%;
}

.description strong {
  font-weight: 600;
  color: #111827;
}

/* Form */
#app-root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.url-fields-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.url-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
}

/* Input Fields */
.input-field,
.textarea-field {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.input-field::placeholder,
.textarea-field::placeholder {
  color: #d1d5db;
}

.input-field:focus,
.textarea-field:focus {
  border-color: #9ca3af;
}

.input-field:disabled,
.textarea-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.textarea-wrapper {
  position: relative;
}

.textarea-field {
  min-height: 240px;
  resize: none;
}

.char-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Divider */
.divider-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.divider-line-full {
  flex: 1;
  height: 0.5px;
  background-color: #e5e7eb;
}

.divider-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  background-color: #FAFAF9;
  padding: 0 1rem;
}

/* Dropzone */
.dropzone {
  position: relative;
  border: 1px dashed #e5e7eb;
  border-radius: 0.5rem;
  padding: 2rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzone.drag-active {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.dropzone:disabled,
.dropzone.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-input {
  display: none;
}

.dropzone-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-icon-wrapper {
  display: flex;
  justify-content: center;
}

.upload-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
}

.dropzone-text {
  font-size: 0.875rem;
  color: #4b5563;
}

.file-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-display.hidden {
  display: none;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.file-size {
  font-size: 0.75rem;
  color: #9ca3af;
}

.remove-file-btn {
  padding: 0.375rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-file-btn:hover {
  background-color: #f3f4f6;
}

.remove-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

.file-formats {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Messages */
.message {
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message.hidden {
  display: none;
}

.error-message {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
}

.error-text {
  font-size: 0.75rem;
  color: #e33;
}

/* Success Container (Full Screen) */
.success-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FAFAF9;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 2s ease-in-out;
}

.success-container.hidden {
  display: none;
  opacity: 0;
}

.success-container.fade-in {
  opacity: 1;
  pointer-events: all;
}

.success-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  position: relative;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 700px;
  position: relative;
  min-height: 400px;
  flex: 1;
}

.success-block {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  text-align: center;
}

.success-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-block.hidden {
  display: none;
}

.success-title {
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.success-text-large {
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.success-step-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.success-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.success-list {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #4b5563;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.success-list li {
  margin-bottom: 0.75rem;
}

.success-block strong {
  font-weight: 600;
  color: #111827;
}

.success-footer {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.nav-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #4b5563;
}

.nav-button:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-button svg {
  width: 24px;
  height: 24px;
}

.success-details a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success-details a:hover {
  color: #4b5563;
}

.success-icon-large {
  width: 4rem;
  height: 4rem;
  color: #16a34a;
  animation: scaleIn 0.5s ease-out;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.success-text-large {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

.success-details {
  text-align: left;
  width: 100%;
}

.success-details p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
  margin-bottom: 1rem;
}

.success-steps {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0;
  text-align: left;
}

.success-steps li {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.success-steps li strong {
  font-weight: 600;
  color: #111827;
}

.success-step-item {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.success-step-item:last-of-type {
  border-bottom: none;
}

.success-step-item p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.success-step-item p:not(:first-child) {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
  margin-top: 0.5rem;
}

.success-step-item strong {
  font-weight: 600;
  color: #111827;
}

.success-details a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success-details a:hover {
  color: #4b5563;
}

.success-note {
  background-color: #f9fafb;
  padding: 1rem;
  border-left: 3px solid #6b7280;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.success-note strong {
  font-weight: 600;
  color: #111827;
}

.back-to-form-button {
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: #ffffff;
  background-color: #111827;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.5rem;
}

.back-to-form-button:hover {
  background-color: #1f2937;
}

/* Form - no fade out animation needed */

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
}

.reset-button {
  font-size: 0.75rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
  padding: 0;
}

.reset-button:hover {
  color: #4b5563;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: #ffffff;
  background-color: #111827;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  background-color: #1f2937;
}

.submit-button:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.loader-icon {
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
}

.loader-icon.hidden {
  display: none;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-75 {
  opacity: 0.75;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1.5rem;
  }

  .title {
    font-size: 2rem;
  }

  .content-wrapper {
    padding: 1.5rem 0;
  }

  .header {
    margin-bottom: 2rem;
  }

  .url-fields-container {
    flex-direction: column;
  }

  /* Success Messages Mobile */
  .success-content-wrapper {
    gap: 0.25rem;
    padding: 0.25rem;
    max-width: 100%;
  }

  .success-content {
    padding: 0.5rem 0.25rem;
    gap: 0.375rem;
    min-height: auto;
    max-width: 100%;
    flex: 1;
  }

  .success-title {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    line-height: 1.3;
  }

  .success-text-large {
    font-size: 0.6875rem;
    margin-bottom: 0.375rem;
    line-height: 1.4;
  }

  .success-step-title {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    line-height: 1.3;
  }

  .success-text {
    font-size: 0.625rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
  }

  .nav-button {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 32px;
  }

  .nav-button svg {
    width: 16px;
    height: 16px;
  }

  .back-to-form-button {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem 1rem 0.75rem;
    width: 100%;
  }

  .page-content {
    padding: 0.75rem;
    padding-top: 0;
  }

  /* Success Messages Tablet */
  .success-content-wrapper {
    gap: 1rem;
    padding: 1.5rem;
  }

  .success-content {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .success-title {
    font-size: 1.5rem;
  }

  .success-text-large {
    font-size: 1.125rem;
  }

  .success-step-title {
    font-size: 1.5rem;
  }

  .success-text {
    font-size: 1rem;
  }
}

/* Anleitung Page Styles (Nutzungshinweise, Impressum, Datenschutz) */
.anleitung-container {
  width: 100%;
  max-width: min(880px, 100%);
  margin: 4.5rem auto 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
  min-width: 0;
}

.anleitung-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: none;
}

.anleitung-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.anleitung-section {
  margin-bottom: 3.5rem;
}

.anleitung-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1.25rem;
  margin-top: 0;
  line-height: 1.4;
  counter-reset: subsection-counter;
}

.anleitung-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
  min-width: 0;
  max-width: 100%;
}

.anleitung-content p {
  margin-bottom: 1.25rem;
}

.anleitung-content strong {
  font-weight: 600;
  color: #111827;
}

.anleitung-content em {
  font-style: italic;
  color: #374151;
}

.anleitung-content a {
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.anleitung-content a:hover {
  color: #374151;
}

.scenario-box {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.dos-donts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Tablet: 2-column grids stay, 3-column becomes 2 */
@media (max-width: 900px) {
  .three-column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.scenario-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.scenario-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.scenario-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

.scenario-content p {
  margin-bottom: 0.875rem;
}

.scenario-content p:last-child {
  margin-bottom: 0;
}

.dos-donts {
  margin: 2rem 0;
}

.dos-donts-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dos-donts-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.dos-donts-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  line-height: 1;
}

.dos-donts-icon.dont {
  color: #dc2626;
}

.dos-donts-icon.do {
  color: #16a34a;
}

.dos-donts-label {
  font-weight: 600;
  font-size: 1.125rem;
  color: #111827;
  margin: 0;
}

.dos-donts-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

.dos-donts-content p {
  margin-bottom: 0.875rem;
}

.dos-donts-content p:last-child {
  margin-bottom: 0;
}

.warning-box {
  font-size: 1rem;
  line-height: 1.75;
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1.25rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.warning-box strong {
  color: #92400e;
  font-weight: 600;
}

.subsection {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.subsection-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.highlight-box {
  font-size: 1rem;
  line-height: 1.75;
  background-color: #f9fafb;
  border-left: 3px solid #6b7280;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.highlight-box strong {
  color: #111827;
}

@media (max-width: 768px) {
  .three-column-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dos-donts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .scenario-box {
    padding: 1.25rem;
  }

  .dos-donts-item {
    padding: 1.25rem;
  }

  .anleitung-section {
    margin-bottom: 2.5rem;
  }

  .anleitung-section-title {
    font-size: 1.375rem;
  }

  .anleitung-content,
  .anleitung-content p {
    font-size: 1rem;
  }

  .scenario-content {
    font-size: 1rem;
  }

  .dos-donts-content {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .anleitung-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .anleitung-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .anleitung-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .anleitung-content,
  .anleitung-content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .anleitung-content p {
    margin-bottom: 1rem;
  }

  .scenario-box {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
  }

  .scenario-title {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
  }

  .scenario-label {
    font-size: 0.875rem;
  }

  .scenario-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .dos-donts-item {
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .dos-donts-header {
    margin-bottom: 0.75rem;
  }

  .dos-donts-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
  }

  .dos-donts-label {
    font-size: 1rem;
  }

  .dos-donts-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .dos-donts-content p {
    margin-bottom: 0.75rem;
  }

  .three-column-grid,
  .two-column-grid,
  .dos-donts-grid {
    margin: 1.25rem 0;
    gap: 0.875rem;
  }

  .warning-box {
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 1rem;
  }

  .highlight-box {
    padding: 0.875rem 1rem;
    margin: 1rem 0;
    font-size: 1rem;
  }
}

/* FAQ Accordion Styles */
.faq-item {
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  border-radius: 0.25rem;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  transition: all 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  background-color: transparent;
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.faq-answer-open {
  padding: 0.5rem 0 1.5rem 0;
}

.faq-answer p {
  margin: 0 0 0.5em 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

.faq-answer p:last-child {
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}

/* FAQ Mobile Styles – größere Schrift */
@media (max-width: 768px) {
  .faq-item {
    padding: 0.5rem 0.875rem;
  }

  .faq-question {
    padding: 0.875rem 0;
    font-size: 1.0625rem;
  }

  .faq-icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-left: 0.75rem;
  }

  .faq-answer p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

@media (max-width: 640px) {
  .faq-item {
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.375rem;
  }

  .faq-question {
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.4;
  }

  .faq-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
  }

  .faq-answer p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .faq-answer-open {
    padding: 0.375rem 0 1rem 0;
  }
}
