/* TMC-Homepage – statischer Nachbau der bisherigen Joomla-Seite (Template et_electrical, Preset 6). */
:root {
  --blau: #0092ca;
  --hellblau: #aedbf1;
  --lila: #3b2a98;
  --dunkel: #252525;
  --grau: #444;
  --fuss: #292e2b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.56;
  color: var(--dunkel);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-decoration: none; }
a:hover { color: #006f9a; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.fa { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }

/* Leiste oben */
.topbar { background: var(--grau); color: #fff; font-size: 14px; }
.kontaktleiste { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap;
  gap: 4px 26px; min-height: 45px; align-items: center; font-weight: 700; }
.kontaktleiste a { color: #fff; }
.kontaktleiste a:hover { color: var(--hellblau); }

/* Kopf mit Logo */
.kopf { background: #fff; }
.kopf .container { min-height: 170px; display: flex; align-items: center; }
/* Kopf-Logo breit: Laptop | SYNAXON | IT-Service.Network (bilder/tmc-logo-breit.jpg, erzeugt mit logo_breit.py) */
.logo img { width: 780px; max-width: 100%; }

/* Hauptmenü */
.menue { background: var(--blau); }
.menue ul { list-style: none; margin: 0; padding: 0; }
#hauptmenue { display: flex; flex-wrap: wrap; }
#hauptmenue > li { position: relative; }
#hauptmenue > li > a { display: block; padding: 0 12px; line-height: 80px; font-size: 20px; font-weight: 700; color: #fff; }
#hauptmenue > li > a:hover { color: var(--hellblau); }
#hauptmenue > li.aktiv > a { background: var(--hellblau); color: var(--grau); }
#hauptmenue .pfeil { width: .7em; height: .9em; vertical-align: -0.1em; }
.unter-auf, .menue-auf { display: none; }
.unter { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 260px; background: #fff; padding: 10px 0;
  box-shadow: 0 3px 12px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; }
.hat-unter:hover > .unter, .hat-unter:focus-within > .unter { opacity: 1; visibility: visible; transform: none; }
.unter a { display: block; padding: 7px 20px; font-size: 15px; line-height: 1.4; color: var(--grau); }
.unter a:hover, .unter li.aktiv > a { color: var(--blau); }

/* Inhalt */
.inhalt { padding: 40px 0 100px; }
h1 { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 30px; }
h2 { font-size: 22px; font-weight: 400; line-height: 1.3; margin: 30px 0 12px; }
h3 { font-size: 20px; font-weight: 400; margin: 24px 0 10px; }
.inhalt p { font-size: 14px; margin: 0 0 14px; }

.knopf { display: inline-block; background: var(--blau); color: #fff; padding: 8px 12px; border-radius: 4px;
  font-size: 14px; line-height: 20px; font-weight: 700; transition: background .2s; }
.knopf:hover { background: #007aa9; color: #fff; }
.knopf-zeile { margin-top: 40px !important; }

/* Kacheln (Startseite 2 Spalten, Managed Services 4 Spalten) */
.kacheln { display: grid; gap: 30px; margin-bottom: 30px; }
.kacheln-2 { grid-template-columns: repeat(2, 1fr); gap: 30px 30px; }
.kacheln-4 { grid-template-columns: repeat(4, 1fr); }
.kachel { background: #fff; padding-top: 20px; box-shadow: 10px 0 30px rgba(0,0,0,.1); border-bottom: 7px solid var(--lila);
  text-align: center; display: flex; flex-direction: column; animation: herein .9s ease-out both; }
.kachel:nth-child(2) { animation-delay: .1s; } .kachel:nth-child(3) { animation-delay: .2s; } .kachel:nth-child(4) { animation-delay: .3s; }
@keyframes herein { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
.kachel img { width: 100%; transition: opacity .2s; }
.kachel > a:hover img { opacity: .85; }
.kachel h4 { font-size: 20px; font-weight: 500; line-height: 24px; margin: 20px 15px 10px; flex: 1; }
.kachel h4 a { color: var(--blau); }
.kachel p { margin: 20px 0 30px !important; }
.kacheln-4 .kachel h4 { font-size: 16px; line-height: 1.3; }
.kacheln-4 .knopf { font-size: 12px; padding: 6px 10px; }

/* Listen mit Hand (Page-Builder-„Feature Box“) */
ul.hand { list-style: none; margin: 0 0 20px; padding: 0; }
ul.hand li { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; font-size: 14px; }
ul.hand .fa { width: 36px; height: 36px; color: var(--blau); }

table.zeiten { border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
table.zeiten td { padding: 6px 40px 6px 0; }

ul.kontaktdaten { list-style: none; margin: 0; padding: 0; font-size: 14px; }
ul.kontaktdaten li { margin-bottom: 14px; }
ul.kontaktdaten .fa { color: var(--blau); margin-right: 10px; }
ul.kontaktdaten li.ohne { color: var(--dunkel); }

.rechtstext { font-size: 14px; }
.rechtstext h1 { font-size: 30px; }
.rechtstext h2 { font-size: 24px; }
.rechtstext h3 { font-size: 19px; }
.rechtstext h4 { font-size: 16px; margin: 18px 0 8px; }
.rechtstext table { border-collapse: collapse; margin: 10px 0 20px; }
.rechtstext td, .rechtstext th { border: 1px solid #ccc; padding: 6px 12px; text-align: left; }
.rechtstext a { word-break: break-word; }

/* Bereich unten */
.unten { background: rgba(174, 219, 241, .4); border-top: 2px solid var(--lila); padding: 60px 0 30px; color: var(--blau); font-size: 14px; }
/* breites Logo als eigene Zeile über Anschrift / Kontakt / Impressum */
.raster-unten { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 30px; }
.logo-zeile { grid-column: 1 / -1; }
.logo-unten { width: 440px; max-width: 100%; background: #fff; padding: 10px 14px; border-radius: 4px; }
.titel-unten { position: relative; font-size: 22px; font-weight: 600; color: var(--blau); margin: 0 0 30px; padding-bottom: 20px; }
.titel-unten::before { content: ""; position: absolute; left: 0; bottom: 0; width: 80%; max-width: 245px; height: 2px; background: var(--blau); }
.titel-unten::after { content: ""; position: absolute; left: 30px; bottom: 0; width: 15px; height: 2px; background: #1d2736; }
.unten p { margin: 0 0 10px; }
.unten .fa { margin-right: 8px; }

.fuss { background: var(--fuss); color: #fff; font-size: 14px; text-align: center; padding: 30px 0; }

.nach-oben { position: fixed; right: 30px; bottom: 60px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(100,100,100,.4); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 30; }
.nach-oben.sichtbar { opacity: 1; visibility: visible; }
.nach-oben:hover { background: rgba(100,100,100,.7); color: #fff; }

/* Menü auf dem Desktop immer einzeilig: breiterer Inhalt ab 1400 px, darunter kleinere Schrift */
#hauptmenue > li > a { white-space: nowrap; }
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  #hauptmenue { flex-wrap: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  #hauptmenue { flex-wrap: nowrap; }
  #hauptmenue > li > a { font-size: 17px; padding: 0 10px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #hauptmenue { flex-wrap: nowrap; }
  #hauptmenue > li > a { font-size: 14px; padding: 0 7px; line-height: 64px; }
}

/* Schmale Bildschirme */
@media (max-width: 991px) {
  .kacheln-4 { grid-template-columns: repeat(2, 1fr); }
  .raster-unten { grid-template-columns: 1fr 1fr; }
  .menue-auf { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font: 700 20px Arial, sans-serif;
    padding: 0; height: 64px; cursor: pointer; }
  .menue-auf .fa { width: 24px; height: 24px; }
  #hauptmenue { display: none; flex-direction: column; padding-bottom: 10px; }
  .menue.offen #hauptmenue { display: flex; }
  #hauptmenue > li > a { line-height: 48px; font-size: 18px; }
  #hauptmenue .pfeil { display: none; }
  .hat-unter > a { margin-right: 52px; }
  .unter-auf { display: flex; position: absolute; right: 0; top: 0; width: 48px; height: 48px; align-items: center; justify-content: center;
    background: none; border: 0; color: #fff; cursor: pointer; }
  .unter-auf .fa { width: 18px; height: 18px; transition: transform .2s; }
  .hat-unter.auf .unter-auf .fa { transform: rotate(180deg); }
  .unter { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none;
    background: rgba(255,255,255,.12); padding: 4px 0; }
  .hat-unter:hover > .unter, .hat-unter:focus-within > .unter { display: none; }
  .hat-unter.auf > .unter { display: block; }
  .unter a, .unter li.aktiv > a { color: #fff; padding-left: 28px; }
  .unter li.aktiv > a { background: rgba(255,255,255,.18); }
}
@media (max-width: 600px) {
  .kontaktleiste { justify-content: center; padding: 8px 0; gap: 2px 16px; font-size: 13px; }
  .kopf .container { min-height: 120px; }
  .kopf .container { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
  .kacheln-2, .kacheln-4, .raster-unten { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .inhalt { padding: 30px 0 60px; }
  ul.hand .fa { width: 28px; height: 28px; }
  table.zeiten td { padding-right: 16px; }
  .nach-oben { right: 16px; bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .kachel { animation: none; }
  html { scroll-behavior: auto; }
}
