/* ==============================
   Deskora – Modern Glassmorphism
   ============================== */

:root {
  --bg:           #0a0e1a;
  --bg-grad1:     #080c18;
  --bg-grad2:     #101828;
  --card:         rgba(255, 255, 255, 0.05);
  --glass:        rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Logo – warmes Teal/Cyan */
  --logo1:        #0ea5e9;
  --logo2:        #2dd4bf;
  --logo-glow:    rgba(14, 165, 233, 0.3);

  /* Buttons – dezentes, gedämpftes Slate-Blau */
  --btn:          #475569;
  --btn-hover:    #64748b;
  --btn-text:     #f1f5f9;
  --btn-glow:     rgba(71, 85, 105, 0.2);

  /* Allgemein */
  --accent:       #6366f1;
  --accent2:      #a78bfa;
  --accent-glow:  rgba(99, 102, 241, 0.35);
  --muted:        #94a3b8;
  --text:         #e8ecf4;
  --success:      #34d399;
  --danger:       #f87171;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(14, 165, 233, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(45, 212, 191, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c4b5fd;
}

a:visited {
  color: var(--accent2);
}

/* ==============================
   Layout
   ============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   Header
   ============================== */
.header {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 0 0 0;
  position: relative;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---- Logo (Teal/Cyan Glassmorphism) ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo .mark {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--logo1) 0%, var(--logo2) 100%);
  box-shadow:
    0 0 18px var(--logo-glow),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.logo .mark::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.site-texts {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.site-title {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--logo2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meta-description {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 420px;
}

/* ==============================
   Navigation (Glass bar)
   ============================== */
.nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--logo1), var(--logo2));
  box-shadow: 0 0 10px var(--logo-glow);
}

.lang-dropdown {
  margin-left: auto;
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lang-options {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #1e293b;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  min-width: 100%;
  z-index: 100;
}

.lang-dropdown:hover .lang-options,
.lang-dropdown:focus-within .lang-options {
  display: block;
}

.lang-options li {
  padding: 6px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.lang-options li:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-options li.selected {
  color: var(--logo1);
  font-weight: 600;
}

/* ==============================
   Hero Section
   ============================== */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  padding: 48px 0 24px 0;
}

.hero .copy {
  flex: 1;
  min-width: 300px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--logo2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}

h1 {
  font-size: 1.8rem;
  margin: 0 0 12px 0;
  font-weight: 700;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ==============================
   CTA Buttons (Dezent, gut lesbar)
   ============================== */
.cta {
  display: inline-block;
  background: var(--btn);
  color: var(--btn-text);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--btn-glow);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--btn-glow);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px var(--btn-glow);
}

/* Visited / Link Farbe für CTA überschreiben */
a.cta,
a.cta:visited {
  color: var(--btn-text);
}

/* ==============================
   Glass Cards
   ============================== */
.card {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.card.download-info {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.06) 0%,
    rgba(45, 212, 191, 0.04) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(14, 165, 233, 0.12);
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(14, 165, 233, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card.download-info h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.card.download-info p {
  color: var(--muted);
  line-height: 1.6;
}

/* ==============================
   Features Grid / Cards (Glass)
   ============================== */
.features-heading {
  margin: 2.5rem 0 1.2rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: 1.1rem;
}

.feature-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #fff;
}

.feature-card p,
.feature-card li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.feature-card ul {
  padding-left: 1.2rem;
}

.feature-card-img {
  float: left;
  margin-top: 0.5rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  width: 80px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.icon {
  filter: grayscale(50%) brightness(90%);
  transition: filter 0.2s ease;
}

.feature-card:hover .icon {
  filter: grayscale(0%) brightness(100%);
}

/* ==============================
   Advantages Section
   ============================== */
.advantages {
  margin-top: 48px;
  padding: 32px 0;
}

.advantages h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.advantages-intro {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
}

/* ==============================
   Comparison Table (Glass)
   ============================== */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 16px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.06);
}

.comparison-table td {
  color: var(--muted);
}

/* ==============================
   Page Titles
   ============================== */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 2rem;
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ==============================
   Screenshot / Lightbox
   ============================== */
.screenshot-thumb {
  max-width: 100%;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.1);
}

#lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
}

/* ==============================
   Cookie Banner (Glass)
   ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--glass-border);
  color: var(--text);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.88rem;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
}

.cookie-banner button {
  background: var(--btn);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  color: var(--btn-text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cookie-banner button:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

.cookie-banner button#cookie-decline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

.cookie-banner button#cookie-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ==============================
   Footer
   ============================== */
.footer {
  margin-top: 64px;
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.footer a:visited {
  color: var(--accent2);
}

/* ==============================
   Contact Form (Glass)
   ============================== */
.card input[type="text"],
.card input[type="email"],
.card textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card input[type="text"]:focus,
.card input[type="email"]:focus,
.card textarea:focus {
  outline: none;
  border-color: var(--logo1);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.card textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
  .hero {
    padding: 28px 0 16px 0;
    gap: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-texts {
    flex-direction: column;
    gap: 4px;
  }

  .nav {
    gap: 4px;
    padding: 8px 10px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .lang-select {
    margin-left: 0;
    margin-top: 4px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .cta {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==============================
   Screen Reader Only (Accessibility)
   ============================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}