/* --- Grundcontainer & Farbmodi --- */
.ech_company {
    display: flex;
    flex-direction: row; /* Desktop: Nebeneinander */
    flex-wrap: wrap;
    border-radius: 15px;
    margin: 20px 0;
    overflow: visible !important; /* Wichtig für Ribbon-Überstand */
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: background-color 0.3s ease;
}

/* Responsives Verhalten: Mobil & Tablet (bis 768px) */
@media (max-width: 768px) {
    .ech_company {
        flex-direction: column; /* Text oben, Bild unten */
        overflow: hidden !important; /* Verhindert horizontales Scrollen auf Handys */
    }
    
    .ech_company__title {
        margin: 0 -20px 20px -35px !important; 
        width: calc(100% + 20px) !important;
    }
}

/* Hellmodus – Container */
/* Hellmodus – Container (Glass) */
@media (prefers-color-scheme: light) {
  .ech_company {
    background: rgba(240, 240, 240, 0.55);     /* 👈 Transparenz */
    color: rgb(0, 0, 0);
    backdrop-filter: blur(40px);               /* 👈 Glass-Effekt */
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 84, 134, 0.25);  /* optional weich */
  }
}

/* Dunkelmodus – Container (Glass) */
@media (prefers-color-scheme: dark) {
  .ech_company {
    background: rgba(60, 60, 60, 0.55);        /* 👈 Transparenz */
    color: rgb(242, 242, 242);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(242, 242, 242, 0.18);
  }
}

.ech_company::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: 15px; /* gleich wie Container */

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.06) 40%,
    rgba(0,0,0,0.00) 100%
  );
}

@media (prefers-color-scheme: dark){
  .ech_company::after{
    background: linear-gradient(
      to top,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.06) 40%,
    rgba(0,0,0,0.00) 100%
    );
  }
}

/* --- Spalten-Layout --- */
.ech_company__right, 
.ech_company__left {
    flex: 1 1 50%;
    min-width: 320px;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Linke Seite im Frontend (Text/Anschrift) --- */
.ech_company__right {
    position: relative;
    order: 1; /* Sicherstellen, dass Text zuerst kommt */
}

.ech_company__title {
    background-color: rgb(0, 84, 134);
    color: rgb(240, 240, 240);
    margin: 0 0 20px -35px !important; /* Überstand nach links */
    padding: 10px 20px 10px 35px;
    width: calc(100% + 15px); 
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
}

/* Kontakt-Grid */
.ech_company__contact-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    position: relative;
    padding-left: 45px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--icon-height, 20px);
    height: var(--icon-height, 20px);
    background-size: contain;
    background-repeat: no-repeat;
}

/* Icon-Zuweisung über CSS-Variablen */
@media (prefers-color-scheme: light) {
    .icon-addr::before { background-image: var(--i-addr-l); }
    .icon-phone::before { background-image: var(--i-phone-l); }
    .icon-fax::before { background-image: var(--i-fax-l); }
    .icon-mail::before { background-image: var(--i-mail-l); }
    .icon-web::before { background-image: var(--i-web-l); }
}
@media (prefers-color-scheme: dark) {
    .icon-addr::before { background-image: var(--i-addr-d); }
    .icon-phone::before { background-image: var(--i-phone-d); }
    .icon-fax::before { background-image: var(--i-fax-d); }
    .icon-mail::before { background-image: var(--i-mail-d); }
    .icon-web::before { background-image: var(--i-web-d); }
}

/* --- Rechte Seite im Frontend (Bild) --- */
.ech_company__left {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    order: 2;
}

.ech_company__media img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ech_company__description {
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: rgba(0, 84, 134, var(--opacity, 1));
    color: #f2f2f2;
    padding: 8px 15px 8px 25px;
    border-radius: 5px 0 0 5px;
    z-index: 5;
}

/* Links */
.contact-item a { text-decoration: none; color: inherit; }
.contact-item a:hover { text-decoration: underline; }

/* Spezialanpassung Anschrift */
.icon-addr { align-items: flex-start; }
.icon-addr::before { top: 5px; transform: none; }