/*
Theme Name: Transfer Deluxe
Theme URI: https://www.transferdeluxe.eu/
Author: Manuel (Portierung der bestehenden Website)
Description: Klassisches WordPress-Theme fuer den Limousinenservice Transfer Deluxe im Rhein-Main-Gebiet. Originalgetreue Portierung der bisherigen Website (grau/gelbes Design, Lato-Schrift) – eigenstaendig, ohne externe Frameworks. Enthaelt Seiten-Templates fuer Fahrzeuge, Preise, Leistungen, Specials, Referenzen, Galerien und ein Kontaktformular. Legt Seiten und Menue bei Aktivierung automatisch an.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transfer-deluxe
*/

/* =========================================================
   Basis / Design-Tokens (Originalfarben transferdeluxe.eu)
   ========================================================= */
:root {
  --td-bg: #e5e5e5;
  --td-text: #747474;
  --td-accent: #ebd200;      /* Gelb, z.B. Jumbotron-Ueberschrift */
  --td-nav: #7c7c7c;
  --td-line: #dadada;
  --td-dark: #383838;
  --td-white: #ffffff;
  --td-maxwidth: 1170px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: 100px;
  background: var(--td-bg) url("assets/images/bg.gif") repeat;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--td-text);
  line-height: 1.5;
  font-size: 16px;
}

img { max-width: 100%; height: auto; border: 0; }
.img-responsive { display: block; max-width: 100%; height: auto; }

a { color: #5a5a5a; text-decoration: none; transition: color .2s ease; }
a:hover { color: #222; }

.td-container {
  max-width: var(--td-maxwidth);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* Grid-Helfer (leichtes 12er Raster, floaten mit Clearfix) */
.td-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.td-row > [class^="td-col"] { padding: 0 15px; width: 100%; }
@media (min-width: 768px) {
  .td-col-4  { width: 33.3333%; }
  .td-col-5  { width: 41.6667%; }
  .td-col-6  { width: 50%; }
  .td-col-7  { width: 58.3333%; }
  .td-col-8  { width: 66.6667%; }
  .td-col-12 { width: 100%; }
}

/* =========================================================
   Navigation
   ========================================================= */
.td-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: url("assets/images/topnav-bg.gif") left center repeat-x, #f2f2f2;
  border-bottom: 1px solid var(--td-white);
  min-height: 100px;
}
.td-navbar .td-container { display: flex; align-items: center; justify-content: space-between; }
.td-brand { padding: 10px 0; display: inline-block; }
.td-brand img { height: 100px; transition: all .3s ease; }

.td-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--td-nav);
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.td-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--td-nav); margin: 4px 0; }

.td-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.td-menu > li { position: relative; border-left: 1px solid #eaeaea; }
.td-menu > li:last-child { border-right: 1px solid #eaeaea; }
.td-menu > li > a {
  display: block;
  color: var(--td-nav);
  font-size: 18px;
  padding: 39px 12px;
  line-height: 1;
  transition: all .3s ease;
}
.td-menu > li > a:hover,
.td-menu > li.current-menu-item > a,
.td-menu > li.current_page_item > a {
  background: var(--td-accent);
  color: #fff;
}

/* Dropdown */
.td-menu .sub-menu,
.td-menu .children {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 100%; left: 0;
  min-width: 210px;
  background: var(--td-line);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  display: none;
  z-index: 1200;
}
.td-menu li:hover > .sub-menu,
.td-menu li:hover > .children { display: block; }
.td-menu .sub-menu a,
.td-menu .children a {
  display: block;
  color: var(--td-nav);
  font-size: 15px;
  padding: 10px 12px;
  border-bottom: 1px solid #cfcfcf;
}
.td-menu .sub-menu a:hover,
.td-menu .children a:hover { background: var(--td-accent); color: #fff; }
.td-menu .menu-item-has-children > a::after,
.td-menu .page_item_has_children > a::after { content: " \25BE"; font-size: .7em; }

/* Shrink beim Scrollen */
.td-navbar.shrink { min-height: 60px; }
.td-navbar.shrink .td-brand img { height: 50px; }
.td-navbar.shrink .td-menu > li > a { font-size: 15px; padding: 19px 12px; }

/* =========================================================
   Jumbotron / Kopfbereich
   ========================================================= */
.td-jumbotron { padding-top: 50px; text-shadow: 1px 1px 0 #fff; }
.td-headinfo { color: #afafaf; margin-bottom: 20px; display: flex; flex-wrap: wrap; }
.td-headinfo .td-col-7 { text-align: right; }
.td-headinfo .contact-block { display: inline-flex; align-items: center; gap: 10px; }
.td-headinfo .contact-block > div { display: inline-block; text-align: left; }
.td-headinfo img { height: 50px; filter: grayscale(1); }
.td-headinfo .xsmall { font-size: 50%; }

.td-hero { display: flex; flex-wrap: wrap; align-items: center; }
.td-hero-text h3 {
  font-size: 30px; color: var(--td-accent);
  text-shadow: 1px 1px 0 #fff; line-height: 1.5; font-weight: 700; margin: .2em 0;
}
.td-hero-text p { margin: .4em 0; }

/* =========================================================
   Inhalt
   ========================================================= */
.td-content {
  background: url("assets/images/trenner.gif") center top no-repeat;
  padding-top: 30px;
  padding-bottom: 20px;
}
.td-main h1 { font-size: 26px; color: #5a5a5a; margin-top: .3em; }
.td-main h2 { font-size: 22px; color: #5a5a5a; }
.td-main h3 { font-size: 18px; }
.td-main p { margin: 0 0 1em; }
.td-main img { margin-bottom: 10px; }

/* Aufzaehlungen mit Haken / Pfeil (ersetzt FontAwesome) */
ul.check, ul.angle-right { list-style: none; padding-left: 0; }
ul.check li, ul.angle-right li { margin: 0 0 6px 10px; position: relative; padding-left: 22px; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; color: #090; font-weight: 700; }
ul.angle-right li::before { content: "\203A"; position: absolute; left: 2px; font-weight: 700; }

/* Sidebar / Teaser */
.td-well {
  background: #e5e5e5 url("assets/images/bg-dark.gif") repeat;
  margin-top: 20px;
  padding: 19px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}
.td-teaserbox { margin-bottom: 10px; }
.td-teaserbox span { display: block; font-weight: 700; }
.td-teaserbox img { padding: 20px 0; }

/* =========================================================
   Fahrzeuge / Karten
   ========================================================= */
.td-vehicle { margin-bottom: 30px; }
.td-vehicle h2 { margin-bottom: 8px; }

/* Preistabelle */
.td-price-list { list-style: none; padding: 0; max-width: 420px; }
.td-price-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #cfcfcf; }
.td-price-list li strong { color: #5a5a5a; }
.td-badge-new {
  display: inline-block; background: var(--td-accent); color: #fff;
  padding: 2px 8px; border-radius: 3px; font-size: .8em; font-weight: 700;
}

/* =========================================================
   Galerie
   ========================================================= */
.td-gallery-group { margin-bottom: 40px; }
.td-gallery-group > h2 { border-bottom: 1px solid var(--td-line); padding-bottom: 6px; }
.td-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 768px) { .td-gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.td-frame {
  background-image: radial-gradient(#fff, #383838);
  padding: 3px; overflow: hidden; position: relative; cursor: pointer;
  border-radius: 2px;
}
.td-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: all .3s ease;
}
.td-frame:hover img { transform: scale(1.2); filter: grayscale(100%); }
.td-frame .td-caption {
  position: absolute; bottom: 3px; left: 3px; right: 3px; z-index: 3;
  padding: 5px; color: #fff; background: rgba(0,0,0,.8); font-size: .85em;
}

/* Lightbox */
.td-lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(255,255,255,.92); align-items: center; justify-content: center;
}
.td-lightbox.open { display: flex; }
.td-lightbox img { max-width: 90%; max-height: 85%; box-shadow: 0 0 40px rgba(0,0,0,.5); background: #fff; padding: 4px; }
.td-lightbox .td-lb-close,
.td-lightbox .td-lb-prev,
.td-lightbox .td-lb-next {
  position: absolute; background: rgba(0,0,0,.55); color: #fff; border: none;
  font-size: 28px; cursor: pointer; width: 48px; height: 48px; border-radius: 4px;
}
.td-lightbox .td-lb-close { top: 20px; right: 20px; }
.td-lightbox .td-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.td-lightbox .td-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Kontaktformular
   ========================================================= */
.td-form label { display: block; font-weight: 700; margin: 12px 0 4px; }
.td-form input[type="text"],
.td-form input[type="email"],
.td-form input[type="tel"],
.td-form textarea {
  width: 100%; padding: 10px; border: 1px solid #cfcfcf; border-radius: 4px;
  font-family: inherit; font-size: 16px; background: #fff;
}
.td-form textarea { min-height: 140px; }
.td-form .td-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.td-form .td-check input { margin-top: 4px; }
.td-hp { position: absolute; left: -9999px; }
.td-btn {
  display: inline-block; background: var(--td-accent); color: #fff; border: none;
  padding: 12px 26px; font-size: 16px; font-weight: 700; border-radius: 4px;
  cursor: pointer; margin-top: 16px; transition: opacity .2s ease;
}
.td-btn:hover { opacity: .85; color: #fff; }
.td-alert { padding: 14px 16px; border-radius: 4px; margin-bottom: 16px; }
.td-alert-success { background: #dff0d8; color: #3c763d; border: 1px solid #c3e6cb; }
.td-alert-danger  { background: #f2dede; color: #a94442; border: 1px solid #ebccd1; }

/* =========================================================
   Footer
   ========================================================= */
.td-footer {
  border-bottom: 1px solid var(--td-line);
  background: url("assets/images/trenner.gif") center top no-repeat;
  color: var(--td-text);
  margin-top: 50px;
  padding: 30px 0;
  font-size: 1.25em;
}
.td-footer h6 { font-size: 1.2em; margin: 0 0 10px; text-transform: uppercase; }
.td-footer .contact-block { display: inline-flex; align-items: center; gap: 10px; }
.td-footer img { height: 50px; filter: grayscale(1); }
.td-footer .small { font-size: .7em; }

.td-bottomline { border-top: 1px solid #fff; line-height: 35px; padding: 6px 0; font-size: .9em; }
.td-bottomline .td-container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.td-bottomline a { color: var(--td-text); text-shadow: 1px 1px 0 #fff; }
.td-bottomline .copy { color: #c4c4c4; font-style: italic; font-size: .85em; }

/* Cookie-Hinweis */
#td-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #efe067; border-top: 1px solid #fff; padding: 20px;
  font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
#td-cookie.hide { display: none; }
#td-cookie .td-btn { margin: 0; background: #4a8a34; }

/* Back to top */
#td-top {
  position: fixed; bottom: 20px; right: 15px; z-index: 1500;
  width: 45px; height: 45px; line-height: 45px; text-align: center;
  background: var(--td-line); color: #fff; border: 1px solid #fff; border-radius: 2px;
  font-size: 26px; opacity: 0; pointer-events: none; transition: opacity .4s ease;
  text-shadow: 0 0 5px rgba(0,0,0,.8);
}
#td-top.show { opacity: .8; pointer-events: auto; }
#td-top:hover { opacity: 1; color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .td-brand img { height: 80px; }
}
@media (max-width: 991px) {
  .td-headinfo .td-col-7 { text-align: center; }
  .td-headinfo { justify-content: center; text-align: center; }
  .td-hero { justify-content: center; text-align: center; }
}
@media (max-width: 767px) {
  body { padding-top: 70px; }
  .td-navbar { min-height: 70px; background: var(--td-line); }
  .td-brand img { height: 50px; }
  .td-nav-toggle { display: block; }
  .td-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--td-line); box-shadow: 0 8px 16px rgba(0,0,0,.15);
  }
  .td-navbar.menu-open .td-menu { display: flex; }
  .td-menu > li { border: none; border-top: 1px solid #cfcfcf; }
  .td-menu > li > a { padding: 12px 15px; }
  .td-menu .sub-menu, .td-menu .children { position: static; display: block; box-shadow: none; background: #cfcfcf; }
  .td-footer { text-align: center; }
  .td-footer .contact-block { justify-content: center; }
  .td-bottomline .td-container { justify-content: center; text-align: center; }
  .td-jumbotron { padding-top: 20px; }
  .td-hero-text h3 { font-size: 24px; }
  .td-main h1 { font-size: 20px; }
  .td-main h2 { font-size: 18px; }
}
