/* Start: Recommended Isotope styles */

/**** Isotope Filtering ****/

.img-rounded {
  width: 100%;
}

/**** Isotope CSS3 transitions ****/

/**** disabling Isotope CSS3 transitions ****/

/* End: Recommended Isotope styles */

/* disable CSS transitions for containers with infinite scrolling*/

/**** Base styles ****/

.iso-ul {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7em;
  color: #000;
  margin-left: 1.5em;
}

h1, h2, p, ul {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

h1, h2, .element {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

h1 {
  font-size: 1.3rem;
  line-height: 1.1em;
    font-weight: bold;

}

h2 {
  font-size: 14px;
  line-height: 1.1em;
}

/**** Isotope styles ****/

/* required for containers to inherit vertical size from window */
html, body {
  height: 100%;
}

#container {
  /* border: 1px solid #666; */
}


.col-sm-4.offset-md-1.py-4.boxed .list-unstyled a {
    font-size: 1.25rem !important;
    font-weight: 500;
    transition: color 0.3s ease;
    color: #ffffff !important;
    text-decoration: underline;
}

.element {
  width: 170px;
  margin: 5px;
  overflow: hidden;
  background: #ffffff;   /* #E30613; */
  color: #222;
  -webkit-border-top-right-radius: 1.2em;
  -moz-border-radius-topright: 1.2em;
  border-top-right-radius: 1.2em;
  -webkit-border-bottom-right-radius: 1.2em;
  -moz-border-radius-bottomright: 1.2em;
  border-bottom-right-radius: 1.2em;
  -webkit-border-top-left-radius: 1.2em;
  -moz-border-radius-topleft: 1.2em;
  border-top-left-radius: 1.2em;
  -webkit-border-bottom-left-radius: 1.2em;
  -moz-border-radius-bottomleft: 1.2em;
  border-bottom-left-radius: 1.2em;
  -webkit-box-shadow: 5px 0px 5px rgba(0,0,0,0.2);
-moz-box-shadow: 5px 0px 10px rgba(0,0,0,0.2);
  box-shadow: 8px 8px 12px rgba(0,0,0,0.2);
}
.element h2 { font-size: 1rem;; left: 0.5em; bottom: 2.5em; }
.element h1 { font-size: 1.3rem;; left: 0.5em; bottom: 2.5em; }
.element p { font-size: 1rem;; left: 0.5em; bottom: 2.5em; }

.clickable .element:hover h2 {
  text-shadow: 0 0 10px white, 0 0 10px white;
  color: #000000;
  cursor: pointer;
}

.clickable .element:hover h1 {
  text-shadow: 0 0 10px white, 0 0 10px white;
}

.sold, .dead { 
   background: #ffffff;
}

/* Das H1-Element wird zum Flex-Container */
.text-box h1 {
    display: flex;
    align-items: flex-start; /* Richtet die Flagge an der ersten Zeile aus */
    gap: 2px;                /* Abstand zwischen Flagge und Text (erhöht für besseres Layout) */
    
    /* FIX FÜR LANGE WÖRTER */
    overflow-wrap: break-word; /* Bricht lange Wörter auf die nächste Zeile um */
    word-break: break-word;    /* Zusätzlicher Fallback für ältere Browser */
    min-width: 0;              /* Erlaubt dem Flex-Item, kleiner als sein Inhalt zu werden */
}

/* Verhindert, dass die Flagge gestaucht wird */
.flag-swiss-sm {
    flex-shrink: 0;
    display: inline-block; 
    /* Hinweis: vertical-align hat innerhalb von Flexbox keine Wirkung mehr */
}



/* ==========================================================================
   ===== FIXED FILTER BAR (Works for Watches & People Pages) =====
   ========================================================================== */

#options {
    margin: 10px 10px 20px;
    padding: 0;
    display: block;
    clear: both;

}

/* Base styling for filter sections across all pages */
#options .option-combo {
    display: flex;
    flex-direction: column; /* Forces title on top, buttons below */
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;

}

/* Style the headings ('Select', 'Time', 'Price') cleanly */
#options .option-combo h1 {
    display: block !important;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    padding: 0;

}

/* Clean, horizontally-scrolling track for buttons */
#options .option-combo ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0;
    width: 100% !important;
    gap: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#options ul::-webkit-scrollbar {
    height: 4px;
}

/* Prevents buttons from getting squished or breaking lines */
#options .option-combo li {
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0;
}

/* Button Appearance */
#options li a {
    display: block;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: all .2s ease;
}

/* Active & Hover States (Official Swiss Red #E30613) */
#options li a:hover,
#options li a.selected {
    color: #fff !important;
    background-color: #E30613 !important;
    border-color: #E30613 !important;
}

/* ===== COMBO FILTERS CORRECTION (NO SPACE) ===== */
/* This specifically ensures the multi-row layout on the People page behaves */
#options.combo-filters .option-combo {
    margin-bottom: 10px;

}

/**** Horizontal ****/

/**** Doc page nav ****/

/**** Sites using Isotope ****/

/* Clearfix */
.clearfix:before, .clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  z-index: 1;
}


.text-box { 
margin: 5px; 
color: #000000; 
float: left; 
font-size: 10px; 
line-height: 1.7em; 
padding: 10px; 
    border: 1px solid rgba(0, 0, 0, 0.12); /* Sehr feiner, dezenter Rahmen */
    border-radius: 8px;                    /* Rundet die Ecken passend zur Klasse "img-rounded" ab */
    padding: 16px;                         /* Verhindert, dass der Inhalt direkt am Rahmen klebt */

}

.flag-swiss-sm {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23E30613'/%3E%3Cpath d='M 13,6 H 19 V 13 H 26 V 19 H 19 V 26 H 13 V 19 H 6 V 13 H 13 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.text-muted {
    color: #ffffff !important;
}

/*
==================================================
 Bootstrap custom styles
 Extracted from HTML <style> block
==================================================
*/


/* Placeholder image helpers */


/* Divider example */


/* Vertical example block */


/* Bootstrap Icons alignment */


/* Horizontal navigation scroller */

/* Overrides style.clean.use.css for external links inside text-box h2 tags */
.text-box h2 a[href^="https://"] {
    color: #E30613 !important;
  font-weight: bold;
   display: inline-block;
    max-width: 100%;
    word-break: break-all;     /* Erlaubt den Umbruch an jeder beliebigen Stelle */
    overflow-wrap: break-word; /* Zusätzliche Absicherung für ältere Browser */
}

/* Visited state */
.text-box h2 a[href^="https://"]:visited {
    color: #E30613 !important;
}

/* Hover state */
.text-box h2 a[href^="https://"]:hover {
    color: #000 !important;
}


h4 {
  text-align: center;
}


.text-box h5 {
    display: table;          /* Passt die Breite automatisch an den Text an */
    margin: 3px auto 0 auto; /* Zentriert den Badge perfekt in der Kachel */
    border-radius: 5px;
    font-size: 0.85rem;      /* Etwas kleiner, damit es sich vom H2-Link abhebt */
     text-align: center; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    background: #f5f5f5;
    padding: 3px 10px;       /* Etwas mehr seitliches Padding für bessere Optik */
}


.text-box h6 {
    display: table;          /* Passt die Breite automatisch an den Text an */
    margin: 3px auto 0 auto; /* Zentriert den Badge perfekt in der Kachel */
    border-radius: 5px;
    font-size: 0.85rem;      /* Etwas kleiner, damit es sich vom H2-Link abhebt */
     text-align: center; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    background: #f5f5f5;
    padding: 3px 10px;       /* Etwas mehr seitliches Padding für bessere Optik */
}

.navbar-brand {
font-weight: 900;
font-size: larger;
}
