/* 
 * Die Zukunft der Robotik - Stylesheet
 * Ein modernes, responsives Design für einen Robotik-Blog
 */

/* ======= Allgemeine Stile ======= */
:root {
  --primary-color: #2b6cb0;
  --primary-dark: #1d4d89;
  --secondary-color: #3bc9db;
  --accent-color: #f56565;
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #edf2f7;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --danger-color: #e53e3e;
  --border-color: #e2e8f0;
  --border-radius: 0.375rem;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 70px;
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.5;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

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

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

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

.btn-secondary:hover {
  background: var(--text-color);
}

/* ======= Navigation ======= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

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

.nav-links a:hover:after, 
.nav-links a.active:after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: var(--transition);
}

/* ======= Hero Section ======= */
.hero {
  height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: var(--header-height);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

/* ======= Featured Posts ======= */
.featured-posts {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.featured-posts h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.post-card {
  background: 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.1);
}

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

.post-card.small img {
  height: 180px;
}

.post-card.large {
  grid-column: span 2;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.post-card.small .post-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more i {
  transition: transform 0.3s ease;
}

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

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* ======= Statistics Section ======= */
.statistics {
  padding: 5rem 0;
  background-color: white;
}

.statistics h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.chart-container {
  max-width: 800px;
  margin: 0 auto;
  height: 400px;
}

.stats-info {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
}

/* ======= Newsletter ======= */
.newsletter {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background: var(--accent-color);
}

.newsletter-form button:hover {
  background: #e53e3e;
}

/* ======= Blog Posts Page ======= */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/2.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 0 4rem;
  margin-top: var(--header-height);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.blog-posts {
  padding: 5rem 0;
}

.post-date {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ======= Single Blog Post ======= */
.blog-post {
  padding: 5rem 0;
  margin-top: var(--header-height);
}

.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-light);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-featured-image {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

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

.post-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, 
.post-content ol {
  margin: 0 0 1.5rem 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 2rem auto;
}

.post-footer {
  max-width: 800px;
  margin: 3rem auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.post-tags span {
  color: var(--text-light);
}

.post-tags a {
  background: var(--bg-light);
  color: var(--text-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.post-tags a:hover {
  background: var(--border-color);
  color: var(--text-color);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-share span {
  color: var(--text-light);
}

.post-share a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
}

.post-share a.facebook {
  background: #3b5998;
}

.post-share a.twitter {
  background: #1da1f2;
}

.post-share a.linkedin {
  background: #0077b5;
}

.post-share a.email {
  background: var(--text-light);
}

.related-posts {
  max-width: 1000px;
  margin: 4rem auto 0;
}

.related-posts h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ======= About Page ======= */
.about-content {
  padding: 5rem 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-intro p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.mission-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.mission-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.mission-text ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.mission-text li {
  margin-bottom: 0.5rem;
}

.team-section {
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.team-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.team-section > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

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

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

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

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

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.values-section {
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.value-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.partners-section {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.partners-section > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.partners-logo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.partner {
  max-width: 200px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ======= Contact Page ======= */
.contact-content {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 1.5rem;
  font-size: 1.5rem;
}

.info-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.info-detail {
  color: var(--text-light);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

.company-details {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-form,
.complaint-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.9rem;
}

.complaint-section {
  max-width: 800px;
  margin: 0 auto 5rem;
}

.complaint-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.complaint-section > p {
  margin-bottom: 2rem;
}

.map-section {
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.map-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.map-container {
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  background: var(--bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-header h3 {
  font-size: 1.2rem;
  margin: 0;
  padding-right: 2rem;
}

.accordion-icon {
  color: var(--primary-color);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.accordion-item.active .accordion-icon .fa-plus {
  transform: rotate(45deg);
}

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

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.thank-you-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thank-you-message i {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 2rem;
}

/* ======= Footer ======= */
footer {
  background: var(--text-color);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom .social-icons a {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-bottom .social-icons a:hover {
  background: var(--primary-color);
}

/* ======= Cookie Consent ======= */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1.5rem;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

/* ======= Responsive Design ======= */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .about-mission {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mission-image {
    order: 1;
  }
  
  .mission-text {
    order: 2;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: var(--header-height);
    background: white;
    height: calc(100vh - var(--header-height));
    width: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .burger {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .post-card.large {
    grid-column: auto;
  }
  
  .post-footer {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
}

@media (max-width: 576px) {
  .hero {
    height: 500px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
