/* Einsatztagebuch — Landingpage Styles */

:root {
  --thw-blau: #003399;
  --thw-blau-dark: #002266;
  --thw-blau-light: #e8f0fe;
  --thw-gelb: #FFCC00;
  --thw-gelb-hover: #E6B800;
  --white: #FFFFFF;
  --grey-light: #F7F8FA;
  --grey-border: #E8EBF0;
  --grey-text: #3A3F4B;
  --grey-muted: #6B7280;
  --max-width: 1040px;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grey-text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* Language toggle */
[data-lang="de"] .en,
html:not([data-lang]) .en {
  display: none;
}

[data-lang="en"] .de {
  display: none;
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

/* Utility */
.section-subtitle {
  text-align: center;
  color: var(--grey-muted);
  font-size: 1.05rem;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

/* Header */
.site-header {
  background: var(--thw-blau);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-header .logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  align-items: center;
}

.site-header nav a {
  color: var(--white);
  margin-left: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.site-header nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Active nav link */
.site-header nav a.active {
  opacity: 1;
  border-bottom: 2px solid var(--thw-gelb);
  padding-bottom: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--thw-blau) 0%, var(--thw-blau-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero .app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.hero .description {
  opacity: 0.78;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  background: var(--thw-gelb);
  color: var(--thw-blau);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.store-badge:hover {
  background: var(--thw-gelb-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.store-badge-img {
  background: none;
  padding: 0;
  border-radius: 0;
}

.store-badge-img:hover {
  background: none;
}

.store-badge-img img {
  height: 48px;
  width: auto;
}


/* What's New */
.whats-new {
  padding: 5rem 1.5rem;
  background: var(--grey-light);
}

.whats-new .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.whats-new-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.version-badge {
  display: inline-block;
  background: var(--thw-gelb);
  color: var(--thw-blau);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.whats-new-header h2 {
  color: var(--thw-blau);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.whats-new-header .section-subtitle {
  margin-top: 0;
  margin-bottom: 0;
}

.whats-new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.whats-new-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--thw-gelb);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whats-new-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.whats-new-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.whats-new-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--thw-blau);
  margin-bottom: 0.4rem;
}

.whats-new-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--grey-muted);
}

.whats-new-more {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.whats-new-more a {
  color: var(--thw-blau);
  font-weight: 600;
  transition: color 0.2s;
}

.whats-new-more a:hover {
  color: var(--thw-blau-dark);
}

/* Features */
.features {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.features .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--thw-blau);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--grey-muted);
}

/* Video */
.app-video {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.app-video .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.app-video h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.video-wrapper {
  display: flex;
  justify-content: center;
}

.video-wrapper video {
  max-height: 560px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .video-wrapper video {
    max-height: 400px;
  }
}

/* Screenshots */
.screenshots {
  padding: 5rem 1.5rem;
  background: var(--grey-light);
}

.screenshots .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.screenshots h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.screenshots-wrapper {
  position: relative;
}

.screenshots-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--thw-blau) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--thw-blau);
  border-radius: 3px;
  opacity: 0.5;
}

.screenshots-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--thw-blau-dark);
}

.screenshots-scroll img {
  height: 500px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  scroll-snap-align: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshots-scroll img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Scroll fade indicator (right edge) */
.scroll-fade {
  position: absolute;
  top: 0;
  bottom: 1rem;
  width: 48px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.scroll-fade-right {
  right: 0;
  background: linear-gradient(to right, transparent, var(--grey-light));
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

/* Two-step animation: display:flex then opacity */
@keyframes lightbox-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox.active {
  animation: lightbox-fadein 0.25s ease forwards;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
  z-index: 1001;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  line-height: 1;
  z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Guide */
.guide {
  padding: 5rem 1.5rem;
  background: var(--grey-light);
}

.guide .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.guide h2 {
  text-align: center;
  color: var(--thw-blau);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 780px;
  margin: 0 auto;
}

.guide-step {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--thw-blau);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.guide-step h3 {
  font-size: 0.95rem;
  color: var(--thw-blau);
  margin-bottom: 0.25rem;
}

.guide-step p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--grey-muted);
}

/* CTA */
.cta {
  padding: 4.5rem 1.5rem;
  background: linear-gradient(160deg, var(--thw-blau) 0%, var(--thw-blau-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-text {
  opacity: 0.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Highlight box (used on Datenschutz page) */
.highlight-box {
  background: linear-gradient(135deg, #e8f0fe, #dce8fc);
  border-left: 4px solid var(--thw-blau);
  color: var(--grey-text);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--thw-blau-dark);
  color: var(--white);
  padding: 1.75rem 1.5rem;
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--white);
  opacity: 0.7;
  margin-left: 1.5rem;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer .copyright {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Content pages (Datenschutz, Impressum) */
.content-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-page h1 {
  color: var(--thw-blau);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.content-page h2 {
  color: var(--thw-blau);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page p {
  margin-bottom: 1rem;
}

.content-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.content-page .placeholder-notice {
  background: var(--thw-gelb);
  color: var(--thw-blau);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Changelog */
.changelog-version {
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.changelog-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.changelog-badge {
  display: inline-block;
  background: var(--thw-gelb);
  color: var(--thw-blau);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.changelog-date {
  display: block;
  font-size: 0.82rem;
  color: var(--grey-muted);
  margin-bottom: 1rem;
}

.changelog-section h3 {
  font-size: 0.9rem;
  color: var(--thw-blau);
  margin-bottom: 0.5rem;
}

.changelog-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-section li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
  font-size: 0.88rem;
}

.changelog-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--thw-blau);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .whats-new-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

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

  .hero .tagline {
    font-size: 1.05rem;
  }

  .hero .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .features,
  .screenshots,
  .guide,
  .app-video,
  .whats-new {
    padding: 3.5rem 1.25rem;
  }

  .features h2,
  .screenshots h2,
  .guide h2,
  .app-video h2,
  .whats-new-header h2,
  .cta h2 {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
  }

  .screenshots-scroll img {
    height: 380px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .site-footer a {
    margin-left: 0;
    margin: 0 0.75rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-header nav a {
    margin-left: 0.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }

  .cta {
    padding: 3.5rem 1.25rem;
  }
}
