/* CookClan App Farbschema */
:root {
  --accent1: #4a6e7a;
  --accent1-dark: #23343a;
  --accent2: #BEABA1;
  --accent2-dark: #776359;
  --accent3: #253b33;
  --off-white: #F8ECE5;
  --caption: #7D7873;
  --body: #514F4D;
  
  --grey-1000: #1f1f1f;
  --grey-900: #131313;
  --grey-800: #272625;
  --grey-700: #454443;
  --grey-300: #9D9995;
  --grey-200: #c8c8c8;
  --grey-100: #d8d8d8;
  --grey-50: #e6e6e6;
  --grey-10: #f0f0f0;
  --grey-0: #f5f5f5;
  
  --primary-0: #c9e3cd;
  --primary-50: #abbfae;
  --primary-100: #68b18d;
  --primary-300: #4a8769;
  --primary-500: #2d4e3d;
  --primary-600: #134621;
  
  --positive: #507a4b;
  --negative: #bd0f0f;
  --negative-dark: #910707;
  
  --secondary-bg: #d1bb93;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--off-white);
  color: var(--body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hauptinhalt nimmt verfügbaren Platz ein */
.hero-section {
  flex: 1 0 auto;
  margin-bottom: 60px;
}

/* Footer */
.footer {
  flex-shrink: 0;
  background-color: var(--grey-100);
  color: var(--body);
  border-top: 1px solid var(--grey-200);
}

.footer a {
  color: var(--accent1);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent1-dark);
  text-decoration: underline;
}

[data-theme="dark"] .footer {
  background-color: var(--grey-600);
  color: var(--grey-100);
  border-top-color: var(--grey-700);
}

[data-theme="dark"] .footer a {
  color: var(--primary-100);
}

[data-theme="dark"] .footer a:hover {
  color: var(--primary-0);
}

/* Footer Store Buttons */
.footer-store-btn {
  border: none;
  background-color: transparent;
  color: var(--accent1);
  padding: 0.25rem 0.75rem;
}

.footer-store-btn:hover {
  background-color: var(--grey-200);
  color: var(--accent1-dark);
}

[data-theme="dark"] .footer-store-btn {
  color: var(--primary-100);
}

[data-theme="dark"] .footer-store-btn:hover {
  background-color: var(--grey-700);
  color: var(--primary-0);
}

/* Dark Mode */
[data-theme="dark"] body {
  background-color: var(--grey-900);
  color: var(--grey-100);
}

[data-theme="dark"] .hero-section {
  background-color: var(--grey-800);
}

[data-theme="dark"] .jumbotron {
  background-color: var(--grey-800);
}

[data-theme="dark"] .jumbotron h1 {
  color: white;
}

[data-theme="dark"] .jumbotron .lead {
  color: white;
}

[data-theme="dark"] .jumbotron p {
  color: var(--grey-100);
}

/* Navigation bleibt in Dark Mode auf primary-300 */

/* Navigation mit App-Farben - Light Mode */
.navbar-dark {
  background-color: var(--primary-300) !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: white !important;
}

.navbar-dark .nav-link:hover {
  color: var(--primary-0) !important;
}

.navbar-dark .nav-link.active {
  color: white !important;
  font-weight: 600;
}

/* Theme Toggle Button */
#theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Logo weiß färben */
.navbar-brand img {
  filter: brightness(0) invert(1);
}

/* Brand mit Logo vertikal zentrieren */
.navbar-brand {
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero-section {
  background-color: var(--off-white);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

/* Brand Title über der Headline */
.brand-title {
  color: var(--primary-300);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

[data-theme="dark"] .brand-title {
  color: var(--primary-100);
}

/* Mobile Layout Optimierung */
@media (max-width: 991.98px) {
  .brand-title {
    text-align: center;
  }
  
  .phone-mockup {
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .brand-title {
    display: none;
  }
  
  /* Auf Desktop: COOKCLAN nur im Text-Block */
  .col-lg-7 h2:first-of-type::before {
    content: "COOKCLAN";
    display: block;
    color: var(--primary-300);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }
  
  [data-theme="dark"] .col-lg-7 h2:first-of-type::before {
    color: var(--primary-100);
  }
}

.hero-section h1,
.hero-section h2 {
  color: var(--body);
  line-height: 1.2;
}

[data-theme="dark"] .hero-section h1,
[data-theme="dark"] .hero-section h2 {
  color: white;
}

.hero-section .lead,
.hero-section p {
  color: var(--body);
}

[data-theme="dark"] .hero-section .lead,
[data-theme="dark"] .hero-section p {
  color: var(--grey-100);
}

/* Phone Mockup - Overlapping Screenshots */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.phone-background {
  position: relative;
  width: 60%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
  overflow: hidden;
}

.phone-foreground {
  position: absolute;
  width: 60%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  top: 10%;
  right: 0;
  z-index: 2;
  overflow: hidden;
}

/* Skeleton Placeholder Styles */
.skeleton-placeholder {
  width: 60%;
  height: auto;
  border-radius: 40px;
}

[data-theme="dark"] .skeleton-placeholder rect[fill="var(--grey-100)"] {
  fill: var(--grey-700);
}

[data-theme="dark"] .skeleton-placeholder rect[fill="var(--grey-200)"] {
  fill: var(--grey-800);
}

[data-theme="dark"] .skeleton-placeholder rect[fill="var(--grey-300)"],
[data-theme="dark"] .skeleton-placeholder circle[fill="var(--grey-300)"] {
  fill: var(--grey-600);
}

[data-theme="dark"] .phone-background,
[data-theme="dark"] .phone-foreground {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Dark mode: Tausche Screenshots */
[data-theme="dark"] .phone-background {
  content: url('../images/screenshots/start_dark.png');
}

[data-theme="dark"] .phone-foreground {
  content: url('../images/screenshots/dish_dark.png');
}

/* Content Container mit maximaler Breite */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Menüpunkte in die Mitte */
.navbar-nav {
  margin: 0 auto !important;
}

/* Alles in Großbuchstaben */
.navbar-brand,
.nav-link {
  text-transform: uppercase;
}

/* Jumbotron Styling */
.jumbotron {
  background-color: var(--grey-0);
  padding: 5rem 2rem 4rem;
}

.jumbotron h1 {
  color: black;
  letter-spacing: 0.05em;
}

.jumbotron .lead {
  color: black;
}

.jumbotron p {
  color: var(--body);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features-section {
  background-color: white;
}

[data-theme="dark"] .features-section {
  background-color: var(--grey-900);
}

.feature-card {
  background-color: var(--grey-0);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card {
  background-color: var(--grey-900);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  color: var(--primary-300);
}

/* Dishes Section */
.dishes-section {
  background-color: var(--grey-0);
}

[data-theme="dark"] .dishes-section {
  background-color: var(--grey-900);
}

.dish-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.dish-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--grey-200);
}

.dish-content {
  padding: 1rem;
}

.dish-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  color: var(--grey-500);
  font-size: 0.875rem;
}

.dish-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dish-meta svg {
  width: 16px;
  height: 16px;
}

.dish-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dish-rating .stars {
  color: #FFB800;
  font-size: 1rem;
}

.dish-rating .rating-count {
  color: var(--grey-500);
  font-size: 0.875rem;
}

[data-theme="dark"] .dish-card {
  background-color: var(--grey-800);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dish-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .dish-image {
  background-color: var(--grey-700);
}

[data-theme="dark"] .dish-title {
  color: var(--grey-100);
}

/* Screenshots Section */
.screenshots-section {
  background-color: var(--grey-0);
}

[data-theme="dark"] .screenshots-section {
  background-color: var(--grey-800);
}

.screenshot-container {
  transition: transform 0.3s ease;
}

.screenshot-container:hover {
  transform: scale(1.05);
}

.screenshot-container img {
  border: 2px solid var(--grey-200);
}

[data-theme="dark"] .screenshot-container img {
  border-color: var(--grey-700);
}

/* Logo im Content (Jumbotron) */
.jumbotron img {
  filter: none;
}

[data-theme="dark"] .jumbotron img {
  filter: brightness(0) invert(1);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-300);
  border-color: var(--primary-300);
}

.btn-primary:hover {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

/* Links */
a {
  color: var(--accent1);
}

a:hover {
  color: var(--accent1-dark);
}
