/* farben-lederer.de – nachgebaut nach dem TYPO3-Template (website.css + Foundation 4), ohne Framework */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #e8e8e8;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

strong, b { font-weight: 700; }

a { color: #f97325; text-decoration: underline; }
a:hover { color: #f97325; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* --- Kopfleiste ---------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 102px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
}

.site-header__inner {
  position: relative;
  width: 1024px;
  margin: 0 auto;
}

.logo { display: inline-block; margin: 20px 0 0 30px; }
.logo img { display: block; }

.search {
  float: right;
  width: 200px;
  margin: 40px 30px 0 0;
}

.search input {
  display: block;
  width: 100%;
  height: 37px;
  margin: 0;
  padding: 8px 8px 8px 30px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff url(lupe.png) no-repeat 5px center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
  color: rgba(0, 0, 0, .75);
  font: 400 14px Arial, Helvetica, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus { outline: none; border-color: #999; background-color: #fafafa; }
.search input::-webkit-search-cancel-button { display: none; }

.nav { float: right; margin: 42px 100px 0 0; }

.nav__toggle {
  display: block;
  margin: 0;
  padding: 5px 20px;
  border: 1px solid #f97325;
  background: none;
  color: #005da6;
  font: 600 17px/20px Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
}

.nav__panel {
  position: absolute;
  top: 102px;
  left: 50px;
  z-index: 9999;
  width: 920px;
  padding: 30px;
  border: 1px solid #f97325;
  background: #005da6;
  box-shadow: 4px 3px 9px rgba(0, 0, 0, .28);
  /* Ein- und Ausblenden wie bisher mit jQuery fadeIn/fadeOut (400 ms) */
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.nav.is-open .nav__panel { visibility: visible; opacity: 1; transition: opacity .4s ease, visibility 0s; }

.nav__panel ul { display: flow-root; margin: 0; padding: 0; list-style: none; }
.nav__panel li { float: left; width: 150px; margin: 0 0 20px 20px; font-size: 16px; line-height: 25.6px; }
.nav__panel a {
  color: #f97325;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}
.nav__panel a:hover { color: #fff; }

/* --- Inhalt -------------------------------------------------------------- */

#page {
  display: flow-root;
  width: 1024px;
  margin: 102px auto 0;
}

.block {
  width: 100%;
  padding: 20px 30px;
  background: #fff;
}
.block--gray   { background: #484848; }
.block--orange { background: #f97325; }
.block--blue   { background: #aedbec; }
.block--gray *, .block--orange * { color: #fff; }

.block--image img,
.col p > img:only-child { display: block; margin: 0 auto; }

/* Überschrift (TYPO3: Element „Überschrift“, h1) und Überschriften im Text */
.heading, .rte h2 {
  margin: 3.2px 0 8px;
  padding-top: 25px;
  font-size: 40px;
  font-weight: 200;
  line-height: 48px;
}
.heading--center { text-align: center; }
.rte h3 { margin: 0 0 8px; font-size: 20px; font-weight: 400; line-height: 26px; }

/* Fließtext (TYPO3 bodytext + Foundation-Grundwerte) */
.rte p {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
}
.rte strong { font-weight: 700; }
.rte ul, .rte ol {
  margin: 0 0 20px 20px;
  padding: 0;
  font-size: 14px;
  line-height: 22.4px;
}
.rte li ul, .rte li ol { margin-bottom: 0; }

/* Bilder im Text: links/rechts mit Umfluss (neu, im Editor wählbar) */
.rte img.img-left  { float: left;  margin: 4px 20px 10px 0; }
.rte img.img-right { float: right; margin: 4px 0 10px 20px; }
.rte::after { content: ""; display: table; clear: both; }

/* Spalten (TYPO3: multicolumn) */
.block--columns { padding: 20px 30px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--1-2   { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cols--2-1   { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols--1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { padding: 20px 30px; }
.col--flush { padding: 0; }
/* TYPO3 multicolumn-Layout „3 Spalten“: 6px Abstand zwischen den Spalten */
.cols--1-1-1 > .col:nth-child(1) { margin-right: 6px; }
.cols--1-1-1 > .col:nth-child(2) { margin: 0 6px; }
.cols--1-1-1 > .col:nth-child(3) { margin-left: 6px; }

/* In Spalten: Listen wie bei TYPO3 (16px, Kreis), Bild-Absätze mit Abstand wie zwei getrennte Elemente */
.col ul, .col ol { margin-bottom: 0; font-size: 16px; font-weight: 300; line-height: 25.6px; }
.col ul { list-style-type: circle; }
.col p:has(> img:only-child) { margin-bottom: 40px; }
.col > p:last-child:has(> img:only-child) { margin-bottom: 0; }

/* --- Suche --------------------------------------------------------------- */

/* Nachbau der TYPO3-Suche (indexed_search mit Foundation-Tabellenstil) */
.search-results__title {
  margin: 0 0 20px;
  padding-top: 25px;
  font-size: 40px;
  font-weight: 200;
  line-height: 48px;
}
.search-results__title span { color: #f97325; }
.search-results__info p { margin: 0 0 20px; font-size: 14px; font-weight: 400; line-height: 22.4px; }

.search-result table {
  width: 100%;
  margin: 0 0 20px;
  padding-top: 20px;
  border: 1px solid #ddd;
  border-collapse: separate;
  border-spacing: 0;
  background: none;
}
.search-result td {
  padding: 9px 10px;
  color: #222;
  font-size: 14px;
  font-weight: 300;
  line-height: 22.4px;
  text-align: left;
  vertical-align: top;
}
.search-result tr:nth-child(even) { background: #f9f9f9; }
.search-result__icon, .search-result__nr, .search-result__percent { width: 1%; white-space: nowrap; }
.search-result__icon img { display: inline; vertical-align: middle; }
.search-result .hl { color: #f97325; font-weight: 700; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { width: 100%; background: #f97325; color: #fff; }

.site-footer__inner {
  display: flex;
  width: 1024px;
  margin: 0 auto;
  padding: 30px 0 70px;
}
.site-footer__col { padding: 0 15px; }
.site-footer__col--contact { width: 25%; }
.site-footer__col--hours   { width: 33.3333%; }
.site-footer__col--links   { width: 25%; margin-left: auto; }

.site-footer strong { letter-spacing: 1px; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer strong a { text-decoration: none; text-transform: uppercase; }
.site-footer strong a.current { text-decoration: underline; }

/* --- Schmale Bildschirme (neu: die alte Seite war fest 1024px breit) ---- */

@media (max-width: 1040px) {
  .site-header__inner, #page, .site-footer__inner { width: auto; }
  .nav__panel { left: 0; right: 0; width: auto; }
}

@media (max-width: 760px) {
  .site-header { height: auto; position: static; }
  .site-header__inner { display: flex; flex-wrap: wrap; align-items: center; padding: 12px 16px; }
  .logo { margin: 0; flex: 1 1 auto; }
  .nav { float: none; order: 2; margin: 0; }
  .search { float: none; order: 3; width: 100%; margin: 12px 0 0; }
  .nav__panel { top: 100%; padding: 20px; }
  .nav__panel li { float: none; width: auto; margin: 0 0 14px; }
  #page { margin-top: 0; }
  .block { padding: 16px; }
  .cols, .cols--1-2, .cols--2-1, .cols--1-1-1 { grid-template-columns: minmax(0, 1fr); }
  .cols--1-1-1 > .col:nth-child(n) { margin: 0; }
  .col { padding: 12px 0; }
  .heading, .rte h2 { font-size: 30px; line-height: 36px; padding-top: 10px; }
  .site-footer__inner { flex-direction: column; padding: 24px 16px 40px; }
  .site-footer__col { width: auto !important; margin: 0 0 16px !important; padding: 0; }
}
