/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Container - special styling for hero section */
main.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px; /* Account for fixed navbar */
}

/* Hero Section */
.hero {
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-logo {
  margin-bottom: 30px;
  position: relative;
}

.hero-logo-image {
  max-width: 700px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: heroLogoFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hero-logo-image:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.4)) 
          drop-shadow(0 0 30px rgba(118, 75, 162, 0.3));
  animation-play-state: paused;
}

/* Floating animation for hero logo */
@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

.hero-tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.03em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-logo-image {
    max-width: 450px;
    animation: heroLogoFloatMobile 4s ease-in-out infinite;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-logo-image {
    max-width: 320px;
  }
  
  .hero-logo-image:hover {
    transform: scale(1.05) rotate(1deg);
  }
  
  .hero-tagline {
    font-size: 1.1rem;
  }
}

/* Mobile optimized floating animation */
@keyframes heroLogoFloatMobile {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-image {
    animation: none;
  }
  
  .hero-logo::before {
    animation: none;
  }
}

.container {
  padding: 0 15px;
}

/* Body Styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0;
  padding: 0;
}

/* Navigation Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo a:hover {
  opacity: 0.8;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

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

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link.active {
  color: #667eea;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #667eea;
  transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #2c3e50;
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* About Section Styles */
.about-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
  margin-top: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: 700;
}

.about-intro {
  font-size: 1.2rem;
  color: #34495e;
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.6;
}

.about-text p {
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.highlight-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.highlight-item h3 {
  color: #667eea;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.highlight-item p {
  color: #5a6c7d;
  margin: 0;
  font-size: 0.95rem;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* About Section Responsive */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-photo {
    width: 250px;
    height: 250px;
  }

  .image-placeholder {
    width: 250px;
    height: 250px;
  }
}

/* Qualification Section Styles */
.qualification-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  color: white;
}

.qualification-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  color: white;
}

.qualification-content {
  max-width: 1000px;
  margin: 0 auto;
}

#chart {
  min-height: 400px;
  background: #e7ebf3;
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Qualification Section Responsive */
@media (max-width: 768px) {
  .qualification-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  #chart {
    min-height: 300px;
    padding: 20px;
  }
}

/* References Section Styles */
.references-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
}

.references-section h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.references-intro {
  font-size: 1.2rem;
  color: #5a6c7d;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.reference-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.reference-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.reference-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.reference-item:hover .reference-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* References Section Responsive */
@media (max-width: 768px) {
  .references-section h2 {
    font-size: 2rem;
  }

  .references-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .reference-item {
    padding: 20px;
    min-height: 100px;
  }

  .reference-logo {
    max-height: 60px;
  }
}

/* Contact Section Styles */
.contact-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  color: white;
}

.contact-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.contact-intro {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-details h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.contact-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 1.1rem;
  font-weight: 500;
}

.pgp-key {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin-bottom: 10px !important;
}

.pgp-download {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.pgp-download:hover {
  color: white;
}

/* Contact Map Styles */
.contact-map {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.contact-map h3 {
  margin: 0 0 30px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

.map-note {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.map-note small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Email Grid Styles */
.email-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.email-section .contact-details {
  width: 100%;
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.email-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px 12px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.email-icon {
  margin: 0 auto 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-icon svg {
  width: 24px;
  height: 24px;
}

.email-card h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.email-card .email-protected {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  display: block;
  font-weight: 500;
}

/* Email Protection Styles */
.email-protected {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  cursor: pointer;
}

.email-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-style: normal;
}

.email-link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* Contact Section Responsive */
@media (max-width: 768px) {
  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-item {
    padding: 20px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-map {
    padding: 30px 20px;
  }

  .map-container iframe {
    height: 400px;
  }

  .email-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 350px;
  }

  .email-card {
    padding: 20px 15px;
  }

  .email-card h4 {
    font-size: 1.2rem;
  }

  .email-card .email-protected {
    font-size: 1.1rem;
    font-weight: 500;
  }
}

/* Phone Section Styles */
.phone-info {
  display: flex;
  align-items: center;
}

.phone-number {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-number:hover {
  color: #667eea;
}

/* Phone Section Mobile */
@media (max-width: 768px) {
  .phone-number {
    font-size: 1.2rem;
  }
  
  .contact-details p {
    font-size: 1.2rem;
  }
}

/* Footer Styles */
.footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-social-link-image img {
  filter: grayscale(70%) brightness(1.0);
  transition: filter 0.3s ease;
}

.footer-social-link-image:hover img {
  filter: grayscale(70%) brightness(1.0);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0 20px;
    margin-top: 60px;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-nav {
    gap: 20px;
    justify-content: center;
    width: 100%;
  }

  .footer-social {
    justify-content: center;
    width: 100%;
    gap: 20px;
  }

  .footer-social-link {
    width: 44px;
    height: 44px;
  }

  .footer-social-link svg {
    width: 22px;
    height: 22px;
  }
}

/* Impressum Page Styles */
.impressum-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Datenschutz Page Styles - Simple Layout */
.datenschutz-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.datenschutz-content {
  max-width: 800px;
  margin: 0 auto;
  background: #e8ecf4;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #000000;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.datenschutz-content h1 {
  font-size: 3rem;
  text-align: left;
  margin: 0 0 40px 0;
  font-weight: 700;
  color: #000000;
}

.datenschutz-content h2 {
  color: #000000;
  font-weight: 600;
  margin: 30px 0 15px 0;
}

.datenschutz-content h3 {
  color: #000000;
  font-weight: 700;
  margin: 25px 0 10px 0;
}

.datenschutz-content p {
  margin: 0 0 15px 0;
}

.datenschutz-content ul, .datenschutz-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.datenschutz-content li {
  margin: 5px 0;
}

.datenschutz-content strong {
  color: #000000;
  font-weight: 600;
}

.datenschutz-content a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.datenschutz-content a:hover {
  color: #764ba2;
}

/* Impressum Section */
.impressum-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.impressum-content {
  max-width: 800px;
  margin: 0 auto;
  background: #e8ecf4;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #000000;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.impressum-content h1 {
  font-size: 3rem;
  text-align: left;
  margin: 0 0 40px 0;
  font-weight: 700;
  color: #000000;
}

.impressum-content h2 {
  color: #000000;
  font-weight: 600;
  margin: 30px 0 15px 0;
}

.impressum-content h3 {
  color: #000000;
  font-weight: 700;
  margin: 25px 0 10px 0;
}

.impressum-content p {
  margin: 0 0 15px 0;
}

.impressum-content ul, .impressum-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.impressum-content li {
  margin: 5px 0;
}

.impressum-content strong {
  color: #000000;
  font-weight: 600;
}

.impressum-content a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.impressum-content a:hover {
  color: #764ba2;
}

/* Impressum Responsive */
@media (max-width: 768px) {
  .impressum-section {
    padding: 60px 0;
  }

  .impressum-content {
    margin: 0 15px;
    padding: 25px 20px;
    max-width: calc(100vw - 30px);
    box-sizing: border-box;
  }

  .impressum-content h1 {
    font-size: 2.2rem;
    margin: 0 0 25px 0;
    word-wrap: break-word;
  }

  .impressum-content h2 {
    font-size: 1.4rem;
    margin: 25px 0 12px 0;
    word-wrap: break-word;
  }

  .impressum-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Extra kleine Bildschirme (unter 480px) */
@media (max-width: 480px) {
  .impressum-content {
    margin: 0 8px;
    padding: 15px 12px;
    max-width: calc(100vw - 16px);
  }

  .impressum-content h1 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
  }

  .impressum-content h2 {
    font-size: 1.1rem;
    margin: 15px 0 8px 0;
  }

  .impressum-content p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0 0 10px 0;
  }
}

/* iPhone SE und sehr kleine Bildschirme (unter 375px) */
@media (max-width: 375px) {
  .impressum-content {
    margin: 0 5px;
    padding: 12px 10px;
    max-width: calc(100vw - 10px);
  }

  .impressum-content h1 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
  }

  .impressum-content h2 {
    font-size: 1rem;
    margin: 12px 0 6px 0;
  }

  .impressum-content p {
    font-size: 0.8rem;
    line-height: 1.25;
    margin: 0 0 8px 0;
  }
}

/* Datenschutz Responsive */
@media (max-width: 768px) {
  .datenschutz-section {
    padding: 60px 0;
  }

  .datenschutz-content {
    margin: 0 15px;
    padding: 25px 20px;
    max-width: calc(100vw - 30px);
  }

  .datenschutz-content h1 {
    font-size: 2.2rem;
    margin: 0 0 25px 0;
  }

  .datenschutz-content h2 {
    font-size: 1.4rem;
    margin: 25px 0 12px 0;
  }

  .datenschutz-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 8px 0;
  }

  .datenschutz-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Extra kleine Bildschirme für Datenschutz (unter 480px) */
@media (max-width: 480px) {
  .datenschutz-content {
    margin: 0 8px;
    padding: 15px 12px;
    max-width: calc(100vw - 16px);
  }

  .datenschutz-content h1 {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
  }

  .datenschutz-content h2 {
    font-size: 1.05rem;
    margin: 15px 0 8px 0;
  }

  .datenschutz-content h3 {
    font-size: 0.95rem;
    margin: 12px 0 6px 0;
  }

  .datenschutz-content p {
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0 0 10px 0;
  }

  .datenschutz-content ul, .datenschutz-content ol {
    padding-left: 18px;
    margin: 10px 0;
  }

  .datenschutz-content li {
    margin: 3px 0;
    font-size: 0.8rem;
  }
}

/* iPhone SE und sehr kleine Bildschirme für Datenschutz (unter 375px) */
@media (max-width: 375px) {
  .datenschutz-content {
    margin: 0 5px;
    padding: 12px 8px;
    max-width: calc(100vw - 10px);
  }

  .datenschutz-content h1 {
    font-size: 1.2rem;
    margin: 0 0 12px 0;
  }

  .datenschutz-content h2 {
    font-size: 0.95rem;
    margin: 12px 0 6px 0;
  }

  .datenschutz-content h3 {
    font-size: 0.85rem;
    margin: 10px 0 5px 0;
  }

  .datenschutz-content p {
    font-size: 0.75rem;
    line-height: 1.25;
    margin: 0 0 8px 0;
  }

  .datenschutz-content ul, .datenschutz-content ol {
    padding-left: 15px;
    margin: 8px 0;
  }

  .datenschutz-content li {
    margin: 2px 0;
    font-size: 0.75rem;
  }
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 100px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 20px;
  z-index: 10000;
  transform: translateY(calc(100% + 100px));
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner-text h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.cookie-banner-text p {
  margin: 0;
  opacity: 0.9;
}

.cookie-banner-text a {
  color: #667eea;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #764ba2;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cookie-btn-accept {
  background: #667eea;
  color: white;
}

.cookie-btn-accept:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
  background: transparent;
  color: #667eea;
  border: 1px solid #667eea;
}

.cookie-btn-settings:hover {
  background: #667eea;
  color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  color: #333;
}

.cookie-settings-content h2 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 24px;
}

.cookie-category {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.cookie-category h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-category p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #667eea;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #667eea;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .cookie-banner-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-settings-content {
    margin: 10px;
    padding: 20px;
  }

  .cookie-settings-buttons {
    flex-direction: column;
  }
}

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

.impressum-block {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.impressum-block:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.impressum-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0 0 20px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.impressum-block p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.impressum-block p:last-child {
  margin-bottom: 0;
}

.impressum-block a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.impressum-block a:hover {
  color: white;
}

.impressum-block strong {
  color: white;
  font-weight: 600;
}

/* Impressum Responsive */
@media (max-width: 768px) {
  .impressum-section {
    padding: 100px 0 60px;
  }

  .impressum-section h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .impressum-block {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .impressum-block h2 {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Accessibility / Barrierefreiheit
   ========================================================================== */

/* Skip Link für Screenreader */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: bold;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Verbesserte Focus-Indikatoren */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #4A90E2;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  .hero {
    background: #000;
    color: #fff;
  }

  .about-section,
  .qualification-section,
  .references-section,
  .contact-section {
    background: #fff;
    color: #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Map Fallback Styles */
.map-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.map-fallback {
  position: relative;
  display: block;
  height: 580px;
}

.map-fallback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-fallback:hover .map-fallback-overlay {
  opacity: 1;
}

.map-fallback-content {
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 400px;
}

.map-fallback-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.map-fallback-content button {
  margin-top: 10px;
}

/* ===================================
   404 ERROR PAGE STYLES
   =================================== */

.error-404-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.error-404-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.error-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-visual {
  margin-bottom: 40px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: #667eea;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-icon {
  color: #667eea;
  opacity: 0.8;
  margin: 0 auto;
  width: 120px;
  height: 120px;
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

.error-text h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.error-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-suggestions {
  text-align: left;
  margin: 40px 0;
  padding: 30px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.error-suggestions h2 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-suggestions li {
  padding: 8px 0;
  color: #555;
  font-size: 1.1rem;
  position: relative;
  padding-left: 25px;
}

.error-suggestions li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.error-suggestions a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.error-suggestions a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.error-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 180px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Responsiveness für 404-Seite */
@media (max-width: 768px) {
  .error-404-section {
    padding: 40px 0;
    min-height: 70vh;
  }

  .error-content {
    margin: 20px;
    padding: 30px 20px;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-text h1 {
    font-size: 2rem;
  }

  .error-description {
    font-size: 1.1rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .error-suggestions {
    padding: 20px;
    margin: 30px 0;
  }

  .error-suggestions h2 {
    font-size: 1.2rem;
  }

  .error-suggestions li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 4rem;
  }

  .error-text h1 {
    font-size: 1.8rem;
  }

  .error-icon {
    width: 80px;
    height: 80px;
  }

  .error-content {
    padding: 20px 15px;
  }
}

/* Cookie Privacy Link Styling */
.cookie-privacy-link {
  color: #667eea !important;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cookie-privacy-link:hover {
  color: #764ba2 !important;
  text-decoration: underline;
}

/* Hero H1 Title Styling - Hidden but SEO-friendly */
.hero-title {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Mobile Responsiveness für Hero Title */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

