/* ==========================================================================
   FewoPlan Landingpage – Stylesheet
   ==========================================================================
   Akzentfarbe anpassen: Suche nach --accent in :root
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Akzentfarbe – an App-Icon anpassen */
  --accent: #1a8a7d;
  --accent-light: #e8f5f3;
  --accent-hover: #156b61;

  /* Neutrale Farben */
  --white: #ffffff;
  --black: #1d1d1f;
  --gray-50: #fbfbfd;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #86868b;
  --gray-600: #6e6e73;
  --gray-800: #424245;

  /* Typografie */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Abstände */
  --section-padding: clamp(4rem, 10vw, 7rem);
  --container-max: 1080px;
  --container-wide: 1200px;

  /* Effekte */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-padding) 0;
}

.section--gray {
  background-color: var(--gray-50);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3125rem);
  color: var(--gray-600);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--black);
}

.nav__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--gray-800);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--black);
}

.nav__cta {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* Navigation: rechte Seite (Sprache + CTA) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sprachumschaltung */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.lang-switch__link:hover {
  color: var(--black);
  background: var(--gray-100);
}

.lang-switch__link.is-active {
  color: var(--black);
  font-weight: 600;
}

.lang-switch__flag {
  font-size: 0.875rem;
  line-height: 1;
}

.lang-switch__separator {
  color: var(--gray-200);
  font-size: 0.75rem;
  user-select: none;
}

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

  .nav__cta {
    display: inline-flex;
  }

  .lang-switch__link {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.875rem 1.75rem;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: scale(1.02);
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.btn--secondary:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn__icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(52px + clamp(3rem, 8vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 5rem);
  text-align: center;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero__icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1rem;
}

.hero__description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero__actions {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero__mockup {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   iPhone Mockup
   -------------------------------------------------------------------------- */
.iphone {
  position: relative;
  width: min(280px, 75vw);
  aspect-ratio: 280 / 572;
  background: var(--black);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.iphone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--black);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.iphone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--gray-100);
}

.iphone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone--large {
  width: min(320px, 85vw);
}

/* --------------------------------------------------------------------------
   Problem & Solution
   -------------------------------------------------------------------------- */
.problem-solution {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .problem-solution {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.problem-card,
.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.problem-card__label,
.solution-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.problem-card__label {
  color: #c0392b;
}

.solution-card__label {
  color: var(--accent);
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
  color: var(--gray-800);
}

.problem-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdecea;
  color: #c0392b;
  border-radius: 50%;
  font-size: 0.75rem;
}

.solution-card__text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid .feature-card:last-child {
    grid-column: span 1;
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card__title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */
.screenshots {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
}

.screenshot-item {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .screenshot-item {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .screenshot-item--reverse .screenshot-item__mockup {
    order: 2;
  }

  .screenshot-item--reverse .screenshot-item__content {
    order: 1;
  }
}

.screenshot-item__mockup {
  display: flex;
  justify-content: center;
}

.screenshot-item__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.screenshot-item__text {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.about__text {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.about__text:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.benefit-item__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
}

.benefit-item__text {
  font-size: 1rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-item__question:hover {
  background: var(--gray-50);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gray-400);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--gray-100);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--gray-200);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--black);
}

.footer__appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.625rem 1.25rem;
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--transition);
}

.footer__appstore:hover {
  background: var(--gray-800);
  color: var(--white);
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.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;
}

/* --------------------------------------------------------------------------
   Legal / Imprint Page
   -------------------------------------------------------------------------- */
.legal-page {
  padding: calc(52px + clamp(2.5rem, 6vw, 4rem)) 1.5rem clamp(4rem, 8vw, 6rem);
  min-height: calc(100vh - 52px);
}

.legal-page__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.legal-page__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1rem;
}

.legal-page__intro {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.legal-section {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.legal-section__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1rem;
}

.legal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.legal-text:last-child {
  margin-bottom: 0;
}

.legal-address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
}

.legal-address p {
  margin-bottom: 0.25rem;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-list__item {
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 480px) {
  .legal-list__item {
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.legal-list__item dt {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
}

.legal-list__item dd {
  font-size: 1rem;
  color: var(--gray-800);
  margin: 0;
}

.legal-list__item dd a {
  word-break: break-word;
}

.legal-bullets {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--gray-800);
}

.legal-bullets li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.legal-bullets li:last-child {
  margin-bottom: 0;
}

.legal-placeholder {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px dashed var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
}

.footer__link[aria-current="page"] {
  color: var(--black);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #000000;
    --black: #f5f5f7;
    --gray-50: #1d1d1f;
    --gray-100: #2c2c2e;
    --gray-200: #3a3a3c;
    --gray-400: #86868b;
    --gray-600: #a1a1a6;
    --gray-800: #d2d2d7;
    --accent-light: #1a3d38;
    --accent-hover: #2db5a4;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  }

  body {
    background-color: var(--gray-50);
    color: var(--black);
  }

  .nav {
    background: rgba(29, 29, 31, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .hero {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  }

  .section--gray {
    background-color: var(--white);
  }

  .problem-card,
  .solution-card,
  .feature-card,
  .faq-item,
  .benefit-item {
    background: var(--gray-100);
    border-color: var(--gray-200);
  }

  .problem-list__icon {
    background: #3d2020;
    color: #ff6b6b;
  }

  .faq-item__question:hover {
    background: var(--gray-200);
  }

  .footer {
    background: var(--gray-100);
    border-top-color: var(--gray-200);
  }

  .footer__appstore {
    background: var(--black);
    color: var(--white);
  }

  .footer__appstore:hover {
    background: var(--gray-800);
    color: var(--white);
  }

  .btn--secondary:hover {
    background: var(--accent-light);
  }

  .lang-switch__link:hover {
    background: var(--gray-200);
  }

  .legal-header {
    border-bottom-color: var(--gray-200);
  }

  .legal-placeholder {
    background: var(--accent-light);
    color: var(--accent-hover);
    border-color: var(--accent);
  }

  .iphone {
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
