/* ============================================================
   uk.css — komplette UK-Stile (Listing + Detail)
   Eingebunden in Template 11 nach main.css
   Letzte Aktualisierung: 2026-04-26
   ============================================================ */


/* ============================================================
   LISTING (Kategorie-Seiten) — unverändert
   ============================================================ */

.uk-listing { margin: 1rem 0; }

.uk-eintrag {
  border: 1px solid var(--color-border, #ddd);
  border-top: 3px solid var(--color-accent, #2a6496);
  margin-bottom: 1.5rem;
  background: #fff;
}

.uk-eintrag-titel {
  margin: 0;
  padding: .4rem .75rem;
  background: var(--color-accent, #2a6496);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.uk-eintrag-body {
  display: grid;
  grid-template-columns: 162px minmax(150px, 200px) 110px 1fr;
  min-height: 110px;
}

.uk-eintrag-bild {
  padding: .5rem;
  border-right: 1px solid var(--color-border, #ddd);
  display: flex;
  align-items: flex-start;
}
.uk-eintrag-bild img {
  display: block;
  width: 150px;
  height: 100px;
  object-fit: cover;
}
.uk-eintrag-bild img[src=""] { display: none; }

.uk-eintrag-kontakt {
  padding: .5rem .75rem;
  font-size: .875rem;
  line-height: 1.6;
  border-right: 1px solid var(--color-border, #ddd);
}

.uk-eintrag-links {
  padding: .5rem .6rem;
  border-right: 1px solid var(--color-border, #ddd);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-top: .6rem;
}
.uk-extlink {
  display: block;
  font-size: .8rem;
  padding: .25rem .4rem;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 3px;
  text-decoration: none;
  color: var(--color-text, #333);
  background: #f5f5f5;
  white-space: nowrap;
  text-align: center;
}
.uk-extlink:hover {
  background: var(--color-accent, #2a6496);
  color: #fff;
  border-color: var(--color-accent, #2a6496);
}
.uk-leer { display: none; }

.uk-eintrag-text {
  padding: .5rem .75rem .6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.uk-teaser-text {
  font-size: .875rem;
  line-height: 1.5;
  margin: 0 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uk-mehr {
  display: inline-block;
  font-size: .8rem;
  color: var(--color-accent, #2a6496);
  text-decoration: none;
  font-weight: 600;
}
.uk-mehr:hover { text-decoration: underline; }

.uk-adsense { margin-bottom: 1.5rem; text-align: center; }

@media (max-width: 760px) {
  .uk-eintrag-body {
    grid-template-columns: 162px 1fr 110px;
    grid-template-rows: auto auto;
  }
  .uk-eintrag-text {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border, #ddd);
  }
}

@media (max-width: 480px) {
  .uk-eintrag-body { grid-template-columns: 1fr; }
  .uk-eintrag-bild {
    border-right: none;
    border-bottom: 1px solid var(--color-border, #ddd);
    padding: .5rem;
    justify-content: center;
  }
  .uk-eintrag-bild img {
    width: 150px;
    height: 100px;
    object-fit: cover;
  }
  .uk-eintrag-kontakt {
    border-right: none;
    border-bottom: 1px solid var(--color-border, #ddd);
  }
  .uk-eintrag-links {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--color-border, #ddd);
  }
  .uk-eintrag-text {
    grid-column: auto;
    border-top: none;
  }
}


/* ============================================================
   DETAILSEITE — vereinfacht mit Float
   ============================================================ */

.uk-detail { max-width: 800px; }

/* Titel */
.uk-detail-titel {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--color-accent, #2a6496);
}
.uk-titel-name {
  display: inline;
}

/* Sterne */
.uk-sterne {
  font-size: 1.1rem;
  color: #d4a017;
  letter-spacing: .05em;
  margin-left: .5rem;
  display: none;
}
.uk-sterne-1::before { content: '\2605\2606\2606\2606\2606'; }
.uk-sterne-2::before { content: '\2605\2605\2606\2606\2606'; }
.uk-sterne-3::before { content: '\2605\2605\2605\2606\2606'; }
.uk-sterne-4::before { content: '\2605\2605\2605\2605\2606'; }
.uk-sterne-5::before { content: '\2605\2605\2605\2605\2605'; }
.uk-sterne-1, .uk-sterne-2, .uk-sterne-3, .uk-sterne-4, .uk-sterne-5 {
  display: inline-block;
}

/* Top-Bereich: Float-Layout */
.uk-detail-top {
  margin-bottom: 1.5rem;
  overflow: hidden; /* Float-Container */
}
.uk-detail-bild {
  float: left;
  width: 300px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}
.uk-detail-bild img {
  display: block;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 3px;
}
.uk-detail-bild img[src=""] { display: none; }

.uk-detail-kontakt {
  overflow: hidden; /* nimmt restlichen Platz */
  background: #f5f5f5;
  border: 1px solid var(--color-border, #ddd);
  padding: 1rem;
  border-radius: 3px;
}
.uk-detail-kontakt h2 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  color: var(--color-accent, #2a6496);
}
.uk-detail-kontakt p {
  margin: 0 0 .4rem;
  font-size: .9rem;
  line-height: 1.5;
}
.uk-detail-kontakt p:empty { display: none; }
.uk-kontakt-name { font-weight: 600; }
.uk-kontakt-tel:not(:empty)::before { content: 'Tel.: '; }

.uk-clear { clear: both; }

/* Buttons */
.uk-detail-buttons {
  margin-top: .8rem;
}
.uk-detail-buttons .uk-extlink {
  display: inline-block;
  margin: 0 .4rem .4rem 0;
  padding: .4rem .6rem;
  font-size: .85rem;
}
.uk-btn-web[href=""],
.uk-btn-web[href="http://"],
.uk-btn-web[href="https://"] { display: none; }
.uk-btn-mail[href="mailto:"] { display: none; }

/* Sektionen */
.uk-detail-beschreibung,
.uk-detail-preise {
  margin: 1.5rem 0;
}
.uk-detail-beschreibung h2,
.uk-detail-preise h2 {
  font-size: 1.1rem;
  color: var(--color-accent, #2a6496);
  margin: 0 0 .6rem;
  border-bottom: 2px solid var(--color-border, #ddd);
  padding-bottom: .3rem;
}
.uk-beschreibung-text,
.uk-preise-text {
  margin: 0;
  line-height: 1.6;
  white-space: pre-line;
}
.uk-beschreibung-text:empty,
.uk-preise-text:empty { display: none; }

/* Zurück-Link */
.uk-detail-zurueck {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #ddd);
}
.uk-back-link {
  color: var(--color-accent, #2a6496);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.uk-back-link:hover { text-decoration: underline; }

/* Mobil ≤640px */
@media (max-width: 640px) {
  .uk-detail-bild {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
  }
  .uk-detail-bild img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}