:root {
  --primary: #0071e3;
  --secondary: #ff3b30;
  --accent: #5856d6;
  --light: #f5f5f7;
  --dark: #1d1d1f;
  --success: #34c759;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --print-blue: #003366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
nav {
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

body.menu-open .mobile-menu span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

body.menu-open .mobile-menu span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-menu span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hide/Show sections */
.section {
  display: block;
}

.section.hidden {
  display: none;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  background: var(--light);
  color: var(--text-primary);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Main Content Area */
.main-content {
  background-color: white;
  padding: 6rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Input Section */
.input-section {
  position: sticky;
  top: 120px;
}

.file-upload {
  border: 3px dashed rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  background: var(--light);
}

.file-upload:hover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.05);
  transform: translateY(-2px);
}

.file-upload input[type='file'] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.file-upload-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

textarea {
  width: 100%;
  height: 400px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New',
    monospace;
  font-size: 14px;
  resize: vertical;
  background: white;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.controls {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 980px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin: 1rem 0.5rem;
}

.cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.cta-button.primary {
  background-color: var(--primary);
  color: white;
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-button.secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.05);
}

/* Features */
.features {
  padding: 6rem 0;
  background-color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 18px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.how-it-works {
  background-color: var(--light);
  padding: 6rem 0;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  background-color: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.languages {
  padding: 6rem 0;
  background-color: white;
}

.language-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.language-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 160px;
}

.language-icon {
  width: 80px;
  height: 50px;
  margin-bottom: 1rem;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonials {
  background-color: var(--light);
  padding: 6rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
}

.download {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  color: var(--text-primary);
  text-align: center;
}

.app-screens {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.app-screen {
  width: 250px;
  border-radius: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.app-screen:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Preview Section */
.preview {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding: 2rem;
  min-height: 500px;
  background: white;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.preview-placeholder {
  color: var(--text-secondary);
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.1rem;
}

.preview h1 {
  color: var(--text-primary);
  font-size: 2.2rem;
  margin: 2rem 0 1.5rem 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
  font-weight: 600;
}

.preview h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.preview h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
}

.preview h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 1.2rem 0 0.6rem 0;
  font-weight: 600;
}

.preview h5,
.preview h6 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

.preview p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.preview ul,
.preview ol {
  margin: 1.2rem 0;
  padding-left: 2rem;
}

.preview li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.preview code {
  background: var(--light);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New',
    monospace;
  font-size: 0.9em;
  color: var(--text-primary);
}

.preview pre {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview pre code {
  background: none;
  padding: 0;
}

.preview blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(0, 113, 227, 0.05);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
}

.preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview th,
.preview td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview th {
  background: var(--light);
  font-weight: 600;
}

/* Print Header für PDF - nur wenn kein H1 vorhanden */
.print-header {
  display: none;
}

.print-header.show-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8pt;
  padding-bottom: 4pt;
  border-bottom: 0.5pt solid #003366;
}

/* Message Styles */
.messageBox {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  border: 1px solid transparent;
}

.success {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
  border-color: rgba(52, 199, 89, 0.2);
}

.error {
  background: rgba(255, 59, 48, 0.1);
  color: var(--secondary);
  border-color: rgba(255, 59, 48, 0.2);
}

.info {
  background: rgba(0, 113, 227, 0.1);
  color: var(--primary);
  border-color: rgba(0, 113, 227, 0.2);
}

/* Screenshot Wrapper - Basis-Styling */
.screenshot-wrapper {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  margin: 0.5rem;
  transition: all 0.3s ease;
  vertical-align: top;
  position: relative;
  z-index: 1;
}

.screenshot-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.screenshot-wrapper img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
}

/* Screenshot Container - Einheitliche Regeln für alle Bildschirmgrößen */
.devices-mockup {
  position: relative;
  margin: 3rem auto;
  max-width: 1000px;
}

.devices-mockup > div[style*='display: flex'] {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 20px !important;
  margin: 20px 0 40px 0 !important;
  padding: 0 1rem !important;
}

.ai-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tip-card {
  background-color: #f2f7ff;
  padding: 1.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--success);
  margin: 2rem 0;
}

.tip-card h4 {
  color: var(--success);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tip-card p {
  color: var(--text-primary);
  line-height: 1.6;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.benefit-card {
  background-color: var(--light);
  padding: 1.25rem;
  border-radius: 14px;
  flex: 1;
  min-width: 200px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Impressum Styles */
.impressum {
  background-color: white;
  padding: 8rem 0 6rem;
  min-height: 80vh;
}

.impressum h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.impressum h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.impressum p,
.impressum li {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.impressum ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 18px;
  margin: 2rem 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Language Picker Styles */
.language-picker {
  position: relative;
  z-index: 1001;
  margin-left: 1rem;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  padding: 0.6rem 1.2rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.language-name {
  flex: 1;
  text-align: left;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.language-picker.open .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.3s ease;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

.language-option:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 113, 227, 0.08) 0%,
    rgba(0, 113, 227, 0.12) 100%
  );
  color: var(--primary);
}

.language-option.active {
  background: linear-gradient(
    90deg,
    rgba(0, 113, 227, 0.15) 0%,
    rgba(0, 113, 227, 0.2) 100%
  );
  color: var(--primary);
  font-weight: 600;
}

.language-option.active::after {
  content: '✓';
  margin-left: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.language-option-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.language-option-name {
  flex: 1;
}

/* ===== BILDLOKALISIERUNG FIX ===== */
img[data-i18n-img] {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  clip: unset !important;
  transform: none !important;
  transition: opacity 0.3s ease;
}

.section.hidden img[data-i18n-img] {
  opacity: 1 !important;
  visibility: visible !important;
}

img[data-i18n-img].loading {
  opacity: 0.8 !important;
}

.localized-image {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

/* Bild-Fallback für fehlende Bilder */
.flag-fallback,
.screenshot-fallback {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 6px;
}

.flag-fallback {
  width: 80px;
  height: 50px;
}

.screenshot-fallback {
  width: 100%;
  height: 450px;
  border-radius: 30px;
}

/* Consent Banner Styles */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(245, 245, 247, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.consent-banner.show {
  transform: translateY(0);
}

.consent-banner .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.consent-content {
  flex: 1;
}

.consent-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.consent-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.consent-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.consent-content a:hover {
  text-decoration: underline;
}

.consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.consent-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.consent-btn-accept {
  background: var(--primary);
  color: white;
}

.consent-btn-accept:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.consent-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.consent-btn-decline:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.consent-btn-settings {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.consent-btn-settings:hover {
  background: var(--primary);
  color: white;
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 29, 31, 0.8);
  backdrop-filter: blur(20px);
  z-index: 10001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-settings-overlay.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cookie-settings-modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-settings-overlay.show .cookie-settings-modal {
  transform: scale(1);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-settings-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.close-settings {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-settings:hover {
  background: rgba(0, 0, 0, 0.1);
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle.active {
  background: var(--primary);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
  transform: translateX(20px);
}

.cookie-category p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-settings-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--light);
  color: var(--text-secondary);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.developer-info {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Print Styles - MINIMAL und SAUBER */
@media print {
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    color: #000 !important;
  }

  nav,
  .input-section,
  footer,
  .controls,
  .messageBox,
  .section-title,
  .tagline,
  .mobile-menu {
    display: none !important;
  }

  header {
    display: none !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-content {
    padding: 0 !important;
    background: white !important;
  }

  .content-grid {
    display: block !important;
    grid-template-columns: none !important;
  }

  .print-header {
    display: none !important;
  }

  .print-header.show-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8pt !important;
    padding-bottom: 4pt !important;
    border-bottom: 0.5pt solid #003366 !important;
  }

  .print-title {
    font-size: 10pt !important;
    font-weight: bold !important;
    color: #003366 !important;
    margin: 0 !important;
  }

  .print-date {
    font-size: 8pt !important;
    color: #003366 !important;
    font-weight: normal !important;
  }

  .preview {
    border: none !important;
    padding: 15mm 20mm !important;
    margin: 0 !important;
    min-height: auto !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    background: white !important;
    page-break-inside: avoid;
    color: #000 !important;
  }

  .preview h1 {
    font-size: 12pt !important;
    margin: 0 0 6pt 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    color: #003366 !important;
    font-weight: bold !important;
    page-break-after: avoid !important;
  }

  .preview h2 {
    font-size: 11pt !important;
    margin: 8pt 0 4pt 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    color: #003366 !important;
    font-weight: bold !important;
    page-break-after: avoid !important;
  }

  .preview h3 {
    font-size: 10pt !important;
    margin: 6pt 0 3pt 0 !important;
    color: #003366 !important;
    font-weight: bold !important;
    page-break-after: avoid !important;
  }

  .preview h4,
  .preview h5,
  .preview h6 {
    font-size: 9pt !important;
    margin: 5pt 0 2pt 0 !important;
    color: #003366 !important;
    font-weight: bold !important;
    page-break-after: avoid !important;
  }

  .preview p {
    margin-bottom: 4pt !important;
    color: #000 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    orphans: 2 !important;
    widows: 2 !important;
  }

  .preview ul,
  .preview ol {
    margin: 4pt 0 !important;
    padding-left: 12pt !important;
  }

  .preview li {
    margin-bottom: 2pt !important;
    color: #000 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
  }

  .preview code {
    background: #f5f5f5 !important;
    padding: 1pt 2pt !important;
    border-radius: 2pt !important;
    font-family: 'Courier New', monospace !important;
    font-size: 8pt !important;
    color: #000 !important;
    border: 0.25pt solid #ccc !important;
  }

  .preview pre {
    background: #f8f8f8 !important;
    padding: 6pt !important;
    border-radius: 3pt !important;
    margin: 6pt 0 !important;
    border: 0.25pt solid #ccc !important;
    font-size: 8pt !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
  }

  .preview pre code {
    background: none !important;
    padding: 0 !important;
    font-size: 8pt !important;
    border: none !important;
  }

  .preview blockquote {
    border-left: 2pt solid #000 !important;
    background: #f8f8f8 !important;
    padding: 4pt 8pt !important;
    margin: 6pt 0 !important;
    border-radius: 0 !important;
    font-size: 9pt !important;
    page-break-inside: avoid !important;
  }

  .preview table {
    margin: 8pt 0 !important;
    border-radius: 0 !important;
    border: 0.5pt solid #000 !important;
    font-size: 8pt !important;
    page-break-inside: avoid !important;
    width: 100% !important;
  }

  .preview th,
  .preview td {
    padding: 2pt 4pt !important;
    border-bottom: 0.25pt solid #ccc !important;
    font-size: 8pt !important;
    line-height: 1.2 !important;
  }

  .preview th {
    background: #f0f0f0 !important;
    font-weight: bold !important;
    border-bottom: 0.5pt solid #000 !important;
  }

  .MathJax {
    color: #000 !important;
    font-size: 11pt !important;
  }

  .MathJax_Display {
    margin: 6pt 0 !important;
    font-size: 11pt !important;
    text-align: center !important;
  }

  @page {
    size: A4;
    margin: 15mm 20mm;
    orphans: 2;
    widows: 2;
  }

  .preview h1,
  .preview h2,
  .preview h3,
  .preview h4,
  .preview h5,
  .preview h6 {
    color: #003366 !important;
  }

  .print-title,
  .print-date {
    color: #003366 !important;
  }

  .gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000 !important;
    background-clip: unset !important;
    text-fill-color: #000 !important;
    color: #000 !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(245, 245, 247, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: start;
    padding-top: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  body.menu-open .nav-links {
    transform: translateX(0);
  }

  .mobile-menu {
    display: flex;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  header {
    padding: 6rem 0 4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.3rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .input-section {
    position: static;
    order: 1;
  }

  .file-upload {
    padding: 2rem;
  }

  .file-upload-icon {
    font-size: 2rem;
  }

  textarea {
    height: 300px;
  }

  .controls {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .feature-grid,
  .step-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .app-screen {
    width: 200px;
  }

  .app-screens {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
  }

  .app-screen {
    width: 280px !important;
    max-width: 90% !important;
  }

  .devices-mockup {
    margin: 2rem auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 1rem !important;
  }

  .devices-mockup > div[style*='display: flex'] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  .screenshot-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 2rem auto !important;
    padding: 1rem !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  }

  .screenshot-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    border-radius: 15px !important;
  }

  .screenshot-fallback {
    width: 100% !important;
    height: 400px !important;
    border-radius: 15px !important;
    font-size: 1.1rem !important;
  }

  .devices-mockup h3 {
    font-size: 1.3rem !important;
    margin: 2rem 0 1.5rem 0 !important;
    text-align: center !important;
  }

  img[data-i18n-img] {
    width: 100% !important;
    max-width: none !important;
    border-radius: 15px !important;
    margin: 0 auto !important;
  }

  .language-picker {
    order: -1;
    margin: 0 0 1rem 0;
    width: 100%;
  }

  .language-toggle {
    width: 100%;
    justify-content: center;
    min-width: auto;
    padding: 0.8rem 1.5rem;
  }

  .language-dropdown {
    left: 0;
    right: 0;
    min-width: auto;
  }

  .consent-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .consent-buttons {
    flex-direction: column;
    width: 100%;
  }

  .consent-btn {
    width: 100%;
  }

  .cookie-settings-modal {
    margin: 1rem;
    padding: 1.5rem;
  }

  .cookie-settings-buttons {
    flex-direction: column;
  }
}

/* Desktop: Mehrere Screenshots nebeneinander */
@media (min-width: 769px) {
  .devices-mockup > div[style*='display: flex'] {
    flex-direction: row !important;
    gap: 30px !important;
  }

  .screenshot-wrapper {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    margin: 0 !important;
  }
}

/* iPhone Querformat: 2 Screenshots nebeneinander */
@media (min-width: 481px) and (max-width: 768px) {
  .devices-mockup > div[style*='display: flex'] {
    flex-direction: row !important;
    gap: 20px !important;
  }

  .screenshot-wrapper {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    min-width: 200px !important;
    margin: 0 !important;
  }
}

/* iPhone Hochformat: 1 Screenshot pro Reihe */
@media (max-width: 480px) {
  .screenshot-wrapper {
    max-width: 280px !important;
    padding: 0.75rem !important;
  }

  .screenshot-wrapper img {
    max-height: 400px !important;
  }

  .devices-mockup h3 {
    font-size: 1.1rem !important;
    margin: 1.5rem 0 1rem 0 !important;
  }
}
