/* style.css – Globales Styling für Daily App */

/* ============================================
   GLOBALE VARIABLEN - HIER FARBEN ANPASSEN!
   ============================================ */
:root {
  /* Icon-Hintergrundfarbe für alle App-Kacheln */
  --icon-bg-color: linear-gradient(135deg, #e6f7ff 0%, #d1edff 100%);

  --icon-bg-color: linear-gradient(135deg, #e6f7ff 0%, #d1edff 100%);
  --icon-ng-color: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
  --icon-bg-color: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
  --icon-bg-color: linear-gradient(135deg, #faf9f6 0%, #f3f2ed 100%);
  --icon-bg-color: linear-gradient(135deg, #f7f7f8 0%, #eeeef0 100%);
  --icon-bg-color: linear-gradient(135deg, #f9f8f6 0%, #f0eeeb 100%);
  --icon-bg-color: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);

  
  /* Apple-Style Farben */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --link-blue: #06c;
  --bg-gray: #f5f5f7;
  --bg-white: #ffffff;
  --border-light: rgba(0, 0, 0, 0.06);
}

/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/web/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/web/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   BASIC STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  margin: 0;
  padding: 0;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}






/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;  /* ← GEÄNDERT von space-between */
  gap: 3rem;  /* ← NEU: Abstand zwischen Logo und Links */
  padding: 0 1.5rem;
  height: 48px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;  /* ← NEU: Logo nach links */
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: opacity 0.3s;
}

.main-nav a:hover {
  opacity: 0.7;
}


.lang-switcher .back-btn {
  min-width: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher .back-btn svg {
  display: block;
}


/* Mobile Menu */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  position: absolute;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s;
}

.menu-btn span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-btn span::before {
  content: '';
  top: -6px;
}

.menu-btn span::after {
  content: '';
  top: 6px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg-white) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.4;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.lang-switcher button {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 500;
  min-width: 50px;
}

.lang-switcher button:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.lang-switcher button.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  font-weight: 600;
}



/* ============================================
   APP SECTION & GRID
   ============================================ */

/* Platform Badges - oben rechts in der Kachel */
.platform-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.platform-icon {
  width: 20px;
  height: 20px;
  color: rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
  transition: all 0.3s;
}

.platform-icon:hover {
  color: rgba(0, 0, 0, 0.9);
  transform: scale(1.15);
}

.platform-badges svg {
  width: 20px;
  height: 20px;
}

/* Optional: Verschiedene Farben für iOS und Android */
.badge-ios {
  color: #000000;  /* Schwarz für iOS */
}

.badge-android {
  color: #3DDC84;  /* Android Grün - optional */
}


.app-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 1.5rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0rem;
}

/* App Cards */
.app-card {
  background: var(--bg-white);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.app-card-image {
  width: 100%;
  height: 220px;
  background: var(--icon-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-card-image img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.app-card-content {
  padding: 1.5rem;
}

.app-card-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.app-card-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.app-card-content .learn-more {
  color: var(--link-blue);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s;
}

.app-card-content .learn-more:hover {
  gap: 0.5rem;
}

.app-card-content .learn-more::after {
  content: '›';
  font-size: 1.2rem;
  font-weight: 600;
}

/* ============================================
   DOWNLOAD BADGES
   ============================================ */
.download-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.download-badges img {
  height: 40px;
  width: auto;
  transition: transform 0.3s;
}

.download-badges img:hover {
  transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-gray);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ============================================
   LANGUAGE SWITCHING
   ============================================ */
.lang-content {
  display: none;
}

body.lang-de .lang-content.lang-de,
body.lang-en .lang-content.lang-en,
body.lang-fr .lang-content.lang-fr,
body.lang-es .lang-content.lang-es {
  display: block;
}

/* Display inline for navigation links */
body.lang-de .main-nav .lang-content.lang-de,
body.lang-en .main-nav .lang-content.lang-en,
body.lang-fr .main-nav .lang-content.lang-fr,
body.lang-es .main-nav .lang-content.lang-es {
  display: inline-block;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  .main-nav a {
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  .lang-switcher {
    border: none;
    padding: 0;
    margin: 0;
  }
  
  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }
  
  .menu-toggle:checked ~ .menu-btn span {
    background-color: transparent;
  }
  
  .menu-toggle:checked ~ .menu-btn span::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .menu-toggle:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  
  .menu-toggle:checked ~ .overlay {
    opacity: 1;
    pointer-events: auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   TABLET
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}