/* ============================================================
   DLS Software und Beratung – Custom Stylesheet
   Farbschema: Weinrot #7A3B49 (DLS-Marke),
               Bernstein #C8941A (Akzent),
               Warm-Weiß #FAF8F5 (Hintergrund)
   ============================================================ */

/* --- Primärfarbe für Zensical/Material -------------------- */
[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #7A3B49;
  --md-primary-fg-color--light: #9A5060;
  --md-primary-fg-color--dark:  #5E2C38;
  --md-primary-bg-color:        #ffffff;
  --md-accent-fg-color:         #C8941A;
  --md-default-bg-color:        #FAF8F5;
}

/* Navigations-Tabs etwas großzügiger */
.md-tabs {
  background-color: #6B2F3C;
}

.md-tabs__link {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Hero-Bereich (Homepage) ------------------------------ */
.dls-hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}

.dls-hero__logo {
  display: block;
  height: 80px;
  width: auto;
  margin: 0 auto 1.8rem;
}

.dls-tagline {
  font-size: 2.4rem;
  font-weight: 700;
  color: #7A3B49;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.dls-subline {
  font-size: 1.15rem;
  color: #555;
  font-style: italic;
  margin: 0;
}

/* --- Drei Themen-Blöcke ----------------------------------- */
.dls-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media screen and (max-width: 860px) {
  .dls-topics {
    grid-template-columns: 1fr;
  }
}

.dls-topic {
  padding: 2rem 1.75rem;
  border-radius: 6px;
  color: white !important;
  text-decoration: none !important;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dls-topic:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none !important;
}

.dls-topic h2 {
  color: white !important;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.dls-topic p {
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.dls-topic__icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

/* Planungsfeuerwehr – Bordeaux bis Signal-Rot */
.dls-topic--feuer {
  background: linear-gradient(135deg, #7A1220 0%, #C0392B 100%);
}

/* APL – Navy bis Dyalog-Blau */
.dls-topic--apl {
  background: linear-gradient(135deg, #1B3A6B 0%, #2563A0 100%);
}

/* Tools – Petrol bis Teal */
.dls-topic--tools {
  background: linear-gradient(135deg, #1A5262 0%, #148F7A 100%);
}

/* --- Intro-Text unter den Blöcken (Homepage) -------------- */
.dls-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
  padding: 1rem 0 2rem;
  border-top: 2px solid #f0f0f0;
  margin-top: 1rem;
}

/* --- Themen-Banner (Detailseiten) ------------------------- */
.dls-page-banner {
  padding: 2rem 2rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  color: white;
}

.dls-page-banner h1 {
  color: white !important;
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.dls-page-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 1.05rem;
}

.dls-page-banner--feuer {
  background: linear-gradient(135deg, #7A1220 0%, #C0392B 100%);
}

.dls-page-banner--apl {
  background: linear-gradient(135deg, #1B3A6B 0%, #2563A0 100%);
}

.dls-page-banner--tools {
  background: linear-gradient(135deg, #1A5262 0%, #148F7A 100%);
}

/* --- APL-Code-Anzeige ------------------------------------- */
.apl-symbol {
  font-family: "APL385 Unicode", "Dyalog APL", monospace;
  color: #2563A0;
  font-size: 1.1em;
}

/* --- Kontakt-Karte ---------------------------------------- */
.dls-contact-card {
  background: #F5F0EE;
  border-left: 4px solid #7A3B49;
  padding: 1.5rem 2rem;
  border-radius: 4px;
  margin: 1.25rem 0;
}

/* --- Kontakt: Grid-Layout --------------------------------- */
.dls-contact-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.dls-contact-photo {
  width: 200px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 600px) {
  .dls-contact-layout {
    grid-template-columns: 1fr;
  }
  .dls-contact-right {
    order: -1;
  }
  .dls-contact-photo {
    width: 140px;
    margin: 0 auto;
  }
}

/* --- Social Links ----------------------------------------- */
.dls-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.dls-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.dls-social-link:hover {
  opacity: 0.82;
  text-decoration: none !important;
}

.dls-social-linkedin {
  background-color: #0A66C2;
  color: #ffffff !important;
}

.dls-social-xing {
  background-color: #026466;
  color: #ffffff !important;
}

.dls-social-github {
  background-color: #24292F;
  color: #ffffff !important;
}

/* --- Header: Logo ganz links, kein Grid-Offset ----------- */
.md-header__inner {
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0.4rem !important;
  padding-right: 0.8rem !important;
}

.md-header__button.md-logo {
  margin-left: 0;
  padding-left: 0;
}

/* Nav-Tabs ebenfalls auf volle Breite */
.md-tabs__inner {
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0.4rem !important;
}

/* --- Sprachflagge: Größe anpassen ------------------------- */
.dls-alt-de img,
.dls-alt-en img {
  width: 28px;
  height: 28px;
}

/* --- Footer-Anpassung ------------------------------------- */
.md-footer {
  background-color: #2C2C2C;
}

.md-footer-copyright__highlight a,
.dls-footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.md-footer-copyright__highlight a:hover,
.dls-footer-legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.dls-footer-legal {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

/* --- Seitenhintergrund warm-weiß -------------------------- */
body,
.md-main,
.md-content {
  background-color: #FAF8F5;
}

/* Header-Hintergrund direkt überschreiben */
.md-header {
  background-color: #7A3B49;
  color: #ffffff;
}

.md-header__title,
.md-header__button {
  color: #ffffff;
}

/* --- Startseite: "Index"-H1 ausblenden ------------------- */
.dls-homepage .md-content__inner > h1:first-child {
  display: none;
}
