/*
Theme Name: St. Ulrichswerk (Custom)
Theme URI: https://st-ulrichswerk.de/
Author: Fabian / Kraftwerk Marketing
Description: Schlankes, redaktionsfreundliches Theme im Look der bisherigen Joomla-Seite.
Version: 2.3.0
License: GNU General Public License v2 or later
Text Domain: st-ulrichswerk
*/

/* =============================================================================
   CSS VARIABLEN - Einheitliches Design-System
   ============================================================================= */
:root {
  /* Farben */
  --stu-red: #aa0031;
  --stu-lime: #9eb000;
  --stu-text: #333;
  --stu-text-light: #666;
  --stu-text-muted: #888;
  --stu-bg: #fff;
  --stu-bg-light: #f5f5f5;
  --stu-border: #e5e5e5;
  --stu-max: 1200px;
  
  /* Schriftarten */
  --stu-font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Schriftgewichte */
  --stu-fw-light: 300;
  --stu-fw-normal: 400;
  --stu-fw-semibold: 600;
  --stu-fw-bold: 700;
  
  /* Fluid Typography - Basis: 320px bis 1200px Viewport */
  /* Formel: calc(min + (max - min) * ((100vw - 320px) / (1200 - 320))) */
  
  /* Body: 15px → 17px */
  --stu-fs-body: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  
  /* Small: 13px → 14px */
  --stu-fs-small: clamp(0.8125rem, 0.78rem + 0.13vw, 0.875rem);
  
  /* Caption/Label: 12px → 13px */
  --stu-fs-caption: clamp(0.75rem, 0.72rem + 0.13vw, 0.8125rem);
  
  /* H1: 28px → 42px */
  --stu-fs-h1: clamp(1.75rem, 1.25rem + 2vw, 2.625rem);
  
  /* H2: 24px → 32px */
  --stu-fs-h2: clamp(1.5rem, 1.18rem + 1.27vw, 2rem);
  
  /* H3: 20px → 26px */
  --stu-fs-h3: clamp(1.25rem, 1.07rem + 0.73vw, 1.625rem);
  
  /* H4: 18px → 22px */
  --stu-fs-h4: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  
  /* H5: 16px → 18px */
  --stu-fs-h5: clamp(1rem, 0.93rem + 0.27vw, 1.125rem);
  
  /* H6: 14px → 16px */
  --stu-fs-h6: clamp(0.875rem, 0.82rem + 0.23vw, 1rem);
  
  /* Lead/Intro: 18px → 22px */
  --stu-fs-lead: clamp(1.125rem, 0.98rem + 0.55vw, 1.375rem);
  
  /* Zeilenhöhen */
  --stu-lh-tight: 1.2;
  --stu-lh-normal: 1.6;
  --stu-lh-relaxed: 1.8;
  
  /* Abstände */
  --stu-space-xs: 0.5rem;
  --stu-space-sm: 1rem;
  --stu-space-md: 1.5rem;
  --stu-space-lg: 2rem;
  --stu-space-xl: 3rem;
  
  /* Legacy Aliase */
  --stuw-red: #aa0031;
  --stuw-lime: #9eb000;
  --stuw-green: #9eb000;
  --stuw-accent: #9eb000;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--stu-font-family);
  font-size: var(--stu-fs-body);
  font-weight: var(--stu-fw-normal);
  color: var(--stu-text);
  background: var(--stu-bg);
  line-height: var(--stu-lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Links */
a { 
  color: var(--stu-lime); 
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { 
  color: var(--stu-red);
  text-decoration: none; 
}

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

/* =============================================================================
   TYPOGRAFIE - Überschriften
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--stu-font-family);
  font-weight: var(--stu-fw-semibold);
  line-height: var(--stu-lh-tight);
  color: var(--stu-text);
}

h1 {
  font-size: var(--stu-fs-h1);
  font-weight: var(--stu-fw-bold);
  line-height: 1.15;
}

h2 {
  font-size: var(--stu-fs-h2);
  font-weight: var(--stu-fw-bold);
}

h3 {
  font-size: var(--stu-fs-h3);
  font-weight: var(--stu-fw-semibold);
}

h4 {
  font-size: var(--stu-fs-h4);
  font-weight: var(--stu-fw-semibold);
}

h5 {
  font-size: var(--stu-fs-h5);
  font-weight: var(--stu-fw-semibold);
}

h6 {
  font-size: var(--stu-fs-h6);
  font-weight: var(--stu-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* =============================================================================
   TYPOGRAFIE - Absätze & Text-Elemente
   ============================================================================= */
p {
  margin: 0 0 1em;
}

/* Lead/Intro Text */
.stu-lead,
.lead {
  font-size: var(--stu-fs-lead);
  line-height: var(--stu-lh-relaxed);
  color: var(--stu-text-light);
}

/* Small Text */
small,
.small,
.stu-small {
  font-size: var(--stu-fs-small);
}

/* Caption / Bildunterschrift */
figcaption,
.caption,
.stu-caption,
.wp-caption-text {
  font-size: var(--stu-fs-caption);
  color: var(--stu-text-muted);
  font-style: italic;
  margin-top: 0.5em;
}

/* Labels */
.label,
.stu-label {
  font-size: var(--stu-fs-caption);
  font-weight: var(--stu-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stu-text-muted);
}

/* Blockquote */
blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--stu-lime);
  background: var(--stu-bg-light);
  font-size: var(--stu-fs-lead);
  font-style: italic;
  color: var(--stu-text-light);
}

blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: var(--stu-fs-small);
  font-style: normal;
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-text);
}

/* Listen */
ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.25em;
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.stu-container {
  max-width: var(--stu-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 600px) {
  .stu-container {
    padding: 0 15px;
  }
}

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  border-top: 6px solid var(--stu-red);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.container {
  max-width: var(--stu-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Wrap: Logo links, Rest rechts */
.header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 0;
  transition: padding 0.3s ease;
}
.site-header.is-scrolled .header-wrap {
  padding: 8px 0;
}

/* Logo - aligned mit Menü-Unterkante */
.brand {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  margin-bottom: 8px;
}
.brand img {
  max-height: 70px;
  width: auto;
  transition: max-height 0.3s ease;
}
.site-header.is-scrolled .brand img {
  max-height: 45px;
}
.site-header.is-scrolled .brand {
  margin-bottom: 0;
}

/* Rechte Seite: Buttons oben, Menü unten */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Topbar - Buttons */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Mobile Topbar standardmäßig versteckt */
.topbar--mobile {
  display: none;
}

.site-header.is-scrolled .topbar--desktop {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.topbar a.topbtn {
  background: var(--stu-red);
  color: #fff;
  padding: 8px 16px;
  font-size: var(--stu-fs-caption);
  font-weight: var(--stu-fw-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  text-decoration: none;
  transition: background 0.2s ease;
}
.topbar a.topbtn:hover {
  background: #8a0028;
  text-decoration: none;
}
.topbar .lang {
  font-size: var(--stu-fs-caption);
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
}

/* Navigation */
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 8px 0 0 0;
  padding: 0;
  align-items: center;
}

/* Mobile Toggle - default hidden */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.primary-nav a {
  color: #222;
  font-size: var(--stu-fs-body);
  font-weight: var(--stu-fw-normal);
  text-decoration: none;
}
.primary-nav a:hover {
  color: var(--stu-red);
  text-decoration: none;
}
.primary-nav .current-menu-item > a {
  color: var(--stu-red);
  font-weight: var(--stu-fw-semibold);
}
.primary-nav .menu-item-has-children {
  position: relative;
}
.primary-nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.primary-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.primary-nav .menu-item-has-children:hover > a::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #eee;
  min-width: 220px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 100;
}
.primary-nav .sub-menu a {
  display: block;
  padding: 8px 16px;
}
.primary-nav .menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* =============================================================================
   HERO SLIDER - Volle Breite, keine Rundungen (wie Joomla)
   ============================================================================= */
.stu-hero {
  position: relative;
  margin: 0;
  width: 100%;
}
.stu-hero-inner {
  max-width: 100%;
  padding: 0;
}
.stu-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
.stu-hero-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.stu-hero-slide {
  min-width: 100%;
  position: relative;
}
.stu-hero-slide img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center center;
  display: block;
}
@media (max-width: 900px) {
  .stu-hero-slide img { height: 450px; }
}
@media (max-width: 600px) {
  .stu-hero {
    margin: 0;
  }
  .stu-hero-slide img { 
    height: 60vw;
    min-height: 280px;
    max-height: 400px;
  }
}
.stu-hero-slide-link {
  display: block;
}
.stu-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 40px 80px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
}
.stu-hero-overlay-inner {
  max-width: var(--stu-max);
}
.stu-hero-overlay h2 {
  color: #fff;
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  font-weight: var(--stu-fw-bold);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.1;
}
.stu-hero-overlay p {
  color: rgba(255,255,255,0.95);
  margin: 0;
  font-size: var(--stu-fs-lead);
  font-weight: var(--stu-fw-semibold);
  max-width: 60ch;
}

/* Slider Button */
.stu-hero-overlay .stu-hero-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: var(--stu-fs-small);
  font-weight: var(--stu-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
.stu-hero-overlay .stu-hero-cta:hover {
  background: #fff;
  color: var(--stu-red);
  border-color: #fff;
}

@media (max-width: 768px) {
  .stu-hero-overlay {
    padding: 25px 20px;
  }
  .stu-hero-overlay h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }
  .stu-hero-overlay p {
    font-size: 0.9rem;
  }
  .stu-hero-overlay .stu-hero-cta {
    padding: 10px 20px;
    font-size: 0.75rem;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .stu-hero-overlay {
    padding: 20px 15px;
  }
  .stu-hero-overlay h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .stu-hero-overlay p {
    font-size: 0.85rem;
  }
}
.stu-hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.stu-hero-btn {
  pointer-events: auto;
  border: 0;
  background: rgba(255,255,255,0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.stu-hero-btn:hover {
  background: #fff;
}
.stu-hero-btn span {
  font-size: 22px;
  line-height: 1;
  color: #333;
}
.stu-hero-slide--placeholder {
  background: linear-gradient(135deg, var(--stu-red), #d4004a);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.stu-hero-placeholder {
  text-align: center;
  color: #fff;
  padding: 40px;
}
.stu-hero-placeholder h1 {
  font-size: 48px;
  margin: 0 0 10px;
}

/* =============================================================================
   NEWS / AKTUELLES SEKTION
   ============================================================================= */
.stu-home {
  padding-bottom: 0;
}
.stu-news {
  padding: 0 0 50px;
}
.stu-section-head {
  text-align: center;
  margin: 60px 0 45px;
}
.stu-section-head h2 {
  margin: 0 0 8px;
  font-size: var(--stu-fs-h4);
  font-weight: var(--stu-fw-normal);
  color: var(--stu-lime);
  text-transform: none;
  letter-spacing: 0;
}
.stu-section-head p {
  margin: 0;
  font-size: var(--stu-fs-h1);
  line-height: var(--stu-lh-tight);
  font-weight: var(--stu-fw-normal);
  color: var(--stu-red);
}
@media (max-width: 560px) {
  .stu-section-head { margin: 40px 0 30px; }
}

/* News Grid - 3 Spalten, flaches Design */
.stu-grid {
  display: grid;
  gap: 40px;
}
.stu-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .stu-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 620px) {
  .stu-grid-3 { grid-template-columns: 1fr; gap: 35px; }
}

/* Cards - Flach, ohne Schatten (wie Joomla) */
.stu-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.stu-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.stu-card-link:hover {
  text-decoration: none;
}
.stu-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
@media (max-width: 1024px) {
  .stu-card-media img { height: 200px; }
}
@media (max-width: 620px) {
  .stu-card-media img { height: 220px; }
}
.stu-card-body {
  padding: 16px 0 0;
}
.stu-card-title {
  margin: 0 0 8px;
  font-size: var(--stu-fs-h4);
  line-height: var(--stu-lh-tight);
  font-weight: var(--stu-fw-normal);
  color: var(--stu-lime);
}
.stu-card-meta {
  margin: 0 0 10px;
  font-size: var(--stu-fs-small);
  color: var(--stu-red);
  font-weight: var(--stu-fw-semibold);
}
.stu-card-excerpt {
  margin: 0 0 12px;
  color: #444;
  font-size: var(--stu-fs-body);
  line-height: var(--stu-lh-normal);
}
.stu-card-readmore {
  display: inline-block;
  color: var(--stu-lime);
  font-weight: var(--stu-fw-semibold);
  font-size: var(--stu-fs-body);
}

.stu-section-footer {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.stu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--stu-font-family);
  font-weight: var(--stu-fw-bold);
  font-size: var(--stu-fs-small);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.stu-btn-outline,
.stu-btn--outline {
  border: 2px solid var(--stu-red);
  color: var(--stu-red);
  background: #fff;
}
.stu-btn-outline:hover,
.stu-btn--outline:hover {
  background: var(--stu-red);
  color: #fff;
  text-decoration: none;
}
.stu-btn-primary,
.stu-btn--primary {
  background: var(--stu-red);
  color: #fff;
  border: 2px solid var(--stu-red);
}
.stu-btn-primary:hover,
.stu-btn--primary:hover {
  background: #8a0028;
  border-color: #8a0028;
  text-decoration: none;
}

/* =============================================================================
   BEREICHE / TILES SEKTION - Halbtransparent auf Foto-Hintergrund
   ============================================================================= */
.stu-tiles {
  position: relative;
  padding: 70px 0;
  margin: 0;
  background: url('assets/images/tri-bg.jpg') center/cover no-repeat;
}
.stu-tiles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.stu-tiles .stu-container {
  position: relative;
  z-index: 1;
}
.stu-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .stu-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .stu-tiles-grid { grid-template-columns: 1fr; }
  .stu-tiles { padding: 50px 0; }
}

.stu-tile {
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 0;
  box-shadow: none;
  min-height: 240px;
  display: flex;
  overflow: hidden;
}
.stu-tile--red {
  background: rgba(170, 0, 49, 0.78);
}
.stu-tile--green,
.stu-tile--lime {
  background: rgba(158, 176, 0, 0.78);
}
.stu-tile-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #fff;
  text-decoration: none;
  padding: 30px 26px;
  text-align: center;
}
.stu-tile-link:hover {
  text-decoration: none;
}
.stu-tile-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}
.stu-tile h3 {
  margin: 0 0 14px;
  font-size: var(--stu-fs-h3);
  font-weight: var(--stu-fw-bold);
  color: #fff;
}
.stu-tile p {
  margin: 0 0 auto;
  color: rgba(255,255,255,0.92);
  font-size: var(--stu-fs-body);
  line-height: var(--stu-lh-normal);
}
.stu-tile-btn {
  margin-top: 20px;
  display: inline-block;
  align-self: center;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 10px 20px;
  font-size: var(--stu-fs-caption);
  font-weight: var(--stu-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.2s;
}
.stu-tile-link:hover .stu-tile-btn {
  background: #fff;
  color: var(--stu-red);
  border-color: #fff;
}

/* =============================================================================
   ÜBER UNS SEKTION - Mit hellem Hintergrund
   ============================================================================= */
.stu-about {
  padding: 70px 0;
  background: transparent;
}
.stu-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 1024px) {
  .stu-split { grid-template-columns: 1fr; gap: 30px; }
}
.stu-split-media {
  position: relative;
}
.stu-media-box {
  background: var(--stu-red);
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
}
.stu-media-box img {
  width: 100%;
  height: auto;
  display: block;
}
.stu-media-caption {
  padding: 12px 0 0;
  font-size: var(--stu-fs-caption);
  color: rgba(255,255,255,0.85);
  line-height: var(--stu-lh-normal);
}
.stu-split-content h2 {
  font-size: var(--stu-fs-small);
  color: rgba(0,0,0,0.5);
  font-weight: var(--stu-fw-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.stu-subhead {
  margin: 0 0 20px;
  font-size: var(--stu-fs-h2);
  font-weight: var(--stu-fw-normal);
  color: var(--stu-red);
  line-height: var(--stu-lh-tight);
}
.stu-richtext {
  color: #444;
  font-size: var(--stu-fs-body);
  line-height: var(--stu-lh-relaxed);
}
.stu-richtext p {
  margin: 0 0 1em;
}

/* =============================================================================
   MIETANGEBOTE SEKTION
   ============================================================================= */
.stu-rent {
  padding: 70px 0;
  background: transparent;
}
.stu-rent .stu-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 1024px) {
  .stu-rent .stu-container { grid-template-columns: 1fr; }
}
.stu-rent .stu-split-content h2 {
  font-size: var(--stu-fs-small);
  color: rgba(0,0,0,0.5);
  font-weight: var(--stu-fw-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.stu-rent .stu-subhead {
  font-size: var(--stu-fs-h2);
  margin-bottom: 16px;
}
.stu-rent .stu-split-content p {
  color: #444;
  font-size: var(--stu-fs-body);
  line-height: var(--stu-lh-relaxed);
  margin: 0 0 20px;
}
.stu-map-box {
  background: #fff;
  border-radius: 0;
}
.stu-map-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================================================
   PROJEKTE SEKTION - Volle Breite mit Hintergrundbildern (wie Joomla)
   ============================================================================= */
.stu-projects {
  padding: 60px 0 0;
  background: #fff;
}
.stu-projects .stu-section-head {
  margin: 0 0 30px;
}
.stu-projects .stu-section-head h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--stu-red);
}
.stu-project-states {
  display: flex;
  width: 100%;
}
@media (max-width: 768px) {
  .stu-project-states { flex-direction: column; }
}
.stu-project-state {
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
@media (max-width: 768px) {
  .stu-project-state { min-height: 200px; }
}
.stu-project-state::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}
.stu-project-state--lime::before {
  background: rgba(158, 176, 0, 0.75);
}
.stu-project-state--red::before {
  background: rgba(170, 0, 49, 0.75);
}
.stu-project-state:hover::before {
  opacity: 0.85;
}
.stu-state-title {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 300;
  color: #fff;
}
@media (max-width: 900px) {
  .stu-state-title { font-size: 26px; }
}
@media (max-width: 600px) {
  .stu-state-title { font-size: 22px; }
}

/* =============================================================================
   MITGLIEDSCHAFTEN / LOGOS
   ============================================================================= */
.stu-memberships {
  padding: 50px 0 70px;
  background: #fff;
}
.stu-memberships .stu-section-head {
  margin: 0 0 30px;
}
.stu-memberships .stu-section-head h2 {
  font-size: 20px;
  font-weight: 400;
  color: #333;
}
.stu-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}
.stu-logo {
  background: #fff;
  padding: 10px;
}
.stu-logo img {
  height: 50px;
  width: auto;
  display: block;
}
.stu-logo a {
  display: block;
}

/* =============================================================================
   FOOTER - Grüner Hintergrund wie Joomla
   ============================================================================= */
.site-footer {
  border-top: none;
  padding: 0;
  background: transparent;
}

.footer-main {
  background: var(--stu-lime);
  padding: 50px 0 40px;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 40px;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
}

.footer-col h4 {
  font-size: var(--stu-fs-body);
  font-weight: var(--stu-fw-bold);
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-company {
  margin: 0 0 20px;
  font-size: var(--stu-fs-small);
  line-height: var(--stu-lh-normal);
  color: rgba(255,255,255,0.9);
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  font-size: var(--stu-fs-small);
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: #fff;
  margin-top: 2px;
}
.footer-contact-item a,
.footer-contact-item span {
  color: #fff;
  text-decoration: none;
}
.footer-contact-item a:hover {
  text-decoration: underline;
}

/* Öffnungszeiten */
.footer-hours table {
  border-collapse: collapse;
  font-size: var(--stu-fs-small);
  color: rgba(255,255,255,0.9);
}
.footer-hours td {
  padding: 2px 15px 2px 0;
  vertical-align: top;
}
.footer-hours-note {
  margin: 15px 0 0;
  font-size: var(--stu-fs-caption);
  color: rgba(255,255,255,0.8);
  line-height: var(--stu-lh-normal);
}

/* Links */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .footer-links-grid { grid-template-columns: 1fr; }
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin: 0 0 8px;
}
.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: var(--stu-fs-small);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-menu a::before {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
}
.footer-menu a:hover {
  text-decoration: underline;
}

/* Copyright Bar */
.footer-bottom {
  background: var(--stu-lime);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--stu-fs-caption);
  color: rgba(255,255,255,0.9);
  position: relative;
}
.footer-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--stu-red);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--stu-red);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  background: #8a0028;
  text-decoration: none;
}
.scroll-to-top span {
  font-size: 16px;
}

/* =============================================================================
   UNTERSEITEN - Basis-Styles
   ============================================================================= */
.page-title {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}
.page-title h1 {
  margin: 0;
  color: var(--stu-red);
  font-size: 36px;
  font-weight: 500;
}
.content {
  padding: 40px 0;
}
.entry-content > * + * {
  margin-top: 1em;
}

/* Archive Grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   RESPONSIVE MOBILE NAV
   ============================================================================= */

/* Mobile Navigation standardmäßig versteckt */
.primary-nav--mobile {
  display: none;
}

@media (max-width: 1024px) {
  .header-wrap {
    display: grid;
    grid-template-areas: 
      "topbar topbar"
      "brand toggle"
      "mobilenav mobilenav";
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    position: relative;
  }
  
  .brand {
    grid-area: brand;
    margin-bottom: 0;
  }
  
  /* Mobile Topbar anzeigen */
  .topbar--mobile {
    display: flex;
    grid-area: topbar;
    justify-content: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
  }
  
  /* Desktop Topbar und Navigation verstecken */
  .topbar--desktop,
  .header-right {
    display: none !important;
  }
  
  .nav-toggle {
    grid-area: toggle;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    z-index: 100;
  }
  
  .nav-toggle-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--stu-text);
    position: relative;
    pointer-events: none;
    transition: background 0.2s ease;
  }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--stu-text);
    pointer-events: none;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
  }
  .nav-toggle-icon::before { top: -7px; }
  .nav-toggle-icon::after { bottom: -7px; }
  
  /* Hamburger zu X Animation */
  .nav-toggle.is-active .nav-toggle-icon {
    background: transparent;
  }
  .nav-toggle.is-active .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle.is-active .nav-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  
  /* Mobile Navigation */
  .primary-nav--mobile {
    display: block;
    grid-area: mobilenav;
    background: #fff;
    border-top: 1px solid #eee;
    margin: 10px -20px -15px -20px;
    padding: 0 20px;
    /* Animation */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .primary-nav--mobile.is-open {
    max-height: 500px;
    padding: 0 20px 10px;
  }
  .primary-nav--mobile ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 0;
    margin: 0;
    list-style: none;
  }
  .primary-nav--mobile li {
    border-bottom: 1px solid #eee;
  }
  .primary-nav--mobile li:last-child {
    border-bottom: 0;
  }
  .primary-nav--mobile a {
    display: block;
    padding: 12px 0;
    color: var(--stu-text);
    text-decoration: none;
  }
  .primary-nav--mobile .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0 0 0 15px;
    min-width: auto;
    background: transparent;
  }
  .primary-nav--mobile .menu-item-has-children > a::after {
    display: none;
  }
}

/* Sehr kleine Screens: Buttons kleiner */
@media (max-width: 480px) {
  .topbar a.topbtn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .topbar .lang {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* =============================================================================
   LEGACY / STUW KLASSEN (für Unterseiten-Templates)
   ============================================================================= */
.stuw-container { max-width: var(--stu-max); margin: 0 auto; padding: 0 20px; }
.stuw-content { padding: 40px 0; }
.stuw-h1 { font-size: 42px; line-height: 1.15; margin: 0; color: var(--stu-red); font-weight: 300; }
@media (max-width: 680px) { .stuw-h1 { font-size: 32px; } }
.stuw-h3 { font-size: 20px; margin: 0 0 12px; }
.stuw-lead { margin: 10px 0 0; color: rgba(0,0,0,.7); }
.stuw-card { background: #fff; border: 1px solid rgba(0,0,0,.08); padding: 18px; border-radius: 0; }
.stuw-card--accent { border-left: 6px solid var(--stu-lime); }
.stuw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 0; text-decoration: none; font-weight: 700; margin-top: 10px; }
.stuw-btn--primary { background: var(--stu-red); color: #fff; }
.stuw-btn--outline { border: 2px solid var(--stu-red); color: var(--stu-red); background: #fff; }
.stuw-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 960px) { .stuw-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .stuw-cards { grid-template-columns: 1fr; } }

/* =============================================================================
   LIME/GRÜN VARIANTEN (für Stellenangebote)
   ============================================================================= */
.stu-media-box--lime {
  background: var(--stu-lime);
}
.stu-subhead--lime {
  color: var(--stu-lime);
}
.stu-btn--lime {
  border-color: var(--stu-lime);
  color: var(--stu-lime);
}
.stu-btn--lime:hover {
  background: var(--stu-lime);
  color: #fff;
}

/* Stellenangebote - wie Über uns aber mit grünem Rahmen */
.stu-jobs {
  padding: 70px 0;
  background: #fff;
}
.stu-jobs .stu-split {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 1024px) {
  .stu-jobs .stu-split { grid-template-columns: 1fr; }
}
.stu-jobs .stu-job-list {
  margin: 0 0 25px;
}
.stu-jobs .stu-job {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 15px;
  margin: 0 0 15px;
  border-bottom: 1px solid #eee;
}
.stu-jobs .stu-job:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.stu-jobs .stu-job-title {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
}
.stu-jobs .stu-job-title a {
  color: #222;
  text-decoration: none;
}
.stu-jobs .stu-job-title a:hover {
  color: var(--stu-lime);
}
.stu-jobs .stu-job-meta {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* =============================================================================
   MITARBEITER SLIDER - Große Bilder mit Hover-Overlay (wie Joomla)
   ============================================================================= */
.stu-employees {
  padding: 60px 0 0;
  background: #fff;
}

.stu-employees .stu-section-head {
  margin: 0 0 30px;
}
.stu-employees .stu-section-head h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--stu-red);
}

.stu-emp-slider {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}
.stu-emp-slider::-webkit-scrollbar {
  display: none;
}
.stu-emp-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.stu-emp-item {
  flex: 1 0 20%;
  min-width: 200px;
  position: relative;
  scroll-snap-align: start;
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
}
@media (max-width: 1200px) {
  .stu-emp-item { flex: 1 0 25%; }
}
@media (max-width: 900px) {
  .stu-emp-item { flex: 1 0 33.333%; }
}
@media (max-width: 600px) {
  .stu-emp-item { flex: 1 0 50%; }
}

.stu-emp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.stu-emp-item:hover img {
  transform: scale(1.05);
}

.stu-emp-placeholder {
  width: 100%;
  height: 100%;
  background: #ddd;
}

.stu-emp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(158, 176, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stu-emp-item:hover .stu-emp-overlay {
  opacity: 1;
}

.stu-emp-overlay .stu-emp-name {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 5px;
  text-transform: uppercase;
}
.stu-emp-overlay .stu-emp-pos {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* =============================================================================
   BEREICHE - Dynamisches Hintergrundbild
   ============================================================================= */
.stu-tiles {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =============================================================================
   UNTERSEITEN - Basis
   ============================================================================= */
.stu-page {
  background: #fff;
}

/* Hero Split: 50% Bild | 50% Roter Text */
.stu-page-hero-split {
  display: flex;
  width: 100%;
  min-height: 400px;
  max-height: 400px;
  height: 400px;
}
@media (max-width: 900px) {
  .stu-page-hero-split {
    flex-direction: column;
    min-height: auto;
    max-height: none;
    height: auto;
  }
}

.stu-hero-image {
  flex: 1;
  min-height: 400px;
  max-height: 400px;
  height: 400px;
  overflow: hidden;
  position: relative;
}
.stu-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
@media (max-width: 900px) {
  .stu-hero-image {
    min-height: 280px;
    max-height: 350px;
    height: 50vw;
    flex: none;
  }
  .stu-hero-image img {
    position: absolute;
    width: 100%;
    height: 100%;
  }
}

.stu-hero-text {
  flex: 1;
  background: var(--stu-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 60px;
  min-height: 400px;
  max-height: 400px;
  height: 400px;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .stu-hero-text {
    padding: 40px;
  }
}
@media (max-width: 900px) {
  .stu-hero-text {
    padding: 35px 25px;
    min-height: auto;
    max-height: none;
    height: auto;
  }
}

.stu-hero-text h1 {
  font-size: 38px;
  font-weight: 300;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}
@media (max-width: 680px) {
  .stu-hero-text h1 { font-size: 28px; }
}

.stu-hero-text p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  margin: 0;
}
@media (max-width: 680px) {
  .stu-hero-text p { font-size: 16px; }
}

/* Altes Hero (fuer Ueber uns) */
.stu-page-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.stu-page-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.stu-page-hero--about img {
  max-height: 400px;
  object-fit: cover;
}

.stu-page-content {
  padding: 50px 0;
}

.stu-page-header {
  margin: 0 0 30px;
}
.stu-page-header h1 {
  font-size: 42px;
  font-weight: 300;
  color: var(--stu-red);
  margin: 0 0 15px;
  line-height: 1.2;
}
@media (max-width: 680px) {
  .stu-page-header h1 { font-size: 32px; }
}

.stu-page-lead {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  margin: 0;
}
@media (max-width: 680px) {
  .stu-page-lead { font-size: 17px; }
}

/* =============================================================================
   BEREICHSSEITE - Grid Layout
   ============================================================================= */
.stu-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}
@media (max-width: 1024px) {
  .stu-page-grid { grid-template-columns: 1fr; gap: 40px; }
}

.stu-page-full {
  max-width: 800px;
}

.stu-page-main .stu-richtext,
.stu-page-full .stu-richtext {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}
.stu-page-main .stu-richtext p,
.stu-page-full .stu-richtext p {
  margin: 0 0 1.2em;
}
.stu-page-main .stu-richtext ul,
.stu-page-main .stu-richtext ol,
.stu-page-full .stu-richtext ul,
.stu-page-full .stu-richtext ol {
  margin: 0 0 1.5em;
  padding: 0 0 0 1.5em;
}
.stu-page-main .stu-richtext li,
.stu-page-full .stu-richtext li {
  margin: 0 0 0.5em;
}
.stu-page-main .stu-richtext h2,
.stu-page-full .stu-richtext h2 {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 2em 0 0.75em;
}
.stu-page-main .stu-richtext h3,
.stu-page-full .stu-richtext h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 1.5em 0 0.5em;
}

/* Button unter Text */
.stu-page-button {
  margin: 30px 0 0;
}

/* Sidebar Boxes */
.stu-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px 0;
}

.stu-page-sidebar-title {
  font-size: 20px;
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-red);
  margin: 0 0 5px;
}

.stu-sidebar-box {
  padding: 20px;
  border-radius: 4px;
}

/* Base h3 — wird von Varianten überschrieben */
.stu-sidebar-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #222;
}

/* =============================================================================
   SIDEBAR BOX VARIANTEN - Hintergrundfarben
   ============================================================================= */

/* Weiß mit grünem Rand (Standard) */
.stu-sidebar-box--bg-white {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--stu-lime);
}
.stu-sidebar-box--bg-white h3 {
  color: #222;
}
.stu-sidebar-box--bg-white .stu-sidebar-text,
.stu-sidebar-box--bg-white p {
  color: #555;
}
.stu-sidebar-box--bg-white .stu-sidebar-links a {
  color: var(--stu-lime);
}

/* Grüner Hintergrund */
.stu-sidebar-box--bg-green {
  background: var(--stu-lime);
  color: #fff;
}
.stu-sidebar-box.stu-sidebar-box--bg-green h3 {
  color: #fff;
}
.stu-sidebar-box--bg-green .stu-sidebar-text,
.stu-sidebar-box--bg-green .stu-sidebar-text p,
.stu-sidebar-box--bg-green p {
  color: rgba(255,255,255,0.95);
}
.stu-sidebar-box--bg-green .stu-sidebar-text a {
  color: #fff;
}
.stu-sidebar-box--bg-green .stu-sidebar-links a {
  color: #fff;
}

/* Roter Hintergrund */
.stu-sidebar-box--bg-red {
  background: var(--stu-red);
  color: #fff;
}
.stu-sidebar-box.stu-sidebar-box--bg-red h3 {
  color: #fff;
}
.stu-sidebar-box--bg-red .stu-sidebar-text,
.stu-sidebar-box--bg-red .stu-sidebar-text p,
.stu-sidebar-box--bg-red p {
  color: rgba(255,255,255,0.95);
}
.stu-sidebar-box--bg-red .stu-sidebar-text a {
  color: #fff;
}
.stu-sidebar-box--bg-red .stu-sidebar-links a {
  color: #fff;
}
.stu-sidebar-box p {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.5;
}
.stu-sidebar-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.stu-sidebar-text p {
  margin: 0 0 8px;
}
.stu-sidebar-text a {
  color: var(--stu-red);
}

.stu-sidebar-link {
  display: inline-block;
  color: var(--stu-lime);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.stu-sidebar-link:hover {
  opacity: 0.8;
}

.stu-sidebar-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stu-sidebar-downloads li {
  margin: 0 0 8px;
}
.stu-sidebar-downloads a {
  color: var(--stu-lime);
  text-decoration: none;
  font-size: 14px;
}

/* Neue Links-Liste für flexible Sidebar-Boxen */
.stu-sidebar-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.stu-sidebar-links li {
  margin: 0 0 8px;
}
.stu-sidebar-links li:last-child {
  margin-bottom: 0;
}
.stu-sidebar-links a {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.stu-sidebar-links a:hover {
  opacity: 0.8;
}

/* =============================================================================
   UEBER UNS SEITE
   ============================================================================= */
.stu-about-caption {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin: -20px 0 30px;
  line-height: 1.5;
}

.stu-about-intro {
  margin: 0 0 40px;
}

.stu-about-section {
  margin: 0 0 40px;
  padding: 30px 0 0;
  border-top: 1px solid #eee;
}
.stu-about-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin: 0 0 15px;
}

.stu-about-history .stu-richtext strong {
  color: var(--stu-red);
  font-weight: 700;
}

/* =============================================================================
   GESCHAEFTSFELDER BOXEN
   ============================================================================= */
.stu-page-fields {
  padding: 50px 0;
  background: #f5f5f5;
}
.stu-page-fields h2 {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 0 0 25px;
}

.stu-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .stu-fields-grid { grid-template-columns: 1fr; }
}

.stu-field-box {
  background: var(--stu-red);
  padding: 40px 30px;
  text-decoration: none;
  transition: background 0.2s;
}
.stu-field-box:hover {
  background: #8a0028;
  text-decoration: none;
}
.stu-field-box h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  margin: 0;
}

/* =============================================================================
   PROJEKTE AUF BEREICHSSEITE
   ============================================================================= */
.stu-page-projects {
  padding: 50px 0;
  background: #fff;
}
.stu-page-projects h2 {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin: 0 0 10px;
}
.stu-page-projects > .stu-container > p {
  color: #666;
  margin: 0 0 30px;
}

.stu-card--projekt .stu-card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.stu-card--projekt .stu-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stu-card--projekt .stu-card-body {
  padding: 15px;
  background: #fff;
}
.stu-card--projekt .stu-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #222;
}
.stu-card--projekt .stu-card-status {
  display: inline-block;
  background: var(--stu-lime);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  font-weight: 600;
}

/* =============================================================================
   NEWS ARCHIV MIT JAHRESFILTER
   ============================================================================= */
.stu-archive-page {
  padding: 40px 0 60px;
}

.stu-archive-header {
  margin-bottom: 30px;
  text-align: center;
}
.stu-archive-header h1 {
  display: inline-block;
  font-size: 36px;
  font-weight: 700;
  color: var(--stu-red);
  margin: 0;
}

/* Jahresfilter */
.stu-year-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: #f5f5f5;
  border-radius: 4px;
}
.stu-year-filter-label {
  font-weight: 600;
  color: #555;
  margin-right: 8px;
}
.stu-year-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.stu-year-btn:hover {
  background: #e9e9e9;
  border-color: #ccc;
}
.stu-year-btn.is-active {
  background: var(--stu-red);
  border-color: var(--stu-red);
  color: #fff;
}

/* News Grid */
.stu-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
@media (max-width: 960px) {
  .stu-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .stu-news-grid {
    grid-template-columns: 1fr;
  }
}

/* News Card - Clean Design (wie Startseite) */
.stu-news-card {
  background: transparent;
}
.stu-news-card-image {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 15px;
}
.stu-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.stu-news-card:hover .stu-news-card-image img {
  transform: scale(1.05);
}
.stu-news-card-body {
  padding: 0;
}
.stu-news-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 8px;
}
.stu-news-card-title a {
  color: var(--stu-lime);
  text-decoration: none;
}
.stu-news-card-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--stu-red);
  margin-bottom: 10px;
}
.stu-news-card-excerpt {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 12px;
}
.stu-news-card-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--stu-lime);
  text-decoration: none;
}

/* Pagination */
.stu-pagination {
  margin-top: 40px;
}
.stu-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.stu-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
}
.stu-pagination .page-numbers:hover {
  background: #e5e5e5;
}
.stu-pagination .page-numbers.current {
  background: var(--stu-red);
  border-color: var(--stu-red);
  color: #fff;
}

.stu-no-results {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* =============================================================================
   CONTACT FORM 7 STYLING
   ============================================================================= */
.wpcf7 {
  max-width: 700px;
}

.stu-form-row {
  margin-bottom: 20px;
}

.stu-form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stu-form-field--wide {
  grid-column: span 1;
  flex: 2;
}

.stu-form-field--narrow {
  grid-column: span 1;
  flex: 1;
  max-width: 150px;
}

@media (max-width: 600px) {
  .stu-form-row--2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stu-form-field--narrow {
    max-width: none;
  }
}

.stu-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.stu-form-field label .required {
  color: var(--stu-red);
}

/* Input Styling - Contact Form 7 */
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100% !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border: 2px solid #ccc !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #333 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box !important;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):focus {
  outline: none !important;
  border-color: var(--stu-lime) !important;
  box-shadow: 0 0 0 2px rgba(140, 175, 60, 0.15) !important;
}

.wpcf7-form-control.wpcf7-textarea {
  min-height: 120px !important;
  resize: vertical;
}

.wpcf7-form-control::placeholder {
  color: #999 !important;
}

/* Fallback für alle Inputs im Formular */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.wpcf7 textarea,
.wpcf7 select {
  width: 100% !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border: 2px solid #ccc !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #333 !important;
  box-sizing: border-box !important;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none !important;
  border-color: var(--stu-lime) !important;
  box-shadow: 0 0 0 2px rgba(140, 175, 60, 0.15) !important;
}

.wpcf7 textarea {
  min-height: 120px !important;
  resize: vertical;
}

/* CF7 Form Control Wrapper */
.wpcf7-form-control-wrap {
  display: block;
}

/* Checkbox / Acceptance */
.stu-form-checkbox {
  margin-top: 10px;
}

.stu-form-checkbox .wpcf7-list-item {
  margin: 0;
}

.stu-form-checkbox label {
  display: inline;
  font-weight: 400;
}

.stu-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: var(--stu-lime);
}

.stu-form-checkbox a {
  color: var(--stu-lime);
}

/* Submit Button */
.stu-form-submit {
  margin-top: 25px;
}

.stu-form-submit .wpcf7-submit,
.stu-form-submit .stu-btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--stu-red);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stu-form-submit .wpcf7-submit:hover,
.stu-form-submit .stu-btn:hover {
  background: #a01c1c;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
  color: var(--stu-red);
  font-size: 13px;
  margin-top: 5px;
}

.wpcf7-not-valid {
  border-color: var(--stu-red) !important;
}

/* Response Messages */
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 15px 20px !important;
  border-radius: 3px;
  font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--stu-lime) !important;
  background: rgba(140, 175, 60, 0.1);
  color: #5a7a1e;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  border-color: var(--stu-red) !important;
  background: rgba(190, 30, 45, 0.1);
  color: var(--stu-red);
}

/* Spinner */
.wpcf7-spinner {
  margin-left: 15px;
}

/* Date Input Styling */
.stu-form-field input[type="date"],
.wpcf7 input[type="date"],
.wpcf7-form input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}

.stu-form-field input[type="date"]::-webkit-calendar-picker-indicator,
.wpcf7 input[type="date"]::-webkit-calendar-picker-indicator,
.wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

.stu-form-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.wpcf7 input[type="date"]::-webkit-calendar-picker-indicator:hover,
.wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Formular Container auf Bereichsseiten */
.stu-page-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

/* =============================================================================
   DOWNLOAD-LISTE
   ============================================================================= */

/* Hero für Downloads (volle Breite rot) */
.stu-page--downloads .stu-hero-text--full {
  width: 100%;
  background: var(--stu-red);
  color: #fff;
  padding: 60px 40px;
  text-align: center;
}

.stu-page--downloads .stu-hero-text--full h1 {
  color: #fff;
  margin-bottom: 10px;
}

.stu-page--downloads .stu-hero-text--full p {
  font-size: 18px;
  opacity: 0.9;
}

/* Filter-Bar */
.stu-download-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 4px;
}

.stu-download-filter-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.stu-download-filter-btn:hover {
  border-color: var(--stu-lime);
  color: var(--stu-lime);
}

.stu-download-filter-btn.is-active {
  background: var(--stu-red);
  border-color: var(--stu-red);
  color: #fff;
}

/* Download-Liste */
.stu-download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stu-download-item {
  border-bottom: 1px solid #e5e5e5;
}

.stu-download-item:first-child {
  border-top: 1px solid #e5e5e5;
}

.stu-download-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 15px;
  color: #333;
  transition: background 0.2s ease;
}

.stu-download-link:hover {
  background: #f9f9f9;
}

/* Icon Container */
.stu-download-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 6px;
}

.stu-download-icon {
  width: 24px;
  height: 24px;
  stroke: #666;
}

/* Icon Farben nach Dateityp */
.stu-download-icon--pdf {
  stroke: #e53935;
}

.stu-download-icon--word {
  stroke: #1976d2;
}

.stu-download-icon--excel {
  stroke: #388e3c;
}

.stu-download-icon--ppt {
  stroke: #e65100;
}

.stu-download-icon--zip {
  stroke: #795548;
}

.stu-download-icon--image {
  stroke: #7b1fa2;
}

/* Download Info */
.stu-download-info {
  flex: 1;
  min-width: 0;
}

.stu-download-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--stu-lime);
  margin-bottom: 3px;
}

.stu-download-meta {
  display: block;
  font-size: 13px;
  color: #888;
}

/* Download Action (Pfeil) */
.stu-download-action {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stu-lime);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.stu-download-action svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.stu-download-link:hover .stu-download-action {
  background: var(--stu-red);
  transform: translateY(2px);
}

/* Responsive */
@media (max-width: 600px) {
  .stu-download-link {
    padding: 15px 10px;
    gap: 12px;
  }
  
  .stu-download-icon-wrap {
    width: 38px;
    height: 38px;
  }
  
  .stu-download-icon {
    width: 20px;
    height: 20px;
  }
  
  .stu-download-title {
    font-size: 15px;
  }
  
  .stu-download-action {
    width: 32px;
    height: 32px;
  }
  
  .stu-download-action svg {
    width: 16px;
    height: 16px;
  }
}

/* Download Einzelseite */
.stu-download-single {
  max-width: 700px;
}

.stu-download-description {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.7;
}

.stu-download-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 30px;
}

.stu-download-box-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
}

.stu-download-box-icon .stu-download-icon {
  width: 32px;
  height: 32px;
}

.stu-download-box-info {
  flex: 1;
  min-width: 0;
}

.stu-download-box-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  word-break: break-word;
}

.stu-download-box-meta {
  display: block;
  font-size: 13px;
  color: #888;
}

.stu-download-back {
  margin-top: 20px;
}

.stu-download-back a {
  color: var(--stu-lime);
  font-weight: 500;
}

@media (max-width: 600px) {
  .stu-download-box {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .stu-download-box-info {
    text-align: center;
  }
}

/* Download Kategorien */
.stu-download-category {
  margin-bottom: 40px;
}

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

.stu-download-category-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--stu-red);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--stu-red);
}

.stu-download-category-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

/* Einfacher Header (ohne Hero) für Bereichsseiten */
.stu-page-header-simple {
  background: var(--stu-red);
  color: #fff;
  padding: 50px 0;
}

.stu-page-header-simple h1 {
  color: #fff;
  margin: 0;
  font-size: 36px;
  font-weight: var(--stu-fw-normal);
}

.stu-page-header-simple .stu-page-lead {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  font-weight: var(--stu-fw-semibold);
  margin: 15px 0 0;
  max-width: 700px;
}

@media (max-width: 768px) {
  .stu-page-header-simple {
    padding: 35px 0;
  }
  
  .stu-page-header-simple h1 {
    font-size: 28px;
  }
  
  .stu-page-header-simple .stu-page-lead {
    font-size: 16px;
  }
}

/* =============================================================================
   MOBILE PADDING FIX - Startseite und allgemeine Sektionen
   ============================================================================= */
@media (max-width: 768px) {
  /* Container mehr Padding auf Mobile */
  .stu-container,
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Homepage Sektionen */
  .stu-home .stu-news {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stu-home .stu-about {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stu-home .stu-rent {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stu-home .stu-projects {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stu-home .stu-jobs {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stu-home .stu-memberships {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .stu-home .stu-employees {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Tiles Sektion */
  .stu-tiles .stu-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .stu-tiles-grid {
    gap: 10px;
  }
  
  /* Section Head - mehr Abstand */
  .stu-section-head {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  /* Noch mehr Padding auf sehr kleinen Screens */
  .stu-container,
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .stu-home .stu-news,
  .stu-home .stu-about,
  .stu-home .stu-rent,
  .stu-home .stu-projects,
  .stu-home .stu-jobs,
  .stu-home .stu-memberships,
  .stu-home .stu-employees {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* =============================================================================
   AUTO CONTACT ICONS - Automatische Icons für E-Mail und Telefon
   ============================================================================= */
.stu-contact-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stu-auto-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  vertical-align: middle;
}

/* Sidebar-Box spezifisch */
.stu-sidebar-box .stu-contact-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

/* Weniger Abstand zwischen Kontakt-Zeilen */
.stu-sidebar-box .stu-sidebar-text p {
  margin: 0 0 4px;
}

.stu-sidebar-box .stu-sidebar-text p:last-child {
  margin-bottom: 0;
}

.stu-sidebar-box .stu-auto-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke: currentColor;
  opacity: 0.9;
}

.stu-sidebar-box--bg-white .stu-auto-icon {
  stroke: var(--stu-red);
}

.stu-sidebar-box--bg-red .stu-auto-icon,
.stu-sidebar-box--bg-green .stu-auto-icon {
  stroke: #fff;
}

.stu-sidebar-box .stu-contact-with-icon a {
  color: inherit;
  text-decoration: none;
}

.stu-sidebar-box .stu-contact-with-icon a:hover {
  text-decoration: underline;
}

/* =============================================================================
   SOFTGARDEN INTEGRATION
   ============================================================================= */
.stu-softgarden-container {
  width: 100%;
  margin: 30px 0;
}

.stu-softgarden-iframe {
  width: 100%;
  border: none;
  border-radius: 0;
}

.stu-softgarden-initiative {
  margin: 30px 0;
}

.stu-softgarden-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--stu-red);
  color: #fff;
  font-size: var(--stu-fs-body);
  font-weight: var(--stu-fw-bold);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stu-softgarden-btn:hover {
  background: #8a0028;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.stu-softgarden-btn .stu-btn-icon {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .stu-softgarden-container {
    margin: 20px -20px;
    width: calc(100% + 40px);
  }
  
  .stu-softgarden-btn {
    padding: 12px 20px;
    font-size: var(--stu-fs-small);
  }
}

/* =============================================================================
   IMMOMIO INTEGRATION
   ============================================================================= */
.stu-immomio-container {
  width: 100%;
  margin: 30px 0;
}

.stu-immomio-iframe {
  width: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .stu-immomio-container {
    margin: 20px -20px;
    width: calc(100% + 40px);
  }
}

/* =============================================================================
   STELLEN-KARTEN (für Archiv)
   ============================================================================= */
.stu-stellen-liste,
.stu-stellen-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.stu-stelle-card {
  background: #fff;
  border: 1px solid var(--stu-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stu-stelle-card:hover {
  border-color: var(--stu-red);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stu-stelle-card__link {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  color: var(--stu-text);
}

.stu-stelle-card__title {
  font-size: var(--stu-fs-h4);
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-red);
  margin: 0 0 8px;
}

.stu-stelle-card__meta {
  display: flex;
  gap: 15px;
  font-size: var(--stu-fs-small);
  color: var(--stu-text-light);
  margin-bottom: 10px;
}

.stu-stelle-card__meta span::before {
  content: "•";
  margin-right: 8px;
  opacity: 0.5;
}

.stu-stelle-card__meta span:first-child::before {
  display: none;
}

.stu-stelle-card__cta {
  font-size: var(--stu-fs-small);
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-red);
}

/* Shortcode Content Spacing */
.stu-page-shortcode-content {
  margin-top: 30px;
}

/* =============================================================================
   BOXEN UNTER DEM CONTENT (3-spaltig)
   ============================================================================= */
.stu-boxes-bottom {
  padding: 50px 0;
  background: var(--stu-bg-light);
}

.stu-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

@media (max-width: 900px) {
  .stu-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stu-boxes-grid {
    grid-template-columns: 1fr;
  }
}

/* Boxen in der Grid-Ansicht */
.stu-boxes-grid .stu-sidebar-box {
  height: 100%;
}

/* =============================================================================
   MITARBEITER SHORTCODE
   ============================================================================= */
.stu-employees-shortcode {
  padding: 60px 0;
  background: var(--stu-lime);
}

.stu-employees-shortcode .stu-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.stu-employees-shortcode .stu-section-head h2 {
  color: #fff;
}

.stu-employees-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.stu-employee-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  padding: 25px;
  text-align: center;
}

.stu-employee-card__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
}

.stu-employee-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stu-employee-card__name {
  font-size: var(--stu-fs-h4);
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-text);
  margin: 0 0 5px;
}

.stu-employee-card__position {
  font-size: var(--stu-fs-small);
  color: var(--stu-text-light);
  margin: 0 0 12px;
}

.stu-employee-card__quote {
  font-size: var(--stu-fs-small);
  font-style: italic;
  color: var(--stu-text);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .stu-employee-card {
    flex: 0 0 260px;
  }
}

/* Mitarbeiter Shortcode - Hintergrund-Varianten */
.stu-employees-shortcode--gruen {
  background: var(--stu-lime);
}
.stu-employees-shortcode--gruen .stu-section-head h2 {
  color: #fff;
}

.stu-employees-shortcode--grau {
  background: var(--stu-bg-light);
}
.stu-employees-shortcode--grau .stu-section-head h2 {
  color: var(--stu-text);
}

.stu-employees-shortcode--weiss {
  background: #fff;
}
.stu-employees-shortcode--weiss .stu-section-head h2 {
  color: var(--stu-text);
}

/* =============================================================================
   SINGLE POST (Neuigkeiten, Referenzen)
   ============================================================================= */
.stu-single {
  padding: 60px 0;
}

.stu-single-article {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero: Bild links + Titel rechts */
.stu-single-hero {
  display: block;
  margin-bottom: 30px;
}

/* Bild links floatend */
.stu-single-image {
  float: left;
  width: 45%;
  max-width: 480px;
  margin: 0 40px 25px 0;
}

.stu-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.stu-single-image figcaption {
  font-size: 0.875rem;
  color: var(--stu-text-light);
  line-height: 1.5;
  margin-top: 12px;
}

/* Header/Titel neben dem Bild */
.stu-single-header {
  overflow: hidden; /* Eigener Block neben Float */
}

.stu-single-title {
  font-size: clamp(1.5rem, 1.2rem + 2vw, 2.25rem);
  font-weight: var(--stu-fw-light);
  color: var(--stu-lime);
  margin: 0;
  line-height: 1.3;
}

/* Content fließt um das Bild */
.stu-single-content {
  font-size: var(--stu-fs-body);
  line-height: 1.75;
  clear: none;
}

.stu-single-content p {
  margin-bottom: 1.25em;
}

.stu-single-content p:first-child {
  margin-top: 0;
}

.stu-single-content h2,
.stu-single-content h3,
.stu-single-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  clear: both;
}

.stu-single-content ul,
.stu-single-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.stu-single-content li {
  margin-bottom: 0.5em;
}

.stu-single-content blockquote {
  margin: 1.5em 0;
  padding-left: 20px;
  border-left: 3px solid var(--stu-lime);
  font-style: italic;
  color: var(--stu-text-light);
}

/* Navigation / Zurück-Link */
.stu-single-nav {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--stu-border);
  clear: both;
}

/* Responsive */
@media (max-width: 900px) {
  .stu-single-image {
    width: 40%;
    margin-right: 30px;
  }
}

@media (max-width: 700px) {
  .stu-single {
    padding: 40px 0;
  }
  
  .stu-single-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 25px 0;
  }
  
  .stu-single-header {
    margin-bottom: 25px;
  }
  
  .stu-single-title {
    font-size: 1.5rem;
  }
}

/* =============================================================================
   PROJEKTE-GRID (für Bereichsseiten)
   ============================================================================= */
.stu-page-projects {
  padding: 60px 0;
  background: #fff;
}

.stu-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
}

.stu-project-card {
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.stu-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stu-project-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.stu-project-card__image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.stu-project-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.stu-project-card:hover .stu-project-card__image img {
  transform: scale(1.03);
}

.stu-project-card__content {
  background: var(--stu-lime);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stu-project-card__content h3 {
  font-size: 1.1rem;
  font-weight: var(--stu-fw-semibold);
  color: #fff;
  margin: 0 0 auto;
  padding-bottom: 12px;
  line-height: 1.4;
}

.stu-project-card__status {
  display: inline-block;
  background: var(--stu-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: var(--stu-fw-medium);
  padding: 6px 14px;
  border-radius: 0;
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 900px) {
  .stu-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stu-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .stu-project-card__image img {
    height: 200px;
  }
}

/* =============================================================================
   GESCHÄFTSFELDER-LINKS (für Bereichsseiten, [stu_tiles] Shortcode)
   ============================================================================= */
.stu-page-fields {
  padding: 50px 0;
}

.stu-fields-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
}

.stu-fields-link {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: var(--stu-fw-semibold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.stu-fields-link:hover {
  opacity: 0.7;
}

.stu-fields-link--red {
  color: var(--stu-red);
}

.stu-fields-link--lime {
  color: var(--stu-lime);
}

.stu-fields-link span {
  margin-left: 5px;
}

/* =============================================================================
   FILTER-BAR (für Archive)
   ============================================================================= */
.stu-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.stu-filter-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: var(--stu-fw-medium);
  text-decoration: none;
  color: var(--stu-text);
  background: #fff;
  border: 1px solid var(--stu-border);
  transition: all 0.2s ease;
}

.stu-filter-btn:hover {
  border-color: var(--stu-text);
}

.stu-filter-btn.is-active {
  background: var(--stu-text);
  color: #fff;
  border-color: var(--stu-text);
}

/* Zentrierter Archive-Header */
.stu-archive-header--center {
  text-align: center;
  margin-bottom: 30px;
}

.stu-archive-header--center h1 {
  color: var(--stu-red);
  font-weight: var(--stu-fw-light);
  margin-bottom: 10px;
}

.stu-archive-lead {
  color: var(--stu-text-light);
  font-size: 1rem;
  margin: 0;
}

/* Projekte-Archiv spezifisch */
.stu-archive-projekte {
  padding: 60px 0;
}

@media (max-width: 600px) {
  .stu-filter-bar {
    gap: 8px;
  }
  
  .stu-filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Section-Head zentriert (für Projekte-Sektion) */
.stu-section-head--center {
  text-align: center;
  margin-bottom: 30px;
}

.stu-section-head--center h2 {
  color: var(--stu-red);
  font-weight: var(--stu-fw-light);
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  margin-bottom: 8px;
}

.stu-section-head--center p,
.stu-section-head--center .stu-section-subtitle {
  color: var(--stu-text);
  font-size: var(--stu-fs-body);
  font-weight: var(--stu-fw-regular);
  line-height: 1.5;
  margin: 0;
}

/* =============================================================================
   KATEGORIE-NEWS SHORTCODE
   ============================================================================= */
.stu-kategorie-news {
  padding: 20px 0;
}

.stu-kategorie-news .stu-filter-bar {
  margin-bottom: 40px;
}

.stu-kategorie-news .stu-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .stu-kategorie-news .stu-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stu-kategorie-news .stu-news-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   MITARBEITER SINGLE PAGE
   ============================================================================= */
.stu-single-mitarbeiter {
  padding: 60px 0;
  background: #fff;
}

.stu-mitarbeiter-article {
  max-width: 1000px;
  margin: 0 auto;
}

.stu-mitarbeiter-article::after {
  content: "";
  display: table;
  clear: both;
}

.stu-mitarbeiter-image {
  float: left;
  width: 380px;
  margin: 0 40px 20px 0;
}

.stu-mitarbeiter-image img {
  width: 100%;
  height: auto;
  display: block;
}

.stu-mitarbeiter-quote {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: var(--stu-fw-light);
  color: var(--stu-lime);
  line-height: 1.3;
  margin: 0 0 20px;
}

.stu-mitarbeiter-title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-text);
  margin: 0 0 20px;
}

.stu-mitarbeiter-meta {
  font-size: 1rem;
  color: var(--stu-text);
  margin: 0 0 20px;
}

.stu-mitarbeiter-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stu-text);
}

.stu-mitarbeiter-text p {
  margin: 0 0 1em;
}

.stu-mitarbeiter-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  clear: both;
}

.stu-mitarbeiter-link {
  color: var(--stu-lime);
  text-decoration: none;
  font-weight: var(--stu-fw-regular);
  transition: color 0.2s;
}

.stu-mitarbeiter-link:hover {
  color: var(--stu-red);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .stu-mitarbeiter-image {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }
  
  .stu-mitarbeiter-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================================
   MITARBEITER ARCHIV
   ============================================================================= */
.stu-archive-mitarbeiter {
  padding: 60px 0;
  background: #fff;
}

.stu-mitarbeiter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stu-mitarbeiter-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.stu-mitarbeiter-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.stu-mitarbeiter-card a {
  text-decoration: none;
  display: block;
}

.stu-mitarbeiter-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.stu-mitarbeiter-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.stu-mitarbeiter-card:hover .stu-mitarbeiter-card__image img {
  transform: scale(1.05);
}

.stu-mitarbeiter-card__body {
  padding: 20px;
}

.stu-mitarbeiter-card__quote {
  font-size: 1rem;
  font-weight: var(--stu-fw-light);
  font-style: italic;
  color: var(--stu-lime);
  margin: 0 0 10px;
  line-height: 1.4;
}

.stu-mitarbeiter-card__name {
  font-size: 1.1rem;
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-text);
  margin: 0 0 5px;
}

.stu-mitarbeiter-card__job {
  font-size: 0.9rem;
  color: var(--stu-text-light);
  margin: 0 0 15px;
}

.stu-mitarbeiter-card__more {
  font-size: 0.9rem;
  color: var(--stu-lime);
  font-weight: var(--stu-fw-semibold);
}

.stu-mitarbeiter-card:hover .stu-mitarbeiter-card__more {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .stu-mitarbeiter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stu-mitarbeiter-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   GALLERY MASONRY (WordPress [gallery] Override)
   ============================================================================= */
.stu-gallery-masonry {
  column-gap: 12px;
  margin: 20px 0;
}

.stu-gallery-masonry--cols-1 { column-count: 1; }
.stu-gallery-masonry--cols-2 { column-count: 2; }
.stu-gallery-masonry--cols-3 { column-count: 3; }
.stu-gallery-masonry--cols-4 { column-count: 4; }
.stu-gallery-masonry--cols-5 { column-count: 5; }

.stu-gallery-masonry__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.stu-gallery-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.stu-gallery-masonry__item:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.stu-gallery-masonry__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.stu-gallery-masonry__item:hover .stu-gallery-masonry__caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .stu-gallery-masonry--cols-4,
  .stu-gallery-masonry--cols-5 { column-count: 3; }
}

@media (max-width: 600px) {
  .stu-gallery-masonry--cols-3,
  .stu-gallery-masonry--cols-4,
  .stu-gallery-masonry--cols-5 { column-count: 2; }
  .stu-gallery-masonry--cols-2 { column-count: 2; }
}

/* =============================================================================
   ACF PROJEKT-GALERIE (stuw-gallery) — Masonry
   ============================================================================= */
.stuw-gallery {
  column-count: 3;
  column-gap: 12px;
  margin: 15px 0;
}

.stuw-gallery__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.stuw-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.stuw-gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

@media (max-width: 600px) {
  .stuw-gallery { column-count: 2; }
}

/* =============================================================================
   LIGHTBOX
   ============================================================================= */
.stu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.stu-lightbox--open {
  opacity: 1;
  visibility: visible;
}

.stu-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.stu-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stu-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.stu-lightbox__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 90vw;
  padding: 12px 0 0;
  gap: 20px;
}

.stu-lightbox__caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.4;
}

.stu-lightbox__counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  white-space: nowrap;
}

.stu-lightbox__close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 5px 10px;
}

.stu-lightbox__close:hover {
  opacity: 1;
}

.stu-lightbox__prev,
.stu-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 15px 18px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  border-radius: 2px;
}

.stu-lightbox__prev:hover,
.stu-lightbox__next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.stu-lightbox__prev { left: 15px; }
.stu-lightbox__next { right: 15px; }

@media (max-width: 768px) {
  .stu-lightbox__prev,
  .stu-lightbox__next {
    padding: 10px 14px;
    font-size: 22px;
  }
  .stu-lightbox__prev { left: 5px; }
  .stu-lightbox__next { right: 5px; }
  .stu-lightbox__close {
    top: 10px;
    right: 10px;
  }
}

/* =============================================================================
   GUTENBERG BLOCK GALLERY — Masonry Override
   ============================================================================= */

/* Flex-Layout von Gutenberg entfernen, Masonry per CSS columns */
.wp-block-gallery.has-nested-images {
  display: block !important;
  column-count: 3;
  column-gap: 12px;
}

.wp-block-gallery.has-nested-images.columns-1 { column-count: 1; }
.wp-block-gallery.has-nested-images.columns-2 { column-count: 2; }
.wp-block-gallery.has-nested-images.columns-3 { column-count: 3; }
.wp-block-gallery.has-nested-images.columns-4 { column-count: 4; }
.wp-block-gallery.has-nested-images.columns-5 { column-count: 5; }

/* Einzelne Bilder innerhalb der Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image {
  display: block !important;
  break-inside: avoid;
  margin: 0 0 12px 0 !important;
  padding: 0;
  width: 100% !important;
  flex: none !important;
  overflow: hidden;
  line-height: 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

/* Captions innerhalb Block Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
  position: relative;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption {
  opacity: 1;
}

/* Cropped-Modus überschreiben */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image {
  aspect-ratio: unset !important;
}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img {
  aspect-ratio: unset !important;
  object-fit: unset !important;
  height: auto !important;
}

@media (max-width: 900px) {
  .wp-block-gallery.has-nested-images.columns-4,
  .wp-block-gallery.has-nested-images.columns-5 { column-count: 3; }
}

@media (max-width: 600px) {
  .wp-block-gallery.has-nested-images.columns-3,
  .wp-block-gallery.has-nested-images.columns-4,
  .wp-block-gallery.has-nested-images.columns-5 { column-count: 2; }
}

/* =============================================================================
   AKKORDEON (Über uns Seite)
   ============================================================================= */
.stu-accordion {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stu-accordion__item {
  border-radius: 4px;
  overflow: hidden;
}

.stu-accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--stu-lime);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: var(--stu-fw-semibold);
  color: #fff;
  transition: background 0.2s;
}

.stu-accordion__header:hover {
  background: #8aad2e;
}

.stu-accordion__header span:first-child {
  flex: 1;
}

.stu-accordion__icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 15px;
}

.stu-accordion__icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}

.stu-accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s, opacity 0.3s;
}

/* Offener Zustand: Minus statt Plus */
.stu-accordion__item.is-open .stu-accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Pfeil-Variante statt +/- */
.stu-accordion__icon--arrow::before {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  background: transparent;
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.3s;
}

.stu-accordion__icon--arrow::after {
  display: none;
}

.stu-accordion__item.is-open .stu-accordion__icon--arrow::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

/* Content */
.stu-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background: #fff;
  padding: 0 24px;
}

.stu-accordion__item.is-open .stu-accordion__content {
  max-height: 2000px;
  padding: 24px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.stu-accordion__content .stu-richtext {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stu-text);
}

.stu-accordion__content .stu-richtext p {
  margin: 0 0 1em;
}

.stu-accordion__content .stu-richtext p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .stu-accordion__header {
    padding: 15px 18px;
    font-size: 1rem;
  }
  
  .stu-accordion__item.is-open .stu-accordion__content {
    padding: 18px;
  }
}

/* =============================================================================
   GTRANSLATE LANGUAGE SWITCHER - Theme Override
   ============================================================================= */

/* GTranslate Widget - im Header inline positionieren */
.topbar .gt_switcher_wrapper {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  display: inline-block;
  margin-left: 10px;
}

/* Select-Element stylen */
.gt_switcher_wrapper .gt_selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1px solid var(--stu-lime);
  border-radius: 3px;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--stu-lime);
  cursor: pointer;
  min-width: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a3c037' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s;
}

.gt_switcher_wrapper .gt_selector:hover {
  background-color: var(--stu-lime);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.gt_switcher_wrapper .gt_selector:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(163, 192, 55, 0.3);
}

/* Option Styling (begrenzt durch Browser) */
.gt_switcher_wrapper .gt_selector option {
  background: #fff;
  color: #333;
  padding: 8px;
}

/* Google Translate Element verstecken */
#google_translate_element2 {
  display: none !important;
}

/* Mobile Anpassungen */
@media (max-width: 1024px) {
  .gt_switcher_wrapper .gt_selector {
    padding: 5px 24px 5px 10px;
    font-size: 12px;
    min-width: 80px;
    max-width: 100px;
  }
  
  .gt_switcher_wrapper {
    max-width: 110px;
  }
}

/* =============================================================================
   PROJEKT EINZELSEITE
   ============================================================================= */

/* Projekt-Info-Box unter Hero */
.stu-projekt-info {
  background: #f8f8f8;
  border-left: 4px solid var(--stu-lime);
  padding: 25px 30px;
  margin: 30px 0 40px;
}

.stu-projekt-info__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
}

.stu-projekt-info__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stu-projekt-info__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  font-weight: var(--stu-fw-semibold);
}

.stu-projekt-info__value {
  font-size: 1.1rem;
  font-weight: var(--stu-fw-semibold);
  color: var(--stu-text);
}

.stu-projekt-info__status {
  color: var(--stu-lime);
}

.stu-projekt-info__details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95rem;
  color: #555;
}

.stu-projekt-info__details p {
  margin: 0 0 0.5em;
}

.stu-projekt-info__details p:last-child {
  margin-bottom: 0;
}

/* Projekt Galerie */
.stu-projekt-galerie {
  margin: 50px 0;
}

.stu-projekt-galerie h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--stu-text);
}

/* Projekt Navigation */
.stu-projekt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
  gap: 20px;
}

.stu-projekt-nav__prev,
.stu-projekt-nav__next {
  flex: 1;
}

.stu-projekt-nav__prev {
  text-align: left;
}

.stu-projekt-nav__next {
  text-align: right;
}

.stu-projekt-nav__overview {
  flex: 0 0 auto;
}

.stu-projekt-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stu-text);
  text-decoration: none;
  font-weight: var(--stu-fw-medium);
  transition: color 0.2s;
}

.stu-projekt-nav__link:hover {
  color: var(--stu-red);
  text-decoration: none;
}

.stu-projekt-nav__arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.stu-projekt-nav__prev .stu-projekt-nav__link:hover .stu-projekt-nav__arrow {
  transform: translateX(-3px);
}

.stu-projekt-nav__next .stu-projekt-nav__link:hover .stu-projekt-nav__arrow {
  transform: translateX(3px);
}

.stu-projekt-nav__text {
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
  .stu-projekt-info {
    padding: 20px;
  }
  
  .stu-projekt-info__grid {
    gap: 20px 30px;
  }
  
  .stu-projekt-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .stu-projekt-nav__prev,
  .stu-projekt-nav__next,
  .stu-projekt-nav__overview {
    flex: none;
    width: 100%;
    text-align: center;
  }
  
  .stu-projekt-nav__overview {
    order: -1;
  }
}

/* Alte "Stand" Anzeige aus Content verstecken (doppelt mit Info-Box) */
.stu-single--projekt .stu-single-content .stand,
.stu-single--projekt .stu-single-content p.stand {
  display: none !important;
}

/* =============================================================================
   OVERFLOW FIX - Verhindert horizontales Scrollen
   ============================================================================= */

/* Mobile Topbar Overflow verhindern */
@media (max-width: 1024px) {
  .topbar--mobile {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }
  
  .topbar--mobile .topbtn {
    flex-shrink: 1;
    min-width: 0;
  }
}
