/*
  CONTENT BLOCKS - Universal Components
  Hero Banner, Fachbereiche, Footer, etc.
  Verwendet Design Tokens und Theme-Variablen
*/

/* ========================================
   RTE STYLES
   ======================================== */

/* Uppercase Style (wählbar im RTE über Style-Dropdown) */
.text-uppercase {
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ========================================
   SECTION HEADINGS
   Überschriften in Sections uppercase
   ======================================== */
.b_section h1,
.b_section h2 {
  text-transform: uppercase;
}

.b_section .subheader {
  font-style: italic;
  text-transform: none;
}

/* ========================================
   HERO / BANNER
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero .banner.bg {
  position: relative;
  width: 100%;
  min-height: 25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Height Variants */
.hero--normal .banner.bg {
  min-height: 25rem;
}

.hero--large .banner.bg {
  min-height: 37.5rem;
}

.hero--xlarge .banner.bg {
  min-height: 50rem;
}

/* Background Image with Picture Element */
.hero .banner.bg picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .banner.bg .hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Content Overlay */
.hero .banner.bg .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--spacing-xxl) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .banner.bg h1 {
  color: var(--text-color-light);
  text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: var(--content-width);
  margin: 0;
}

.hero .banner.bg .minitext {
  font-size: var(--font-size-lg);
  font-weight: 400;
  display: block;
  margin-top: var(--spacing-sm);
  color: var(--text-color-light);
  text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.5);
}

.hero .banner.bg .placeholder {
  min-height: 20rem;
}

/* Hero without image */
.hero .banner.bg.hero--empty {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero .banner.bg.hero--empty h1 {
  color: var(--text-color-light);
}

/* ========================================
   FACHBEREICHE (Subject Areas)
   ======================================== */
.fachbereich {
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  font-weight: 400;
  text-transform: uppercase;
}

.fach {
  position: relative;
  padding: 0;
  margin: 0;
  text-align: center;
}

.fach li {
  position: relative;
  width: 24%;
  margin: 0;
  padding: 0.2% 0.25%;
  text-align: center;
  list-style-type: none;
  display: inline-block;
  vertical-align: top;
}

.fach li img {
  position: relative;
  width: 100%;
  max-width: 32rem;
  height: auto;
}

.fach li img.fachlogo {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity 0.4s;
}

.fach li img.fachlogo:hover {
  opacity: 0;
}

/* Avatars */
.avatars {
  padding: 0;
  margin: 0;
  text-align: center;
}

.avatars li {
  width: 11.25rem;
  margin: 0;
  padding: 0.2% 0.25%;
  text-align: center;
  list-style-type: none;
  display: inline-block;
  vertical-align: top;
}

.avatars li img {
  width: 100%;
  height: auto;
}

/* ========================================
   KURZ-INFO COMPONENT
   ======================================== */
.kurz-info {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--background-light);
  border-left: 0.25rem solid var(--primary-color);
}

/* ========================================
   FOOTER
   ======================================== */
.footerliste {
  padding: 0;
  margin: 0 0 var(--spacing-md);
  list-style: none;
}

.footerliste li {
  margin-bottom: var(--spacing-xs);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.totop {
  position: fixed;
  bottom: 0.9375rem;
  right: 0.9375rem;
  width: 0.125rem;
  height: 0.125rem;
  padding: 0.9375rem 1.375rem 1.5625rem 1.1875rem;
  margin: 0;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  z-index: 999;
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.totop:hover {
  opacity: 0.7;
}

.totop i:before,
.totop i:after {
  content: "";
  position: absolute;
  background-color: var(--text-color-light);
  width: 0.1875rem;
  height: 0.5625rem;
}

.totop i:before {
  transform: translate(-0.125rem, 0) rotate(45deg);
}

.totop i:after {
  transform: translate(0.125rem, 0) rotate(-45deg);
}

/* ========================================
   SPECIAL TEXT STYLES
   ======================================== */

/* Special Quote (already in theme-cop.css as .peace-quote) */
.lichtweisheit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: var(--line-height-relaxed);
  font-weight: 400;
  font-style: normal;
  color: var(--secondary-color);
}

/* Lichtweisheit Color Variants */
.lichtweisheit--color-primary {
  color: var(--primary-color);
}

.lichtweisheit--color-secondary {
  color: var(--secondary-color);
}

.lichtweisheit--color-accent {
  color: var(--accent-color);
}

.lichtweisheit--color-green {
  color: var(--accent-green);
}

.lichtweisheit--color-dark {
  color: var(--text-color);
}

/* Italic variant */
.lichtweisheit--italic {
  font-style: italic;
}

/* ========================================
   GALLERY / IMAGE GRIDS
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.gallery img:hover {
  transform: scale(1.02);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--background-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-top: 0;
}

/* ========================================
   ICON LISTS
   ======================================== */
.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  padding-left: var(--spacing-md);
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.icon-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 900px) {
  .bigbanner {
    display: block;
  }

  .minibanner {
    display: none;
  }
}

@media (max-width: 1023px) {
  .fach li {
    width: 49%;
  }
}

@media (max-width: 900px) {
  .fach li {
    width: 49%;
  }
}

@media (max-width: 800px) {
  .lichtweisheit {
    font-size: 1.25rem;
    line-height: var(--line-height-loose);
  }

  .hero--normal .banner.bg {
    min-height: 18rem;
  }

  .hero--large .banner.bg {
    min-height: 28rem;
  }

  .hero--xlarge .banner.bg {
    min-height: 37.5rem;
  }

  .hero .banner.bg .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .hero .banner.bg h1 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 560px) {
  .fach li {
    width: 100%;
    padding: 0 0 var(--spacing-xs);
  }

  .lichtweisheit br {
    display: none;
  }

  .avatars li {
    width: 8rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .hero--normal .banner.bg {
    min-height: 15rem;
  }

  .hero--large .banner.bg {
    min-height: 22rem;
  }

  .hero--xlarge .banner.bg {
    min-height: 30rem;
  }

  .hero .banner.bg .hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero .banner.bg h1 {
    font-size: var(--font-size-xl);
  }

  .hero .banner.bg .minitext {
    font-size: var(--font-size-base);
  }
}
