/* ═══════════════════════════════════════════════════════
   Tablet-Doktor.de – Clean "Doktor" Design
   Medical-inspired, trust, clean, purple/violet & white
   ═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --primary-glow: rgba(124, 58, 237, 0.1);
  --primary-glow-strong: rgba(124, 58, 237, 0.15);
  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --white: #ffffff;
  --bg: #faf8ff;
  --bg-card: #ffffff;
  --text: #1a1428;
  --text-light: #5a4a7a;
  --text-muted: #8a7a9a;
  --border: #e4daf5;
  --border-light: #f0ecf9;
  --success: #10b981;
  --error: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(124, 58, 237, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { transition: color 0.2s; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.mobile-menu .nav-cta {
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(1.5rem, 5vw, 6rem) 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-sub {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  background: var(--primary-glow);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .green {
  color: var(--primary);
}

.hero-text {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

/* ═══════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════ */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem clamp(1.5rem, 5vw, 6rem);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item { text-align: center; }

.trust-item .num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.trust-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.8rem;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   PROCESS / STEPS
   ═══════════════════════════════════════════════════════ */
.process {
  padding: 5rem clamp(1.5rem, 5vw, 6rem);
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   FEATURES (Tablet Brands)
   ═══════════════════════════════════════════════════════ */
.features {
  padding: 5rem clamp(1.5rem, 5vw, 6rem);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */
.faq-section {
  padding: 5rem clamp(1.5rem, 5vw, 6rem);
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all 0.3s;
}

.faq-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.faq-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.faq-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   CONTACT / FORM
   ═══════════════════════════════════════════════════════ */
.contact {
  padding: 5rem clamp(1.5rem, 5vw, 6rem);
  background: var(--bg);
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow);
}

.form-wrapper .section-title { margin-bottom: 0.5rem; }
.form-wrapper .section-sub { margin-bottom: 2rem; }

.form-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg);
  padding: 0.3rem;
  border-radius: 50px;
}

.toggle-btn {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
  background: transparent;
}

.toggle-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow-strong);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.35);
}

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-hint a { color: var(--primary); text-decoration: none; }
.form-hint a:hover { text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.show { display: block; }

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--accent));
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ═══════════════════════════════════════════════════════
   SEO TEXT
   ═══════════════════════════════════════════════════════ */
.seo-text {
  padding: 4rem clamp(1.5rem, 5vw, 6rem);
  background: var(--white);
}

.seo-content {
  max-width: 750px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.seo-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 4rem clamp(1.5rem, 5vw, 6rem) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--white); }

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

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════ */
.legal-page {
  padding: 120px clamp(1.5rem, 5vw, 6rem) 5rem;
  background: var(--bg);
  min-height: 80vh;
}

.legal-content {
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content li { margin-bottom: 0.4rem; }

.legal-content a { color: var(--primary); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { min-height: 70vh; padding-top: 100px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .trust-items { gap: 1.5rem; }
  .trust-item .num { font-size: 1.2rem; }
  .features-grid { grid-template-columns: 1fr; }
}
