/* ==========================================
   ND Filter Expert – Landing Page Redesign
   ========================================== */

:root {
  --clr-accent:    #FF0081;
  --clr-accent-dk: #c2185b;
  --clr-purple:    #4527a0;
  --clr-purple-dk: #311b92;
  --clr-bg:        #0d0d1a;
  --clr-bg-card:   rgba(255,255,255,0.05);
  --clr-text:      #f0f0f0;
  --clr-muted:     rgba(255,255,255,0.6);
  --radius:        16px;
  --nav-h:         64px;
  --transition:    0.25s ease;
  --font-body:     'robotoregular', Roboto, Arial, sans-serif;
  --font-display:  'montserratsemibold', Montserrat, Arial, sans-serif;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Brand type: Montserrat carries headings and controls, Roboto the body
   copy. Each weight is self-hosted as its own family (see
   ../font/stylesheet.css), so the family name is what selects the weight. */
h1, h2, h3, h4, h5, h6,
button,
.rd-nav__brand,
.rd-nav__links a,
.rd-hero__cta,
.rd-compare-table thead th,
.rd-calc-result__time {
  font-family: var(--font-display);
}


a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ---- Nav ---- */
.rd-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.rd-nav.scrolled {
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rd-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.rd-nav__brand img { width: 36px; }

.rd-nav__links {
  display: none;
  gap: 32px;
  list-style: none;
}

@media (min-width: 768px) {
  .rd-nav__links { display: flex; }
}

.rd-nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}

.rd-nav__links a:hover,
.rd-nav__links a.active {
  color: var(--clr-accent);
}

.rd-nav__extra {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rd-nav__extra a {
  font-size: 0.85rem;
  color: var(--clr-muted);
  transition: color var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
}

.rd-nav__extra a:hover { color: var(--clr-accent); border-color: var(--clr-accent); }

.rd-nav__lang select {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--clr-muted);
  font-size: 0.85rem;
  padding: 4px 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.rd-nav__lang select option { background: #1a1a2e; color: #fff; }

.rd-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 768px) { .rd-nav__hamburger { display: none; } }

.rd-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.rd-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(13,13,26,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 5%;
  z-index: 999;
  list-style: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rd-mobile-menu.open { display: block; }
.rd-mobile-menu li + li { margin-top: 16px; }
.rd-mobile-menu a { font-size: 1rem; color: var(--clr-muted); }
.rd-mobile-menu a:hover { color: var(--clr-accent); }

/* ---- Hero ---- */
.rd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 5% 80px;
  overflow: hidden;
}

.rd-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../gfx/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.35);
}

.rd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,13,26,0.3) 0%,
    rgba(69,39,160,0.2) 50%,
    rgba(13,13,26,0.8) 100%
  );
}

.rd-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.rd-hero__logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.rd-hero__logo-row img { width: 64px; }

.rd-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.25);
  margin-bottom: 12px;
}

.rd-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--clr-muted);
  margin-bottom: 16px;
}

.rd-hero__tagline {
  font-size: 0.85rem;
  color: var(--clr-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.rd-hero__phone {
  width: 60%;
  height: auto;
  max-width: 320px;
  margin: 0 auto 48px;
  filter: drop-shadow(0 20px 60px rgba(255,0,129,0.3));
  animation: floatPhone 4s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.rd-hero__cta {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 32px rgba(255,0,129,0.4);
}

.rd-hero__cta:hover {
  background: var(--clr-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,0,129,0.55);
  color: #fff !important;
}

.rd-hero__badge {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.rd-hero__badge img { max-width: 180px; }

/* ---- Section Wrapper ---- */
.rd-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 5%;
}

.rd-section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.rd-section-subtitle {
  text-align: center;
  color: var(--clr-muted);
  max-width: 560px;
  margin: 0 auto 64px;
  font-size: 1rem;
}

/* ---- Intro Cards ---- */
.rd-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.rd-intro-card {
  background: var(--clr-bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.rd-intro-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-accent);
  box-shadow: 0 12px 40px rgba(255,0,129,0.15);
}

.rd-intro-card__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--clr-accent);
  display: block;
}

.rd-intro-card__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--clr-accent);
  stroke-width: 1.5;
}

.rd-intro-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.rd-intro-card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
}

/* ---- Screens Strip ---- */
.rd-screens {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

.rd-screens img {
  width: 60%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rd-screens--right img { margin-left: auto; margin-right: 0; width: 55%; }
  .rd-screens--left  img { margin-left: 0; margin-right: auto; width: 50%; }
}

/* ---- Features ---- */
.rd-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rd-feature { grid-template-columns: 1fr 1fr; }
  .rd-feature--reverse { direction: rtl; }
  .rd-feature--reverse > * { direction: ltr; }
}

.rd-feature__img {
  text-align: center;
  perspective: 1400px;
}

.rd-feature__img img {
  --tilt-y: -16deg;
  --tilt-z: -6deg;
  width: 70%;
  height: auto;
  max-width: 300px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(255,0,129,0.2));
  transform: rotateX(4deg) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z));
  transition: transform .5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reversed rows put the image on the right, so the whole pose mirrors:
   the yaw and the lean both flip sign, not just the yaw. */
.rd-feature--reverse .rd-feature__img img { --tilt-y: 16deg; --tilt-z: 6deg; }

.rd-feature__img img:hover {
  transform: rotateX(4deg) rotateY(0deg) rotateZ(0deg) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .rd-feature__img img { transition: none; }
}

.rd-feature__text h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.rd-feature__text p {
  color: var(--clr-muted);
  font-size: 0.95rem;
}

.rd-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Comparison Table Section ---- */
.rd-compare-wrap {
  background-image: url('../gfx/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.rd-compare-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,13,26,0.82);
}

.rd-compare-wrap .rd-section { position: relative; }

.rd-compare-table {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-collapse: collapse;
}

.rd-compare-table thead th {
  padding: 16px 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.rd-compare-table thead th .logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rd-compare-table thead th .logo-badge img { width: 32px; }

.rd-compare-table tbody tr {
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.rd-compare-table tbody tr:hover { background: rgba(255,255,255,0.04); }

.rd-compare-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--clr-muted);
  text-align: center;
}

.rd-compare-table td:first-child { text-align: left; color: #fff; }

.icon-check { color: var(--clr-accent); font-size: 1.1rem; }
.icon-minus { color: rgba(255,255,255,0.25); font-size: 1.1rem; }

.rd-compare-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.rd-compare-badges a img { max-width: 160px; }

/* ---- Online Calculator ---- */
.rd-calc-wrap {
  background-image: url('../gfx/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.rd-calc-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,13,26,0.75);
}

.rd-calc-wrap .rd-section { position: relative; }

.rd-calc-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rd-calc-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .rd-calc-selects { grid-template-columns: 1fr; }
}

.rd-calc-field label.small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 8px;
}

.rd-calc-field .select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0 14px;
  height: 50px;
}

.rd-calc-field .select-wrap svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 1.8;
  pointer-events: none;
}

.rd-calc-field select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  width: 100%;
  padding-left: 30px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  font-family: inherit;
}

.rd-calc-field select option { background: #1a1a2e; }

.rd-calc-result {
  text-align: center;
}

.rd-calc-result__labels {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 8px;
}

.rd-calc-result__time {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.2);
  margin-bottom: 32px;
  font-family: 'Courier New', monospace;
}

.rd-calc-badge {
  display: flex;
  justify-content: center;
}

.rd-calc-badge img { max-width: 180px; }

/* ---- Footer ---- */
.rd-footer {
  background: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .rd-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

.rd-footer__copy {
  font-size: 0.85rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-footer__copy img { width: 24px; }

.rd-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  align-items: center;
}

@media (min-width: 768px) { .rd-footer__links { align-items: flex-end; } }

.rd-footer__links-row { display: flex; gap: 24px; }

.rd-footer__links a {
  color: var(--clr-muted);
  transition: color var(--transition);
}

.rd-footer__links a:hover { color: var(--clr-accent); }

.rd-footer__cross { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.rd-footer__cross a { color: var(--clr-muted); border-bottom: 1px dotted rgba(255,255,255,0.3); }
.rd-footer__cross a:hover { color: var(--clr-accent); border-color: var(--clr-accent); }

/* Liste der internen Inhaltsseiten unter dem Rechner. */
.rd-linklist {
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.rd-linklist li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--clr-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.rd-linklist a { color: #fff; font-weight: 600; }
.rd-linklist a:hover { color: var(--clr-accent, #FF0081); }
