/* ==========================================================================
   Glaserei Zinke - Custom Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Lokale Schriftarten einbinden (Montserrat & Lato)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat_400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat_700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Latolitic400.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Global Variables & Base Layout
   -------------------------------------------------------------------------- */
:root {
  --zinke-blue: rgb(24, 57, 241);     /* Original Pico-Blau */
  --zinke-dark-blue: #001f8f;        /* Passendes dunkleres Blau */
  --header-bg: #2C3E50;              /* Dunkle Header- & Footer-Farbe */
  --text-color: #333333;             /* Hauptschriftfarbe */
  --bg-body: #f4f4f4;                /* Hintergrund der Gesamtsite */
  --bg-content: #ffffff;             /* Hintergrund der Inhalts-Box */
}

body {
  background-color: var(--bg-body);
  color: var(--text-color);
  font-family: 'Montserrat', -apple-system, sans-serif !important;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typografie */
h1, h2, h3, h4, h5, h6,
.ueber-uns-wrapper h2,
.footer-col h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
}

p, 
.ueber-uns-col p {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Global Links */
a {
  color: var(--zinke-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Sticky Header & Navigation (#2C3E50)
   -------------------------------------------------------------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header.site-header .container {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: none;
}

/* Firmenname links im Header */
.site-branding a {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-branding a:hover {
  color: #ecf0f1;
}

/* Menü rechts: Nebeneinander */
header.site-header .main-navigation ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 15px;
}

header.site-header .main-navigation li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

header.site-header .main-navigation li a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

header.site-header .main-navigation li a:hover,
header.site-header .main-navigation li a.active {
  background-color: var(--zinke-blue);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Hero-Bereich (Logo & Blauer Streifen)
   -------------------------------------------------------------------------- */
section.modular-_hero,
section.modular-hero,
section.hero-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 !important;
  text-align: center;
  background-color: transparent;
}

.hero-image-container {
  width: 100vw;
  margin: 0;
  padding: 0;
  line-height: 0;
  position: relative;
}

section.modular-_hero img,
section.modular-hero img,
.hero-image-container img {
  display: block;
  width: 75vw;
  max-width: 75vw !important;
  height: auto;
  max-height: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-blue-stripe {
  background-color: var(--zinke-blue);
  height: 500px;
  width: 100vw;
  margin-top: -500px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Leistungs-Modul (Quadratische Kacheln mit Blau-Hover)
   -------------------------------------------------------------------------- */
section.modular-_leistungen,
section.modular-leistungen,
.leistungen-grid-section {
  padding: 60px 20px;
  background-color: var(--bg-body);
  text-align: center;
}

.leistungen-grid-section h2 {
  font-size: 2.2rem;
  color: var(--header-bg);
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.leistungs-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leistungs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  transition: background-color 0.4s ease;
}

.leistungs-card:hover .card-overlay {
  background-color: rgba(24, 57, 241, 0.85);
}

.card-overlay h3 {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.card-link {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.leistungs-card:hover .card-overlay h3 {
  transform: translateY(-3px);
}

.leistungs-card:hover .card-link {
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Inhaltsseiten & Zentrierung
   -------------------------------------------------------------------------- */
.default-content img,
main img,
.content-wrapper img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.default-content,
main .container,
.content-wrapper,
.text-center {
  text-align: center;
}

.text-center ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 15px 0 !important;
}

.text-center li {
  margin: 6px 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Über uns: Full-Width Blau & 2-Spalten Layout
   -------------------------------------------------------------------------- */
section.modular-_ueber-uns,
section.modular-ueber-uns,
.ueber-uns-section,
.ueber-uns-fullwidth {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background-color: var(--zinke-blue) !important;
  color: #ffffff !important;
  padding: 60px 0 !important;
  box-sizing: border-box !important;
}

.ueber-uns-wrapper,
section.modular-_ueber-uns .container,
section.modular-ueber-uns .container,
.ueber-uns-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.ueber-uns-wrapper h2 {
  color: #ffffff !important;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.ueber-uns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.ueber-uns-col p {
  color: #ffffff !important;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Neuer 4-Spalten Haupt-Footer (Zentriertes Layout)
   -------------------------------------------------------------------------- */
footer.site-footer-main {
  background-color: var(--header-bg);
  color: #ecf0f1;
  padding: 45px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center; /* Zentriert alle Texte und Inhalte global im Footer */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.footer-col p {
  color: #ecf0f1 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--zinke-blue);
  text-decoration: underline;
}

/* Social & Icon Styling (Zentriert) */
.footer-social-link,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover,
.social-link:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.footer-social-link .social-icon {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Unterer Impressumsstreifen (Dunkelgrau/Schwarz)
   -------------------------------------------------------------------------- */
footer.site-footer {
  background-color: #1a252f;
  color: #aaaaaa;
  padding: 15px 0;
  font-size: 0.9rem;
  text-align: center;
}

footer.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Responsive Anpassungen für Mobile & Tablets
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Rahmenerweiterung für Startseiten-Module entfernen */
.modular-section-box {
  background-color: transparent; /* Macht den Hintergrund transparent */
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1100px;
  border: none;         /* Entfernt jeglichen Rahmen */
  box-shadow: none;     /* Entfernt den Schatten */
  text-align: center;
}

.modular-section-box h2 {
  color: var(--header-bg);
  font-size: 2.2rem;       /* Einheitliche Größe wie bei den anderen Sektionen */
  margin-bottom: 20px;
}

.modular-section-box .module-content {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Spezielles Layout für die Stellenanzeige */
.job-posting-module {
  background-color: transparent;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 850px; /* Perfekte Breite für Lesbarkeit */
  text-align: left;  /* Alles von Haus aus linksbündig */
}

.job-posting-module h2 {
  color: var(--header-bg);
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-align: center; /* Hauptüberschrift darf gerne zentral stehen */
}

.job-posting-module h3,
.job-posting-module h4 {
  color: var(--header-bg);
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.job-posting-module ul {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
}

.job-posting-module li {
  margin-bottom: 6px;
}