/* ----------------------------- */
/* CI-FARBEN UND GRUNDSTIL      */
/* ----------------------------- */

:root {
  --cassiopeia-color-primary: #ffffff;
  --cassiopeia-color-hover: #03495F;
  --link-color: #01859E;
  --link-hover-color: #026e84;
}

body, p, h1, h2, h3, h4, h5, h6, a {
  color: #413F41;
  font-family: system-ui, sans-serif;
}

/* ----------------------------- */
/* BUTTONS & LINKS               */
/* ----------------------------- */

a.btn, .btn, button, .button {
  background-color: #01859E;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: none;
  display: inline-block;
  font-family: system-ui, sans-serif !important;
  font-size: 1.15rem;  
  font-weight: 500;    
  letter-spacing: normal; 
}

a.btn:hover, .btn:hover {
  background-color: #026e84;
  color: #ffffff !important;
}

a.btn-zurueck {
  background-color: #01859E;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
}

a.btn-zurueck:hover {
  background-color: #026e84;
}

/* ----------------------------- */
/* HEADER & LOGO                 */
/* ----------------------------- */

header#header {
  background-color: #03495F !important;
  z-index: 10;
  position: relative;
}

.header .brand-logo img {
  max-height: 120px;
  width: auto;
  margin: 2.5rem 0;
}

/* ----------------------------- */
/* ICON-KACHELN & REIHEN        */
/* ----------------------------- */

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.icon-col img {
  width: 64px;
  height: auto;
  margin-bottom: 0.75rem;
}

.icon-col h3 {
  color: #03495F;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0.25rem 0 0.5rem 0;
  font-weight: 700;
}

.icon-col h3 span {
  display: block;
  font-weight: 600;
}

.icon-col p {
  margin: 0;
  line-height: 1.5;
}

.icon-row a.icon-col {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.icon-row a.icon-col:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

/* ----------------------------- */
/* TOOLTIP-STIL                  */
/* ----------------------------- */

.tooltip-container {
  position: relative;
}

.tooltip-box {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
  width: 400px;
  max-width: 90%;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #03495F;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.tooltip-container:hover .tooltip-box,
.icon-col:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.tooltip-image {
  width: 60px;
  height: auto;
  border-radius: 50%;
  margin-top: 1rem;
}

.icon-row:hover,
.icon-row:focus-within {
  z-index: 10;
}

/* ----------------------------- */
/* WEBINAR-HIGHLIGHT-BEREICH    */
/* ----------------------------- */

.icon-row.webinar-highlight {
  background-color: #f7f9fb;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.icon-row.webinar-highlight .icon-col {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* ----------------------------- */
/* FOOTER                        */
/* ----------------------------- */

.site-footer {
  background-color: #03495F;
  color: #ffffff;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.site-footer .footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

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

.site-footer p {
  margin: 0;
}

.site-footer p,
.site-footer a {
  color: #ffffff !important;
}

/* ----------------------------- */
/* BACK-TO-TOP BUTTON            */
/* ----------------------------- */

#back-top {
  background-color: #01859E;
  color: #ffffff;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

#back-top:hover {
  background-color: #026e84;
}

#back-top .icon-arrow-up::before {
  font-size: 1.25rem;
}

/* ----------------------------- */
/* CONTENT-SECTIONS (UNTERSEITEN) */
/* ----------------------------- */

.content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 1rem;
}

/* Headings in Sections */
.content-section h1,
.content-section h2 {
  color: #03495F;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.content-section h2:first-child,
.content-section h1:first-child {
  margin-top: 0;
}

/* Fließtext */
.content-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #413F41;
}

/* Listen */
.content-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #413F41;
}
.content-section ul li {
  margin-bottom: 0.75rem;
}

/* ----------------------------- */
/* GRID-KOMPONENTEN              */
/* ----------------------------- */

.icon-row,
.icon-row.site-grid,
.icon-row.site-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* 4er Grid für spezielle Anwendungsfälle */
.icon-row.site-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
@media (max-width: 1024px) {
  .icon-row.site-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .icon-row.site-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Spezialfall: site-grid (zentriert, gepaddet) */
.icon-row.site-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0 1rem;
}

/* Kachel */
.icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background-color: #fff;
  position: relative;
  z-index: 1;
  height: auto !important;
  min-height: 0 !important;
}

/* ----------------------------- */
/* MARGIN-MANAGEMENT             */
/* ----------------------------- */

/* Kleiner Abstand, wenn Überschrift direkt auf Grid folgt */
.icon-row + h2,
.icon-row.site-grid + h2,
.icon-row.site-grid-4 + h2 {
  margin-top: 0.5rem !important;
}

/* ----------------------------- */
/* HERO-FOTO                     */
/* ----------------------------- */

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #f7f9fb 70%, #ffffff 100%);
  border-radius: 10px;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2rem 2rem 2rem;
  gap: 2.5rem;
}

.hero-text {
  flex: 2 1 0;
  min-width: 240px;
}

.hero-image {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(34,48,60,0.08);
  background: #fff;
}

@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem 1.5rem 1rem;
    gap: 1.5rem;
  }
  .hero-image {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
  .hero-image img {
    max-width: 160px;
  }
}

.dashboard-tiles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem 1rem;
}

.dashboard-tiles h1 {
  color: #03495F;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: left;
}

.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.dashboard-tile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(34,48,60,0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 320px;
  transition: box-shadow 0.3s;
  position: relative;
}

.dashboard-tile:hover {
  box-shadow: 0 6px 32px rgba(34,48,60,0.14);
  z-index: 2;
}

.dashboard-tile img {
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  object-fit: contain;
}

.dashboard-tile h2 {
  color: #01859E;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-tile p {
  font-size: 1rem;
  color: #413F41;
  margin-bottom: 2rem;
  line-height: 1.5;
  flex: 1 1 auto;
}

.dashboard-tile .btn {
  margin-top: auto;
}

.notice-tile {
  background: linear-gradient(100deg, #e6f4fa 60%, #fff 100%);
  border: 2px solid #01859E20;
}

@media (max-width: 900px) {
  .tile-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .dashboard-tiles {
    padding: 1rem;
  }
}
@media (max-width: 600px) {
  .tile-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}