/*
Theme Name: TTA Tore
Theme URI: https://tta-tore.de
Description: An altes Design angepasstes Design für Ihre neue TTA Tore Seite
Author: TTA Tore - Türen - Antriebe / DataJob
Version: 1.0.0
License: MIT
Text Domain: tta
*/

:root {
  --tta-blue: #00569f;
  --tta-blue-dark: #004a8a;
  --tta-text: #3e3e3e;
  --tta-gray: #6d6d6d;
  --tta-light: #f5f7f9;
  --tta-border: #e3e8ee;
  --tta-container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--tta-text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

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

a { color: var(--tta-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--tta-blue);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 1.2em 0 0.5em;
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4, h5, h6 { font-size: 18px; }

.container {
  max-width: var(--tta-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.tta-header {
  background: var(--tta-blue);
  color: #fff;
  position: relative;
  z-index: 50;
}


.tta-header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  max-width: 1536px;
  width: 80%;
  margin: 0 auto;
}

.tta-logo {
  flex: 0 0 150px;
  width: 150px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  line-height: 0;
}

.tta-logo img {
  width: 150px;
  height: 75px;
  max-height: none;
  display: block;
}

.tta-nav { flex: 1 1 auto; min-width: 0; }
.tta-nav ul#tta-mainnavigation {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 0;
}
.tta-nav ul#tta-mainnavigation > li {
  position: relative;
  margin-left: 4px;
  padding: 10px;
  transition: background 0.6s ease-out;
}

.tta-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
  line-height: 1.25;
}
.tta-nav a:hover { text-decoration: none; }

.tta-nav ul#tta-mainnavigation > li:hover,
.tta-nav ul#tta-mainnavigation > li:focus-within,
.tta-nav ul#tta-mainnavigation > li.current-menu-item {
  background: #fff;
}
.tta-nav ul#tta-mainnavigation > li:hover > a,
.tta-nav ul#tta-mainnavigation > li:focus-within > a,
.tta-nav ul#tta-mainnavigation > li.current-menu-item > a {
  color: var(--tta-blue);
}

.tta-nav ul#tta-mainnavigation > li.has-children > a::after {
  content: "\2304"; /* ⌄ */
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

.tta-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  max-width: 260px;
  margin: 10px 0 0 -150px;
  padding: 0;
  list-style: none;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transition: all 0.6s ease-out;
  z-index: 100;
}
.tta-nav ul#tta-mainnavigation > li:hover > ul.sub-menu,
.tta-nav ul#tta-mainnavigation > li:focus-within > ul.sub-menu {
  visibility: visible;
  opacity: 1;
  margin-left: -10px;
}
.tta-nav ul.sub-menu > li { display: block; margin: 0; padding: 0; }
.tta-nav ul.sub-menu > li > a {
  display: block;
  padding: 16px 10px;
  color: var(--tta-blue);
  font-size: 16px;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: break-word;
  transition: font-weight 0.3s;
}
.tta-nav ul.sub-menu > li > a:hover {
  background: #fff;
  color: var(--tta-blue);
  font-weight: 600;
  text-decoration: none;
}
.tta-nav ul.sub-menu > li.current-menu-item > a {
  background: #edf3f9;
  font-weight: 600;
}

/* mobile toggle */
.tta-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 20px;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 3px;
}

/* ---------- HERO ---------- */

.tta-kv {
  position: relative;
  height: 460px;
  background: #123;
  overflow: hidden;
}
.tta-kv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.tta-kv-slide.active { opacity: 1; }
.tta-kv-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.tta-kv-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}
.tta-kv-dots button.active { background: #fff; }

/* ---------- Content + Sidebar ---------- */

.tta-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 20px 64px;
  max-width: var(--tta-container);
  margin: 0 auto;
}

.tta-content .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin: 30px 0;
  align-items: start;
}
.tta-content .row > .col { min-width: 0; }

/* service cards: centered icon + blue CTA button */
.tta-content .col > a:has(> img),
.tta-content .col a:has(> img) {
  display: block;
  text-align: center;
}
.tta-content .col img {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
  display: block;
}
.tta-content .col > .svc-img {
  text-align: center;
  margin-bottom: 18px;
}
.tta-btn {
  display: inline-block;
  background: var(--tta-blue);
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 15px 22px;
  min-width: 230px;
  max-width: 100%;
  margin: 14px auto 0;
  text-align: center;
  transition: background 0.25s ease;
}
.tta-btn:hover {
  background: var(--tta-blue-dark);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #fff;
}
.tta-content .col > a.tta-btn,
.tta-content .col > a:has(> span:not(.svc-img)):not(:has(img)) {
  display: block;
  background: var(--tta-blue);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 15px 22px;
  text-align: center;
  transition: background 0.25s ease;
}
.tta-content .col > a:has(img) {
  background: none;
  text-transform: none;
  padding: 0;
  min-width: 0;
}
.tta-content .col > a:has(img):hover { box-shadow: none; }

.page-intro {
  font-family: "Arbutus Slab", "Source Sans 3", serif;
  font-weight: 400;
  font-size: 2.4rem;
  text-align: center;
  color: var(--tta-blue);
  margin: 24px 0 30px;
}

.tta-content p { margin: 0 0 1.2em; }
.tta-content ul, .tta-content ol { padding-left: 24px; margin: 0 0 1.2em; }
.tta-content li { margin-bottom: 0.4em; }
.tta-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}
.tta-content table td, .tta-content table th {
  border: 1px solid var(--tta-border);
  padding: 8px 12px;
  vertical-align: top;
}
.tta-content table th { background: var(--tta-light); text-align: left; }

img.img-broken {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--tta-light);
  border: 1px dashed var(--tta-gray);
}

.video-note {
  background: var(--tta-light);
  border: 1px dashed var(--tta-gray);
  color: var(--tta-gray);
  padding: 18px;
  text-align: center;
}

/* ---------- Sidebar ---------- */

.tta-sidebar h3 {
  font-size: 18px;
  margin: 1.6em 0 0.4em;
}
.tta-sidebar h3:first-child { margin-top: 0; }
.tta-sidebar p { margin: 0 0 1.2em; font-size: 13px; color: var(--tta-text); }
.tta-sidebar .ico {
  color: var(--tta-blue);
  margin-right: 8px;
  font-size: 14px;
  width: 16px;
  text-align: center;
}
.tta-sidebar a { color: var(--tta-text); text-decoration: underline; }
.tta-sidebar a:hover { color: var(--tta-blue); }
.tta-sidebar .hours b, .tta-sidebar .hours strong { color: var(--tta-blue); }

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ---------- Photo gallery ---------- */

.tta-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 40px;
}
.tta-gallery a {
  display: block;
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  text-decoration: none;
}
.tta-gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tta-gallery a:hover img { transform: scale(1.06); }
.tta-gallery a figcaption,
.tta-gallery .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 12px;
  padding: 14px 8px 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tta-gallery a:hover .cap { opacity: 1; }

/* lightbox */
.tta-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
.tta-lightbox.open { display: flex; }
.tta-lightbox img { max-width: 92vw; max-height: 92vh; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.tta-lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}
.tta-lightbox .lb-title {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ccc;
  font-size: 13px;
}

/* ---------- Forms ---------- */

.tta-form { max-width: 640px; margin: 24px 0 40px; }
.tta-form .f-row { margin-bottom: 16px; }
.tta-form label {
  display: block;
  font-weight: 600;
  color: var(--tta-blue);
  margin-bottom: 6px;
}
.tta-form input[type="text"],
.tta-form input[type="email"],
.tta-form input[type="tel"],
.tta-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--tta-border);
  border-radius: 3px;
  font: inherit;
  color: var(--tta-text);
  background: #fff;
}
.tta-form input:focus, .tta-form textarea:focus {
  outline: none;
  border-color: var(--tta-blue);
  box-shadow: 0 0 0 2px rgba(0, 86, 159, 0.15);
}
.tta-form textarea { min-height: 140px; resize: vertical; }
.tta-form .f-check { display: flex; gap: 10px; align-items: flex-start; }
.tta-form .f-check input { margin-top: 3px; }
.tta-form .f-check label { font-weight: 400; color: var(--tta-text); margin: 0; }
.tta-form .f-submit {
  background: var(--tta-blue);
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 3px;
}
.tta-form .f-submit:hover { background: var(--tta-blue-dark); }
.tta-form-note {
  padding: 14px 18px;
  background: #e8f3ec;
  border: 1px solid #9ccbac;
  color: #1d6b3a;
  margin: 18px 0;
}
.f-err { border-color: #c0392b !important; }

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

.tta-footer {
  border-top: 1px solid var(--tta-border);
  padding: 22px 20px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--tta-gray);
  background: #fff;
}
.tta-footer a { color: var(--tta-gray); text-decoration: underline; }
.tta-footer a:hover { color: var(--tta-blue); }
.tta-footer .f-links { margin-bottom: 8px; }
.tta-footer .sep { margin: 0 8px; color: #c8c8c8; }

/* ---------- Responsive und Mobil ---------- */

@media (max-width: 980px) {
  .tta-main { grid-template-columns: 1fr; gap: 32px; }
  .tta-sidebar { order: 2; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .tta-kv { height: 340px; }
  .tta-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .tta-header-inner { flex-wrap: wrap; }
  .tta-logo { flex: 1 1 auto; min-height: 0; margin: 10px 0; }
  .tta-nav { display: none; width: 100%; }
  .tta-header.open .tta-nav { display: block; }
  .tta-nav ul#tta-mainnavigation { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .tta-nav ul#tta-mainnavigation > li { margin: 0; padding: 0; }
  .tta-nav a { display: block; padding: 10px 12px; font-size: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .tta-nav ul#tta-mainnavigation > li.has-children > a::after { content: "\2193"; font-size: 14px; }
  .tta-nav ul.sub-menu {
    position: static; display: none; margin: 0; width: auto; max-width: none;
    visibility: visible; opacity: 1; background: rgba(0, 0, 0, 0.18);
  }
  .tta-nav li.open > ul.sub-menu { display: block; }
  .tta-nav ul.sub-menu > li > a { color: #fff; font-size: 15px; padding: 10px 24px; }
  .tta-nav ul.sub-menu > li > a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 400; }
  .tta-nav-toggle { display: block; }
  .tta-content .row { grid-template-columns: 1fr; }
  .tta-gallery { grid-template-columns: repeat(2, 1fr); }
  .tta-kv { height: 260px; }
  .page-intro { font-size: 1.7rem; }
}
