﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.header-top {
    background-color: #009d39;
    color: white; /* Optional: Kontrast anpassen */
}

.header-logo {
    max-height: 90px;
}

@media (min-width: 1200px) {
    .header-logo {
        max-height: 130px;
    }
}

.searchbox-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (min-width: 1200px) {
    .searchbox-wrapper {
        margin-left: 4rem;
    }
}

.searchbox-flyout {
    position: absolute;
    top: 100%; /* unter dem Icon */
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    width: 250px;
    z-index: 100;
}

    /* Sichtbar, nur wenn über dem Icon ODER dem Feld */
    .searchbox-wrapper:hover .searchbox-flyout,
    .searchbox-flyout:hover,
    .searchbox-flyout:focus-within {
        opacity: 1;
        pointer-events: auto;
    }

.btn-icon-only {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    color: inherit; /* oder z. B. #000 */
}

    .btn-icon-only:hover {
        background: none;
        color: aqua;
    }

.custom-hover-btn:hover {
    background-color: #009d39 !important;
    color: white !important; /* Optional: bessere Lesbarkeit */
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*#######################################*/

.btn-brand {
    background-color: var(--brand-primary);
    color: var(--brand-primary-contrast);
    border-color: var(--brand-primary);
}

    /* Hover-Zustand */
    .btn-brand:hover {
        background-color: var(--brand-primary);
        transform: scale(1.02); /* optional: leichtes Vergrößern */
        transition: all 0.2s ease-in-out;
    }

.text-brand {
    color: var(--brand-primary);
}

.bg-brand {
    background-color: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

/* ListView Hintergrund einer selektierten Zeile */
.list-group-item.active {
    background-color: darkseagreen; /* gewünschte Hintergrundfarbe */
    border-color: var(--brand-primary); /* optional: Rahmenfarbe anpassen */
    color: white; /* Textfarbe anpassen, damit lesbar */
}

/* Zeile 1 – grüne Infoleiste */
.top-bar {
    background-color: #009d39;
    color: #fff;
    font-size: 0.9rem;
}

    .top-bar a {
        color: #fff;
        text-decoration: none;
    }

        .top-bar a:hover {
            opacity: 0.8;
        }

/* Suchfeld und Abstände */
.search-container {
    margin-left: 0.5rem; /* kleiner Abstand zum Logo */
}

    .search-container .btn {
        padding: 0.25rem 0.4rem;
    }

.nav {
    margin-left: 0.5rem; /* verringert Abstand Suchsymbol ↔ Menü */
}

/* Kontaktinfos linksbündig unter Logo ausrichten */
.contact-info {
    /* margin-left: calc(10% + 0rem); /* grobe Ausrichtung: Start unter Logo */
    margin-left: 0;
    text-align: left;
}

/* Feinjustierung für verschiedene Viewports */
@media (max-width: 992px) {
    .contact-info {
        margin-left: 0; /* auf kleineren Screens normal fließen */
        text-align: center;
    }
}

.search-form {
    width: 220px;
    z-index: 10;
}

/* Kategoriebar – optische Trennung */
.category-bar {
    font-weight: 500;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .top-bar span {
        display: none;
    }

    .search-form {
        width: 180px;
    }

    nav ul {
        flex-wrap: wrap;
    }
}

/* Abstand Logo → Suchsymbol */
/*.search-container {
    margin-left: -10px; /* optional, falls noch näher gewünscht */
}
*/

/* Navigation direkt am Suchsymbol */
nav ul.nav li {
    margin-right: 1rem; /* etwas Abstand zwischen Home, Über uns, Kontakt */
}

/* Kontaktinfos */
.contact-info a {
    color: #000;
    text-decoration: none;
}

    .contact-info a:hover {
        text-decoration: underline;
    }

    /* Logo-Größe kontrollieren */
.logo-img {
  max-height: 80px;
  width: auto;
}

@media (min-width: 1200px) {
    .logo-img {
        max-height: 120px;
    }
}

/* Kontakttext etwas dezentere Darstellung */
.contact-info .contact-hours {
  font-size: 0.95rem;
  color: #555;
}

/* Auf kleinen Bildschirmen: Logo oben, Kontakt darunter (zentriert) */
@media (max-width: 767.98px) {
  .brand-area {
    width: 100%;
    gap: 8px;
  }
  .brand-area .contact-info {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    padding-left: 0.25rem;
  }
  .brand-area nav { order: 3; width: 100%; margin-top: .5rem; }
  .search-container { order: 4; margin-top: .25rem; }
}

/* Auf großen Bildschirmen: Kontakt neben Logo, Navigation daneben */
@media (min-width: 768px) {
  .brand-area { align-items:center; }
  .contact-info { align-items:center; }
}

.product-description-full {
    font-size: .95rem;
    color: #495057;
    line-height: 1.4;
}

.list-group-item {
    padding: .5rem .75rem;
}

@media (max-width: 767.98px) {
    .product-description-full {
        font-size: .92rem;
    }

    .list-group-item {
        font-size: .92rem;
    }
}
