/* Main styles for Geschwentner website */
:root {
  --primary-color: #a61c1c;
  --secondary-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #dddddd;
  --dark-gray: #666666;
  --white: #ffffff;
  --black: #000000;
  --font-main: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Roboto', Arial, sans-serif;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

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

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

/* Header styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 8px 0;
}

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

.contact-info {
  display: flex;
  align-items: center;
}

.contact-info a {
  color: var(--white);
  margin-right: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

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

.language-selector {
  display: flex;
  align-items: center;
}

.language-selector a {
  color: var(--white);
  margin-left: 10px;
  font-size: 14px;
}

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

.logo {
  max-width: 200px;
}

/* Navigation styles */
.navbar {
  display: flex;
  align-items: center;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--secondary-color);
  cursor: pointer;
}

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

.nav-item {
  position: relative;
  margin-left: 5px;
}

.nav-link {
  display: block;
  padding: 10px 15px;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  color: var(--secondary-color);
  font-size: 14px;
  border-bottom: 1px solid var(--medium-gray);
  transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

/* Hero section */
.hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--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: var(--white);
}

/* Section styles */
.section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.section-title p {
  font-size: 18px;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Services section */
.services {
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.service-content p {
  margin-bottom: 15px;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 4px;
  overflow: hidden;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.about-content p {
  margin-bottom: 20px;
}

/* CTA section */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--font-heading);
}

.footer-col p {
  margin-bottom: 15px;
}

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

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

.footer-links a {
  color: var(--medium-gray);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--medium-gray);
}

.social-links {
  display: flex;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  transition: background-color var(--transition-speed) ease;
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-speed) ease;
    z-index: 1001;
    overflow-y: auto;
    padding-top: 60px;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin-left: 0;
    width: 100%;
  }
  
  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
  }
  
  .nav-item.active .dropdown-menu {
    max-height: 500px;
  }
  
  .dropdown-item {
    padding-left: 30px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
  }
  
  .contact-info {
    margin-bottom: 10px;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 30px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  .logo-nav {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .hero {
    height: 350px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Additional styles for specific pages */

/* Glossary page */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.glossary-nav a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin: 5px;
  background-color: var(--light-gray);
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.glossary-nav a:hover,
.glossary-nav a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.glossary-section {
  margin-bottom: 50px;
}

.glossary-section h2 {
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  font-family: var(--font-heading);
}

.glossary-item {
  margin-bottom: 30px;
}

.glossary-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-family: var(--font-heading);
}

/* Blog page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--dark-gray);
}

.blog-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

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

.blog-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.blog-content p {
  margin-bottom: 15px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
}

.blog-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--light-gray);
  border-radius: 20px;
  font-size: 12px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all var(--transition-speed) ease;
}

.blog-tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Single blog post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 30px;
}

.blog-post-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.blog-post-img {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
}

.blog-post-content {
  margin-bottom: 40px;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.blog-post-content h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--secondary-color);
  font-family: var(--font-heading);
}

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

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

.blog-post-content blockquote {
  padding: 20px;
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
  font-style: italic;
}

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

.contact-info-box {
  margin-bottom: 30px;
}

.contact-info-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

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

.contact-info-item i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 20px;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 16px;
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.map-container {
  height: 400px;
  margin-top: 50px;
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--light-gray);
  padding: 15px 0;
  margin-bottom: 30px;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: var(--dark-gray);
}

.breadcrumb-item a {
  color: var(--dark-gray);
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination-list {
  display: flex;
  list-style: none;
}

.pagination-item {
  margin: 0 5px;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

.pagination-link:hover,
.pagination-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp 0.5s ease;
}

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

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

.text-primary {
  color: var(--primary-color);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

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

.mt-5 {
  margin-top: 50px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 10px;
}

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

.mb-3 {
  margin-bottom: 30px;
}

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

.mb-5 {
  margin-bottom: 50px;
}

.py-1 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.py-2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.py-3 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.py-4 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.py-5 {
  padding-top: 50px;
  padding-bottom: 50px;
}

.px-1 {
  padding-left: 10px;
  padding-right: 10px;
}

.px-2 {
  padding-left: 20px;
  padding-right: 20px;
}

.px-3 {
  padding-left: 30px;
  padding-right: 30px;
}

.px-4 {
  padding-left: 40px;
  padding-right: 40px;
}

.px-5 {
  padding-left: 50px;
  padding-right: 50px;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

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

.justify-content-between {
  justify-content: space-between;
}

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

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.rounded {
  border-radius: 4px;
}

.shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}
