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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ===== CSS Custom Properties ===== */
:root {
  --bg: #FFFFFF;
  --text: #111111;
  --yellow: #FFEE58;
  --purple: #503AA8;
  --gray: #686868;
  --light-bg: #FBFAF3;
  --pink: #F6CFF4;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --container: 1140px;
  --header-height: 70px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

/* ===== Utility Classes ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--light-bg);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--purple {
  background: var(--purple);
  color: #fff;
}

.btn--purple:hover {
  background: #3f2d87;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--text);
}

.btn--yellow:hover {
  background: #ffe600;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

.btn--outline:hover {
  background: var(--purple);
  color: #fff;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #eee;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-weight: 600;
  color: var(--text);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--purple);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Header Transparent Variant (Homepage) ===== */
.header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
}


/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 0 0 4rem;
  text-align: center;
}

.hero__image {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
}

.hero__image--small {
  height: 300px;
}

.hero__image--small img {
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.45rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Hero Overlay (text over image) ===== */
.hero-overlay {
  position: relative;
  overflow: hidden;
}

.hero-overlay__image img {
  width: 100%;
  display: block;
}

.hero-overlay__text {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.hero-overlay__text h1 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-overlay__text p {
  color: var(--gray);
  margin-bottom: 0;
}

/* ===== Page Banner ===== */
.page-banner {
  background: var(--light-bg);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.page-banner h1 {
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 1.35rem;
}

/* ===== Feature Cards Grid ===== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ===== Feature Detail Sections ===== */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-detail--reverse {
  direction: rtl;
}

.feature-detail--reverse > * {
  direction: ltr;
}

.feature-detail__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-detail__image img {
  width: 100%;
}

.feature-detail__text h2 {
  margin-bottom: 1rem;
}

.feature-detail__text p {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ===== PC Tool Section ===== */
.pc-tool__header {
  text-align: center;
  margin-bottom: 3rem;
}

.pc-tool__header img {
  height: 150px;
  margin: 1rem auto;
}

.pc-tool__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== Video Section ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: var(--light-bg);
}

.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__title {
  padding: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ===== CTA / Purchase Section ===== */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
}

.google-play-badge {
  max-width: 200px;
  margin: 0 auto;
  transition: transform 0.2s;
}

.google-play-badge:hover {
  transform: scale(1.05);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.cta-grid > div {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem;
}

.cta-grid h3 {
  margin-bottom: 1rem;
}

/* ===== Data Security Section ===== */
.security-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.security-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.security-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}

.security-card h3 {
  margin-bottom: 0.75rem;
}

/* ===== Product Cards (Apps page) ===== */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-card__image {
  height: 96px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.product-card h3 {
  margin-bottom: 1rem;
}

.product-card p {
  font-size: 1.15rem;
  text-align: left;
}

/* ===== Documentation Cards ===== */
.doc-section {
  margin-bottom: 3rem;
}

.doc-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.doc-card__cover {
  width: 192px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 0.5rem;
}

.doc-card h4 {
  color: var(--text);
}

.doc-card p {
  font-size: 1.15rem;
  margin-bottom: 0;
  flex: 1;
}

.doc-card .btn {
  align-self: flex-start;
  font-size: 1.1rem;
  padding: 0.5rem 1.25rem;
}

/* ===== Download Items ===== */
.download-section {
  margin-bottom: 3rem;
}

.download-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
}

.download-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-item {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.download-item__info h4 {
  margin-bottom: 0.25rem;
}

.download-item__info p {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.download-item .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.download-item--disabled {
  opacity: 0.6;
}

.download-item--disabled .btn {
  pointer-events: none;
  background: #ccc;
}

/* ===== Support Page ===== */
.support-content {
  max-width: 800px;
  margin: 0 auto;
}

.support-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.support-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.support-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.support-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.support-content ul li {
  color: var(--gray);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ===== Legal Pages (Impressum, Datenschutz) ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.legal-content h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content li {
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-content img {
  max-width: 25%;
  height: auto;
  margin-top: calc(1rem + 10px);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(to bottom, #555, #333);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__brand img {
  height: 35px;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  color: #aaa;
  font-size: 1.2rem;
}

.footer__links h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: #aaa;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  color: #666;
  font-size: 1.1rem;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.9rem; }

  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .feature-detail--reverse {
    direction: ltr;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .security-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hamburger {
    display: block;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    font-size: 1.35rem;
    padding: 0.5rem 0;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 0 0 2rem;
  }

  .header--transparent .header__nav {
    background: var(--bg);
  }

  .hero-overlay__text {
    position: static;
    width: 100%;
    padding: 1.5rem;
  }
}
