/* =========================================
   Global Reset & Basics
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 45%, #020617 100%);
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* TYPO3-Artisteer-Wrapper */
#art-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content-Container */
.art-sheet {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 1.5rem;
}

/* Links */
a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

a:hover,
a:focus {
  color: #f97316;
  opacity: 0.9;
}

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

/* =========================================
   Navigation
========================================= */

.art-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.85)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
}

.art-hmenu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}

.art-hmenu > li {
  position: relative;
}

.art-hmenu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid transparent;
}

.art-hmenu > li > a:hover,
.art-hmenu > li > a:focus {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #020617;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

/* Aktiver Nav-Punkt (falls klassisch per .active etc. gesetzt) */
.art-hmenu > li > a.active,
.art-hmenu > li > a.current {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #020617;
}

/* =========================================
   Header / Hero
========================================= */

.art-header {
  position: relative;
  padding: 4.5rem 1.5rem 3rem;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, #22d3ee 0, #0f172a 40%, #020617 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.art-header::before,
.art-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

.art-header::before {
  width: 420px;
  height: 420px;
  background: rgba(56, 189, 248, 0.5);
  top: -140px;
  right: 5%;
}

.art-header::after {
  width: 360px;
  height: 360px;
  background: rgba(52, 211, 153, 0.4);
  bottom: -120px;
  left: -80px;
}

.art-header .art-slogan {
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.art-header .art-headline {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f9fafb;
  max-width: 32rem;
  position: relative;
  z-index: 1;
}

.art-header .art-headline br {
  display: none;
}

@media (min-width: 768px) {
  .art-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
  .art-header .art-headline br {
    display: inline;
  }
}

/* =========================================
   Layout / Columns
========================================= */

.art-layout-wrapper {
  margin-top: 2rem;
}

.art-content-layout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Jede Spalte als "Card-Column" */
.art-layout-cell.layout-item-2 {
  flex: 1 1 280px;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(26px);
}

/* Linke Spalte mit Adresse/Logo */
.art-layout-cell.layout-item-2:first-of-type {
  border-top-right-radius: 0.75rem;
}

/* Frames allgemein (TYPO3-Content-Elemente) */
.frame {
  margin-bottom: 1.75rem;
}

/* =========================================
   Typografie Content
========================================= */

h1, h2, h3, h4 {
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 0.55rem;
  color: #cbd5f5;
}

.ce-bodytext a {
  font-weight: 500;
}

/* Adresse / Kontaktdaten */
.contenttable {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 0.5rem;
  font-size: 0.95rem;
}

.contenttable td {
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.contenttable tr:last-child td {
  border-bottom: none;
}

.contenttable td:first-child {
  font-weight: 500;
  color: #e5e7eb;
  white-space: nowrap;
}

/* CTA-Links wie Telefonnummer / Mail */
.contenttable a {
  font-weight: 500;
}

/* =========================================
   Bilder + Logos (Mitgliedschaften etc.)
========================================= */

.ce-image,
.ce-gallery figure.image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ce-gallery img,
figure.image img {
  border-radius: 0.75rem;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.8);
}

.ce-gallery a:hover img,
figure.image a:hover img {
  opacity: 1;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
}

/* Mehrspaltige Logo-Galerien */
.ce-gallery[data-ce-columns="2"] .ce-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* "Wir sind Mitglied von" */
#c176 h2.ce-headline-center {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* =========================================
   News-Box
========================================= */

.frame-type-news_pi1 h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.frame-type-news_pi1 h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.news {
  margin-top: 0.75rem;
}

/* News-Liste als Card */
.news-list-view .article {
  padding: 1.25rem 1.1rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-list-view .article:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.7);
}

.news-list-view .article .header h3 a {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f9fafb;
}

.news-list-view .article .teaser-text {
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.news-list-view .article .teaser-text div[itemprop="description"] p {
  margin-bottom: 0.25rem;
}

/* "Weiterlesen" Link */
.news-list-view .article .more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
}

.news-list-view .article .more::after {
  content: "↗";
  font-size: 0.9em;
}

/* Footer Infos in News */
.news-list-view .article .footer {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-list-date {
  font-weight: 500;
}

.news-list-category {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.news-list-author {
  opacity: 0.8;
}

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

.art-footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem 1.75rem;
  background: rgba(2, 6, 23, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.95);
  font-size: 0.85rem;
}

.art-footer p {
  color: #9ca3af;
}

/* Social Icons im Footer */
.art-footer img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
  background: radial-gradient(circle at top, #1f2937, #020617);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.art-footer a:hover img {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
}

/* Links im Footer */
.art-footer a {
  color: #e5e7eb;
}

.art-footer a:hover {
  color: #f97316;
}

/* =========================================
   Powermail / Formulare (falls vorhanden)
========================================= */

.powermail_form,
.tx-powermail,
form {
  max-width: 640px;
  margin: 1.5rem auto;
}

.powermail_form input[type="text"],
.powermail_form input[type="email"],
.powermail_form input[type="tel"],
.powermail_form textarea,
.powermail_form select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea,
form select {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.powermail_form input:focus,
.powermail_form textarea:focus,
.powermail_form select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #020617;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
  filter: brightness(1.05);
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 768px) {
  .art-sheet {
    padding: 1rem;
  }

  .art-layout-cell.layout-item-2 {
    padding: 1.15rem;
  }

  .art-header {
    padding: 3rem 1.25rem 2.25rem;
    text-align: center;
  }

  .art-header .art-headline {
    max-width: none;
  }

  .art-header .art-slogan {
    text-align: center;
  }

  .art-footer {
    text-align: center;
  }

  .art-footer p[style*="float:left"],
  .art-footer p[style*="float:right"] {
    float: none !important;
    margin-bottom: 0.75rem;
  }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
  .art-hmenu {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .art-hmenu > li > a {
    white-space: nowrap;
  }
}
