/* Grundlegende Stilregeln */
:root {
  --primary-color: #4a86e8;
  --secondary-color: #f6b26b;
  --dark-color: #333;
  --light-color: #f9f9f9;
  --gray-color: #757575;
  --success-color: #0f9d58;
  --border-radius: 6px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  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;
}

/* Header Bereich */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

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

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a5298 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  opacity: 0;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.typewriter {
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white; }
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e69c4f;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Zukunftszitat */
.future-quote {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--primary-color);
}

.future-quote::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 10px;
  font-size: 150px;
  color: rgba(74, 134, 232, 0.1);
  font-family: Georgia, serif;
}

.future-quote h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.future-quote p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.future-quote .author {
  text-align: right;
  font-weight: 600;
}

/* Blog Posts */
.blog-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.section-title p {
  color: var(--gray-color);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

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

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

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

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 25px;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.post-meta i {
  margin-right: 5px;
}

.post-meta span {
  margin-right: 15px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.post-content h3 a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.post-content h3 a:hover {
  color: var(--primary-color);
}

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

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.read-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover {
  color: #2a5298;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Single Post */
.single-post {
  padding: 60px 0;
}

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

.post-header h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.post-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.post-info span {
  margin: 0 15px;
  color: var(--gray-color);
  display: flex;
  align-items: center;
}

.post-info i {
  margin-right: 5px;
}

.post-featured-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.post-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.post-body ul, .post-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body img {
  max-width: 100%;
  margin: 30px 0;
  border-radius: var(--border-radius);
}

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  background-color: #f5f7ff;
  margin: 30px 0;
  font-style: italic;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.post-navigation a {
  display: flex;
  align-items: center;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.post-navigation a:hover {
  color: var(--primary-color);
}

.post-navigation .prev-post i {
  margin-right: 10px;
}

.post-navigation .next-post {
  text-align: right;
}

.post-navigation .next-post i {
  margin-left: 10px;
}

/* Über Uns Seite */
.about-section {
  padding: 60px 0;
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.team-section h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

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

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-info p.position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-info p.bio {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f1f1f1;
  color: var(--dark-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Kontakt Seite */
.contact-section {
  padding: 60px 0;
}

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

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/pattern.svg');
  opacity: 0.1;
  z-index: 1;
}

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

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.info-detail h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-detail p, .info-detail a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.info-detail a:hover {
  color: white;
  text-decoration: underline;
}

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

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

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

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

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--dark-color);
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.2);
}

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

.contact-form .btn {
  background-color: var(--primary-color);
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

.contact-form .btn:hover {
  background-color: #3a76d8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  padding: 20px;
  max-width: 90%;
  width: 800px;
  z-index: 1000;
  display: none;
}

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

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-text h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.cookie-text p {
  color: var(--gray-color);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 15px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background-color: var(--success-color);
  color: white;
}

.cookie-accept:hover {
  background-color: #0b8a4b;
}

.cookie-customize {
  background-color: #f1f1f1;
  color: var(--dark-color);
}

.cookie-customize:hover {
  background-color: #e1e1e1;
}

.cookie-decline {
  background-color: #f1f1f1;
  color: var(--gray-color);
}

.cookie-decline:hover {
  background-color: #e1e1e1;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 60px 0 30px;
}

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  margin-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Danke Popup */
.thank-you-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.thank-you-content {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.thank-you-popup.active {
  opacity: 1;
  visibility: visible;
}

.thank-you-popup.active .thank-you-content {
  transform: translateY(0);
}

.thank-you-content i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

.thank-you-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.thank-you-content p {
  margin-bottom: 25px;
  color: var(--gray-color);
}

.thank-you-content .btn {
  background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .typewriter {
    white-space: normal;
    animation: none;
    border-right: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    background-color: white;
    width: 100%;
    height: calc(100vh - 80px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-text {
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .post-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}
