/* =================================
   DSGVO-konforme lokale Schriftarten
   ================================= */

/* 
  OPTION 1: Lokale Inter Fonts ✓ AKTIVIERT
  Dateien sind in assets/fonts/ gespeichert
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
}

/* =================================
   Reset & Base Styles
   ================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 44px;
  overflow-x: clip;
  width: 100%;
}

:root {
  --blue-50: #eaf5ff;
  --blue-100: #d2e9fe;
  --blue-300: #6fb2ea;
  --blue-500: #1b7fd9;
  --blue-700: #0f4f82;
  --blue-900: #0a2f52;
  
  /* Grautöne */
  --gray-900: #171717;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a1a1aa;
  --gray-350: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --gray-25: #fafafa;
  
  /* Schwarz/Weiß */
  --black: #000000;
  --white: #ffffff;
  --dark: #111827;
  --border: #e5e7eb;
  --neutral-dark: #262626;
  --neutral-light: #f5f5f5;
  --blue-light-bg: #c3ddf7;
  --text-light: #e1e8f9;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-blue: 0 8px 24px rgba(27, 127, 217, 0.12);
  
  /* Border Radius */
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* Skip Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #2563eb;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 0.5rem 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* =================================
   Generic Grid System
   ================================= */

/* 3-Column Responsive Grid (Mobile 1col → Tablet 2col → Desktop 3col) */
.grid-responsive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2-Column Responsive Grid (Mobile 1col → Tablet+ 2col) */
.grid-responsive-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-responsive-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

body {
  /* Lokale Inter Fonts (DSGVO-konform, lokal gehostet) */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.nav-toggle {
  display: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  cursor: pointer;
}

#nav-toggle:checked ~ .nav-overlay {
  display: block;
}

#nav-toggle:checked ~ .nav-links {
  display: flex;
  z-index: 1001;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  padding: 0.6rem 1rem;
  min-height: 44px;
  min-width: 120px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--dark);
  letter-spacing: 0.02em;
  position: relative;
  line-height: 1;
}

.nav-button::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--dark);
  box-shadow: 0 4px 0 var(--dark), 0 8px 0 var(--dark);
  margin-right: 0.6rem;
  transform: translateY(-0.15rem);
  vertical-align: middle;
}

.nav-button {
  text-decoration: none;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 0.5rem;
  z-index: 1001;
}

#nav-toggle:checked ~ .nav-links {
  display: flex;
}

#nav-toggle:checked ~ .nav-overlay {
  display: block;
}

.nav-item {
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
  background-color: var(--gray-50);
  color: var(--dark);
  cursor: pointer;
}

.nav-item a {
  color: inherit;
  text-decoration: none;
}

.nav-item:hover,
.nav-item:focus-within {
  background-color: var(--border);
}

.nav-links a {
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--gray-50);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: var(--border);
}

.desktop-links {
  display: none;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.desktop-links a {
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.desktop-links a:hover,
.desktop-links a:focus-visible {
  background-color: var(--gray-100);
  color: var(--dark);
}

@media (min-width: 768px) {
  .nav-button,
  .nav-overlay,
  #nav-toggle,
  .nav-links {
    display: none;
  }

  .desktop-links {
    display: flex;
  }

  .main-nav .container {
    padding: 0.6rem 1rem;
  }
}


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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =================================
   Layout Components
   ================================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* =================================
   Banner Section
   ================================= */

.banner {
  position: relative;
  height: 20vh;
  min-height: 160px;
  background-image: url('assets/images/logo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (min-width: 768px) {
  .banner {
    background-position: center top;
  }
}

@media (min-width: 1024px) {
  .banner {
    background-position: center 30%;
  }
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 79, 130, 0.7);
}

.banner-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.banner h1 {
  color: var(--white);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.banner-tagline {
  display: block;
  font-size: 1.1rem;
  opacity: 0.95;
  margin-top: 0.2rem;
}

@media (min-width: 640px) {
  .banner h1 {
    font-size: 2.25rem;
  }

  .banner-tagline {
    font-size: 1.2rem;
  }
}

@media (min-width: 1024px) {
  .banner h1 {
    font-size: 3rem;
  }

  .banner-tagline {
    font-size: 1.3rem;
  }
}

/* =================================
   Hero Section
   ================================= */

.hero-section {
  background: linear-gradient(180deg, rgba(234,245,255,0.6), var(--white));
  padding: 2rem 0 0 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(27, 127, 217, 0.08);
  contain: layout;
}

@media (min-width: 640px) {
  .hero-section {
    padding: 3rem 0 0 0;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 2rem 0 0 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 4fr 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 5fr 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }
}

/* Hero Left Column */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: stretch;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 5rem;
  padding-top: 1rem;
}

@media (min-width: 1024px) {
  .hero-right {
    padding-left: 0;
  }
}
@media (max-width: 767px) {
  .hero-right {
    padding-left: 0.5rem;
    padding-top: 0.8rem;
  }

  .welcome-text {
    text-align: center !important;
  }

  .hero-section {
    padding-top: 0rem;
  }

  .hero-section .container {
    display: flex;
    flex-direction: column;
  }

  .hero-section .services-highlight {
    order: -1;
    margin-bottom: 1rem;
  }

  .contact-box {
    text-align: center;
    align-items: center;
    margin: 0 auto;
    width: calc(100% - 2rem);
    max-width: 28rem;
  }

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

.services-highlight {
  text-align: center;
}

.services-highlight .btn-primary {
  display: inline-block;
  margin: 1rem auto 0;
}

.welcome-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .welcome-text {
    text-align: left;
  }
}

.welcome-text h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
}

@media (min-width: 1024px) {
  .welcome-text h2 {
    margin-left: 0;
    margin-right: 0;
  }
}

.services-highlight {
  margin-top: 2rem;
}

.contact-box {
  background-color: rgba(234, 245, 255, 0.95);
  border: 1px solid var(--blue-light-bg);
  border-radius: 0.75rem;
  padding: 1.2rem;
  width: 100%;
  max-width: 18rem;
  min-width: 16rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  contain: layout;
}

.contact-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--blue-700);
}

.contact-item {
  margin-bottom: 0.75rem;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.125rem;
  color: var(--gray-900);
  display: inline-block;
}

.contact-value.phone {
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.contact-value.email {
  font-size: 1.125rem;
  word-break: break-all;
  transition: color 0.3s ease;
}

.contact-value.phone:hover,
.contact-value.email:hover {
  color: var(--gray-600);
}

/* Hero Right Column */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.welcome-text h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .welcome-text h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .welcome-text h2 {
    font-size: 3rem;
  }
}

.text-content {
  max-width: 48rem;
}

@media (min-width: 1024px) {
  .text-content {
    margin-left: 0;
  }
}

.text-content p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.text-content p:last-child {
  margin-bottom: 1;
}

/* Services Highlight */
.services-highlight {
  background-image: linear-gradient(rgba(15, 79, 130, 0.75), rgba(15, 79, 130, 0.75)), url('assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .services-highlight {
    padding: 3rem 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  
  .services-highlight > h3,
  .services-highlight > .services-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .services-highlight > .btn-primary {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
}

.services-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-align: left;
}

@media (min-width: 1024px) {
  .services-highlight h3 {
    text-align: center;
  }
}

@media (min-width: 640px) {
  .services-highlight h3 {
    font-size: 1.875rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.service-item p {
  color: var(--gray-300);
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--blue-500);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  border-radius: 999px;
}

.services-highlight .btn-primary {
  background-color: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--white);
  color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 127, 217, 0.25);
}

.services-highlight .btn-primary:hover,
.services-highlight .btn-primary:focus-visible {
  background-color: var(--blue-700);
  color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--white);
}

.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus-visible {
  background-color: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
  border-radius: 3px;
}

/* Verbesserte Fokus-Indikatoren für interaktive Elemente */
a:focus-visible {
  background-color: rgba(37, 99, 235, 0.05);
  transition: background-color 0.2s ease;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-width: 3px;
  outline-style: solid;
  outline-color: #2563eb;
}

/* Reduzierte Bewegungen für Nutzer mit Bewegungsempfindlichkeit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =================================
   Qualities Section
   ================================= */

.qualities-section {
  padding: 2rem 0 5rem 0;
  background-color: var(--blue-50);
}

.section-title {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-900);
  font-weight: 700;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* Grid structure inherited from .grid-responsive */
/* Gap override for tablet+ via media query below */

@media (min-width: 768px) {
  .qualities-grid {
    gap: 3rem;
  }
}

.quality-item {
  border-left: 4px solid var(--neutral-dark);
  padding-left: 1.5rem;
  contain: layout;
}

.quality-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.quality-item p {
  color: var(--gray-600);
  line-height: 1.75;
}

/* =================================
   CTA Section
   ================================= */

.cta-section {
  padding: 2rem 0 4rem 0;
  background-image: linear-gradient(rgba(15, 79, 130, 0.75), rgba(15, 79, 130, 0.75)), url('assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.gallery-cta-section .section-title {
  color: var(--white);
}

@media (min-width: 640px) {
  .cta-section h2 {
    font-size: 1.875rem;
  }
}

.cta-text {
  font-size: 1.125rem;
  color: var(--gray-350);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* =================================
   Services Section
   ================================= */

.services-section {
  padding: 2rem 0;
  background-color: var(--gray-25);
  overflow-x: hidden;
}

/* Verhindert horizontales Scrollen auf Impressum/Datenschutz */
.services-section p,
.services-section a,
.services-section h2,
.services-section h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.services-section a {
  word-break: break-word;
  display: inline-block;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Grid structure inherited from .grid-responsive-2col */
.services-detail-grid {
  gap: 3rem;
}

.service-card {
  background-image: linear-gradient(rgba(234, 245, 255, 0.85), rgba(234, 245, 255, 0.85)), url('assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 2rem;
  border: 1px solid var(--blue-300);
  box-shadow: var(--shadow-blue);
  border-radius: 0.75rem;
  contain: layout;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.service-card ul {
  list-style: none;
}

.service-card ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.service-card ul li:before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--gray-600);
  border-radius: 50%;
  margin-right: 0.75rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* =================================
   Gallery Section
   ================================= */

.gallery-section {
  padding: 2rem 0 3rem 0;
  background-color: var(--blue-50); /* gleiche Farbe wie Qualitäten */
}

/* Grid structure inherited from .grid-responsive-2col */

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--gray-350);
  contain: layout;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(23, 23, 23, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-content h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.gallery-content p {
  color: var(--gray-350);
}

/* Lightbox Styles (CSS-only) */
.lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10001;
}

/* Mobile Lightbox Optimierung */
@media (max-width: 768px) {
  .lightbox {
    padding: 0;
  }
  
  .lightbox img {
    max-width: 100vw;
    max-height: 95vh;
  }
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 3rem;
  font-weight: 300;
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  z-index: 10002;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--gray-300);
  transform: scale(1.1);
}

/* Mobile Close Button */
@media (max-width: 768px) {
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
  }
}

/* Navigation Buttons für Lightbox */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  text-decoration: none;
  z-index: 10002;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

/* Desktop-Version: Sichtbare Buttons */
@media (min-width: 769px) {
  .lightbox-prev,
  .lightbox-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
  }
  
  .lightbox-prev {
    left: 2rem;
  }
  
  .lightbox-next {
    right: 2rem;
  }
  
  .lightbox-prev:hover,
  .lightbox-prev:focus,
  .lightbox-next:hover,
  .lightbox-next:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
  }
  
  .lightbox-prev span,
  .lightbox-next span {
    display: block;
  }
}

/* Mobile-Version: Kompakte seitliche Touch-Bereiche */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 20%;
    height: 60%;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 200;
    opacity: 0.2;
    transition: opacity 0.3s ease;
  }
  
  .lightbox-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 0.5rem;
  }
  
  /* Touch-Feedback: Sichtbar bei Touch */
  .lightbox-prev:active,
  .lightbox-next:active {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .lightbox-prev span,
  .lightbox-next span {
    display: block;
  }
}

/* Image Positioning Helper */
.img-bottom {
  object-position: center bottom;
}

.gallery-item a {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.full-gallery-grid .gallery-item a {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* =================================
   Mobile Optimierungen (Impressum/Datenschutz)
   ================================= */

@media (max-width: 640px) {
  /* Verhindert horizontales Scrollen auf kleinen Geräten */
  .services-section .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  /* Stellt sicher, dass alle Textinhalte umbrechen */
  .services-section p,
  .services-section a,
  .services-section h2,
  .services-section h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
  
  /* Links bekommen spezielle Behandlung */
  .services-section a[href^="http"],
  .services-section a[href^="mailto"],
  .services-section a[href^="tel"] {
    word-break: break-all;
    display: inline-block;
  }
  
  /* Überschriften: Kleinere Schriftgröße für bessere Lesbarkeit */
  .services-section h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  /* Absätze: Optimierte Abstände */
  .services-section p {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
  }
}

/* =================================
   Footer
   ================================= */

.footer {
  background-image: linear-gradient(rgba(10, 47, 82, 0.9), rgba(10, 47, 82, 0.9)), url('assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  padding: 3rem 0;
}

/* Grid structure inherited from .grid-responsive */
.footer-grid {
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-column p {
  margin-bottom: 0.5rem;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--blue-100);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color 0.3s ease;
}

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

/* =================================
   Error Page Styles (404)
   ================================= */

.error-content {
  text-align: center;
  padding: 4rem 2rem;
}

.error-content h2 {
  font-size: 6rem;
  color: var(--blue-700);
  margin-bottom: 1rem;
  font-weight: 700;
}

.error-content .error-message {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.error-content .error-hint {
  margin-bottom: 2rem;
  color: var(--gray-700);
}

.error-content .cta-button {
  display: inline-block;
  background-color: var(--blue-700);
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.error-content .cta-button:hover,
.error-content .cta-button:focus-visible {
  background-color: var(--blue-900);
  transform: translateY(-1px);
}

/* =================================
   Full Gallery Page Styles
   ================================= */

.full-gallery-section {
  padding: 3rem 0 4rem 0;
  background-image: linear-gradient(rgba(250, 250, 250, 0.7), rgba(250, 250, 250, 0.7)), url('assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 1rem;
}

.gallery-main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .gallery-main-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .gallery-main-title {
    font-size: 3rem;
  }
}

.gallery-main-subtitle {
  font-size: 1.125rem;
  color: var(--gray-900);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.gallery-category {
  margin-bottom: 4rem;
  background-color: rgba(15, 79, 130, 0.75);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  contain: layout;
}

@media (min-width: 768px) {
  .gallery-category {
    padding: 3rem;
  }
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  display: block;
  text-align: center;
  margin-top: 0;
}

@media (min-width: 640px) {
  .category-title {
    font-size: 2rem;
  }
}

/* Grid structure inherited from .grid-responsive */

.full-gallery-grid .gallery-item {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-gallery-grid .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.full-gallery-grid .gallery-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-weight: 600;
}

.full-gallery-grid .gallery-content p {
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.4;
}
