/* ==========================================================================
   SÜDQUARTIER ERLANGEN — Layout-Ergänzungen zur theme.suedquartier.less
   Einbauort: YOOtheme Customizer → Settings → Custom Code → CSS
   ========================================================================== */

/* --- CSS Variablen --------------------- */

// Details siehe ../less/theme.suedquartier.less
:root {
	--sq-primary:        #5c7a4a;
	--sq-primary-dark:   #2c3e2d;
	--sq-secondary:      #e8c68a;
	--sq-muted:          #bfb4a2;
	--sq-white:          #ffffff;
	--spacing-default: 40px;
	--height-medium: 300px;
}

/* --- Burger-Menü bei Mobile --- */

.uk-icon.uk-navbar-toggle-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.uk-icon.uk-navbar-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #5c7a4a;
  border-radius: 50%;
  z-index: -1;
}

.uk-icon.uk-navbar-toggle-icon svg {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.uk-icon.uk-navbar-toggle-icon:hover::after {
  background: #49613b;
}

/* --- Buttons --- */
.uk-button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 12px 24px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: gap 0.3s ease, padding 0.3s ease;
}

.uk-button::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 20px;
  opacity: 0;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpolyline fill='none' stroke='%23000' stroke-width='1.03' points='10,4 16,10 10,16'/%3E%3Cline fill='none' stroke='%23000' stroke-width='1.03' x1='16' y1='10' x2='4' y2='10'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpolyline fill='none' stroke='%23000' stroke-width='1.03' points='10,4 16,10 10,16'/%3E%3Cline fill='none' stroke='%23000' stroke-width='1.03' x1='16' y1='10' x2='4' y2='10'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: 20px 20px;
  -webkit-mask-size: 20px 20px;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.uk-button:hover {
  gap: 8px;
  padding-right: 20px;
}

.uk-button:hover::after {
  width: 20px;
  opacity: 1;
}

/* --- 1) HOME - Seite ---------------------
   Subhero-Section               */

.panel-divider > .uk-flex-column:not(.uk-first-column) {
   position: relative;
   color: red !important;
}
.panel-divider .uk-flex {position: relative;}
.panel-divider .uk-flex::after {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    width: 1px;
    height: calc(85% - 15%);
    background-color: white;
    z-index: 9999;right: 0;
}
.panel-divider .uk-flex:last-of-type::after {display: none;}

.uk-card-primary.uk-card-body .uk-h1 {font-weight: 700;}


.uk-card-primary.startpanel {
    background-color: #5c7a4ac2;
}

.uk-tile-secondary:not(.uk-preserve-color) h3 {color:#5c7a4a!important;} 
.uk-tile-default h3 {color:#5c7a4a!important;} 
.uk-tile-default {border: solid 2px #5c7a4a;}

.uk-section-primary:not(.uk-preserve-color) .uk-text-secondary {color: #e8c68a !important;}


/* --- HOME: Sektion "Was hier entsteht: Das Wichtigste auf einen Blick" --- */

.panel-group--panel {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0; /* verhindert, dass Safari die Ratio kollabieren lässt */
}

/* Betrifft alle drei Kacheln in der OBEREN Reihe (bei Desktop) */

.panel-group--panel.-first-row > img {
  object-fit: contain; /* SVG füllt aus, ohne überzulaufen oder zu verzerren */
  display: block;
}

.panel-group--panel.-first-row > img,
.panel-group--panel.-first-row > div {
  flex: 1 1 0;         /* beide Items teilen sich den Platz gleichmäßig */
  min-height: 0;       /* wichtig: erlaubt Schrumpfen unter Content-Größe */
  overflow: hidden;    /* falls Content sonst sprengt */
}

.panel-group--panel.-first-row .el-title {
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  font-weight: normal;
  letter-spacing: 0.1em;
  font-size: 1.5rem; /* oder was du visuell willst */
  text-transform: uppercase;
}

/* Betrifft nur die ERSTE Kachel der OBEREN Reihe (bei Desktop) */

.panel-group--panel.-first-row.--first-item {
  align-items: flex-start;
}

.panel-group--panel.-first-row.--first-item .el-title {
  /* Das Wort soll umbrechen */
  width: 64%;
  overflow-wrap: break-word;
  text-align: left;
}

/* Betrifft nur die ZWEITE Kachel der OBEREN Reihe (bei Desktop) */

.panel-group--panel.-first-row.--second-item {
  align-items: flex-end;
}

.panel-group--panel.-first-row.--second-item div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-group--panel.-first-row.--second-item img {
  display: block;
  object-fit: contain;
  object-position: top;
  margin-top: 20px;
}

/* Betrifft nur die DRITTE Kachel der OBEREN Reihe (bei Desktop) */

.panel-group--panel.-first-row.--third-item {
  align-items: flex-end;
}

.panel-group--panel.-first-row.--third-item .number {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 5em;
  font-weight: 700;
}

.panel-group--panel.-first-row.--third-item .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-wrap: anywhere; /* moderner Ersatz, in allen Browsern konsistent */
  text-align: left;
}



/* Betrifft die drei Kacheln in der UNTEREN Reihe (bei Desktop) */

.panel-group--panel.-second-row {
  align-items: center;
  justify-content: center;
  background-color: #5c7a4a;
  color: white;
}

.panel-group--panel.-second-row .el-title {
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 1.5rem; /* oder was du visuell willst */
  text-transform: uppercase;
}

.panel-group--panel.-second-row .el-content {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}



/* Mobile: Columns stapeln, vertikale Linie ausblenden */
@media (max-width: 959px) {
   .panel-divider > div:not(.uk-first-column)::before {
	   display: none;
   }
}
