/* Modern Pasta Recipe Website Styles */
:root {
  /* Pasta-inspired color palette */
  --primary-gold: #d4a574;
  --warm-cream: #f4f1eb;
  --deep-brown: #8b4513;
  --sage-green: #9caf88;
  --rich-red: #c9302c;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --border-light: #e0e0e0;
  
  /* Typography */
  --font-heading: 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--warm-cream) 0%, #faf8f5 100%);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--deep-brown);
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Header */
header {
  background: url('../images/pasta-background.jpeg') center/cover no-repeat;
  color: rgb(240, 234, 234);
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 2);
  padding: var(--spacing-md) 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  font-size: 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4); /* Dark overlay for better text readability */
  z-index: 1;
}

header h1 {
  font-family: 'Georgia', serif; /* Edlere Schriftart */
  font-size: 6rem; /* Größere Schriftgröße für Eleganz */
  color: rgb(246, 241, 237); /* Weißer Text */
  margin: 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
  background: white;
  padding: var(--spacing-sm) 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: var(--spacing-lg);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  background: var(--primary-gold);
  color: white;
  transform: translateY(-2px);
}

nav a.active {
  background: var(--sage-green);
  color: white;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding:  rem 0;
  overflow: hidden;
}

/* Recipe Cards */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.recipe-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-card-content {
  padding: var(--spacing-md);
}

.recipe-card h3 {
  margin-top: 0;
  color: var(--deep-brown);
}

.recipe-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
}

.recipe-tag {
  background: var(--sage-green);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.recipe-tag.difficulty {
  background: var(--primary-gold);
}

.recipe-tag.time {
  background: var(--rich-red);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #c49660 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,165,116,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--sage-green);
  border: 2px solid var(--sage-green);
}

.btn-secondary:hover {
  background: var(--sage-green);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-dark);
}

input, select, textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var() 0%, #f3eee5 100%);
  color: rgb(73, 72, 72);
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

footer p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Generator Header - Separate styling for the generator title section */
.generator-header {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
}

.generator-header h1 {
  color: var(--deep-brown);
  font-size: 1.8rem;
  margin: 0 0 var(--spacing-xs) 0;
  font-family: var(--font-heading);
}

.generator-header p.lead {
  color: var(--text-dark);
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
  line-height: 1.5;
}