/* Nymbra - Makronährstoffe Informationsportal */
/* Color Palette */
:root {
  --primary-dark: #3a4a5a;
  --primary-light: #e8eaed;
  --accent-yellow: #d4a94f;
  --accent-petrol: #1a5f6f;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --border-light: #d0d5dd;
  --shadow-soft: rgba(0, 0, 0, 0.12);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.875rem;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

a {
  color: var(--accent-petrol);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.375rem;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 1.25rem 0;
  box-shadow: 0 2px 8px var(--shadow-medium);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 35px;
  height: 35px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

nav a:hover,
nav a.active {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }
}

/* Main Content */
main {
  margin-top: 60px;
}

/* Sections */
section {
  padding: 120px 0;
  background-color: #ffffff;
}

section.hero {
  padding: 160px 0 140px;
  background-color: var(--primary-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

section.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 600px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: skewX(-45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--text-light);
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 600px;
  line-height: 1.8;
}

section.alternate {
  background-color: var(--primary-light);
}

/* Two-Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.two-column img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 40px var(--shadow-medium);
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .two-column.reverse {
    direction: ltr;
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 4px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.card:hover {
  box-shadow: 0 8px 24px var(--shadow-medium);
  transform: translateY(-2px);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 30px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background-color: #c9a23f;
  box-shadow: 0 4px 16px rgba(212, 169, 79, 0.3);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--accent-petrol);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #0f4556;
  box-shadow: 0 4px 16px rgba(26, 95, 111, 0.3);
  text-decoration: none;
}

.btn-text {
  background-color: transparent;
  color: var(--accent-petrol);
  border-bottom: 2px solid var(--accent-petrol);
  padding: 0;
}

.btn-text:hover {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

/* Full-Width Section with Background Image */
.section-image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(58, 74, 90, 0.75);
}

.section-image .container {
  position: relative;
  z-index: 2;
}

/* Content Block */
.content-block {
  max-width: 900px;
  margin-bottom: 2rem;
}

.content-block h2 {
  margin-top: 0;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Lists */
ul, ol {
  margin-left: 40px;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
}

footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

footer h4 {
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

footer p, footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

footer a:hover {
  color: var(--accent-yellow);
}

footer ul {
  list-style: none;
  margin-left: 0;
}

footer li {
  margin-bottom: 0.75rem;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 40px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  footer .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  section {
    padding: 80px 0;
  }
  
  section.hero {
    padding: 120px 0 100px;
  }
}

/* Disclaimer Section */
.disclaimer {
  background-color: #f8f9fa;
  border-left: 4px solid var(--accent-petrol);
  padding: 30px 40px;
  margin: 60px 0;
  border-radius: 4px;
}

.disclaimer h4 {
  color: var(--accent-petrol);
  margin-top: 0;
}

.disclaimer p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Blog Cards */
.blog-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.blog-card:hover {
  box-shadow: 0 8px 24px var(--shadow-medium);
}

.blog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 30px;
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-petrol);
  box-shadow: 0 0 0 3px rgba(26, 95, 111, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

.gap-40 {
  gap: 40px;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

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

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Success Message */
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}
