/* Grundlegende Stilregeln */
:root {
  --primary-color: #2563eb;
  --secondary-color: #0f172a;
  --accent-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --gray-color: #64748b;
  --light-gray-color: #e2e8f0;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

/* Header-Stil */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li:first-child {
  margin-left: 0;
}

nav ul li a {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

#spell-check {
  margin-left: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Hero-Bereich */
.hero {
  background-color: var(--secondary-color);
  color: white;
  padding: 100px 0;
  text-align: center;
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Beitragsraster */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.post-content p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.read-more {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Featured Posts-Bereich */
.featured-posts {
  padding: 80px 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

.center {
  text-align: center;
  margin-top: 40px;
}

/* Newsletter-Bereich */
.newsletter {
  background-color: var(--light-gray-color);
  padding: 80px 0;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 20px;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
}

#newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

#newsletter-form button {
  border-radius: 0 4px 4px 0;
}

/* Footer-Stil */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--light-gray-color);
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--light-gray-color);
}

/* Blog-Seite */
.blog-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.blog-header h2 {
  color: white;
}

.blog-posts {
  padding: 80px 0;
}

.post-date {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

/* Einzelner Beitrag */
.blog-post {
  padding: 80px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.post-meta {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.post-author {
  margin-left: 20px;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content p, .post-content ul, .post-content ol {
  margin-bottom: 20px;
}

.post-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-image-container {
  margin: 30px 0;
  text-align: center;
}

.post-content-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
}

.tag {
  padding: 5px 15px;
  background-color: var(--light-gray-color);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--dark-color);
}

.post-navigation {
  margin: 40px 0;
  border-top: 1px solid var(--light-gray-color);
  border-bottom: 1px solid var(--light-gray-color);
  padding: 20px 0;
}

.post-navigation-links {
  display: flex;
  justify-content: space-between;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.related-post {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-post h4 {
  padding: 15px 15px 5px;
  font-size: 1.1rem;
}

.related-post p {
  padding: 0 15px;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.related-post .read-more {
  padding: 0 15px 15px;
  display: block;
}

/* Über uns Seite */
.about-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.about-header h2 {
  color: white;
}

.our-mission {
  padding: 80px 0;
  background-color: #f9fafb;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mission-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-members {
  padding: 80px 0;
}

.team-members h2 {
  text-align: center;
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.team-member h3 {
  margin-bottom: 5px;
}

.team-member p {
  color: var(--gray-color);
  margin-bottom: 10px;
}

.our-values {
  padding: 80px 0;
  background-color: #f9fafb;
}

.our-values h2 {
  text-align: center;
  margin-bottom: 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.value-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 10px;
}

/* Kontaktseite */
.contact-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.contact-header h2 {
  color: white;
}

.contact-info {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-details h3 {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.icon {
  margin-right: 20px;
  color: var(--primary-color);
}

.details h4 {
  margin-bottom: 5px;
}

.contact-form-container h3 {
  margin-bottom: 30px;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 16px;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

.map-section {
  padding: 40px 0 80px;
}

.map-section h3 {
  text-align: center;
  margin-bottom: 30px;
}

.map-container {
  height: 400px;
  background-color: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal-Stil */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal-btn {
  margin-top: 20px;
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.cookie-more-info {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  nav ul {
    margin-bottom: 20px;
  }
  
  .mission-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 15px 10px;
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  #newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  #newsletter-form button {
    border-radius: 4px;
  }
  
  .post-navigation-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 0;
  }
  
  .featured-posts, .blog-posts, .blog-post, .our-mission, .team-members, .our-values, .contact-info {
    padding: 40px 0;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

/* Typewriter-Effekt für den Titel */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}

#typewriter-title {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  border-right: .15em solid var(--primary-color);
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

/* Icon Styles */
.icon-map-marker, .icon-phone, .icon-envelope {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-map-marker {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-envelope {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}
