/* ==========================================================================
   gps24.at – Design-System "Slate Teal Tech"
   ========================================================================== */
:root {
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-header: #1b2430;
  --color-header-alt: #232e3d;
  --color-header-text: #e7ebef;
  --color-header-text-muted: #93a0af;
  --color-text: #1b2430;
  --color-text-muted: #5b6875;
  --color-border: #e2e6eb;
  --color-accent: #0d9488;
  --color-accent-dark: #0b7f74;
  --color-accent-light: #e6f5f3;
  --color-accent-2: #2dd4bf;
  --color-danger: #c0392b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(16,24,32,0.06);
  --shadow-md: 0 6px 20px rgba(16,24,32,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--color-accent); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
header {
    background-color: var(--color-header);
    color: var(--color-header-text);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 34px;
    margin-right: 12px;
}

header h1 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 22px;
}

header nav ul li {
    margin-left: 0;
}

header nav ul li a {
    color: var(--color-header-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92em;
    white-space: nowrap;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

header nav ul li a:hover {
    color: #ffffff;
    text-decoration: none;
    border-bottom-color: var(--color-accent-2);
}

#cart-nav {
  background-color: var(--color-accent);
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 999px;
  border-bottom: none !important;
  font-size: 0.85em !important;
}
#cart-nav:hover { background-color: var(--color-accent-dark); }

.cart-nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    background-color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 999px;
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80vw);
    height: 100%;
    background-color: var(--color-header);
    z-index: 1000;
    padding: 20px;
    box-shadow: -2px 0 20px rgba(0,0,0,0.35);
    transition: right 0.3s ease-in-out;
}

.offcanvas-menu.open { right: 0; }

.offcanvas-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
}

.offcanvas-menu ul {
    list-style: none;
    padding: 40px 0 0 0;
    margin: 0;
}

.offcanvas-menu ul li {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.offcanvas-menu ul li a {
    color: var(--color-header-text);
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10,14,20,0.55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 960px) {
    header nav .desktop-nav { display: none; }
    .mobile-controls { display: flex; }
}

/* ==========================================================================
   Layout basics
   ========================================================================== */
main {
    padding: 24px 20px 60px;
    margin: 0 auto;
    flex: 1 0 auto;
    width: 100%;
}

section {
    background-color: var(--color-surface);
    padding: 28px 30px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

section h2 {
    color: var(--color-text);
    font-size: 1.45em;
    font-weight: 700;
    padding-bottom: 14px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

section h3 {
    color: var(--color-text);
    font-size: 1.1em;
    margin: 24px 0 10px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    padding: 56px 44px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.hero-text { flex: 1; padding-right: 40px; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    background: var(--color-accent-light);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.05em;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 46ch;
}

.hero-image { flex: 1; text-align: center; }

.hero-image img {
    max-width: 100%;
    width: 420px;
    height: auto;
}

@media (max-width: 700px) {
    .hero { flex-direction: column; padding: 36px 24px; text-align: left; }
    .hero-text { padding-right: 0; margin-bottom: 28px; }
    .hero-image { width: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 0.98em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    border: 1px solid var(--color-accent);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cta-button:hover { background-color: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.cta-button.secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cta-button.secondary:hover {
  background-color: var(--color-bg);
  border-color: #c7ced6;
}

.cta-button.disabled,
a.cta-button.disabled {
  background-color: var(--color-bg) !important;
  border-color: var(--color-border) !important;
  color: #a7b0ba !important;
  pointer-events: none;
  cursor: not-allowed;
}

button:disabled,
.btn:disabled {
  background-color: #e2e2e2 !important;
  color: #a0a0a0;
  cursor: not-allowed;
  border: 1px solid #d1d1d1 !important;
  box-shadow: none !important;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-color: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.95em;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background-color: var(--color-accent-dark); }

.btn-success {
  color: #fff;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-success:hover { background-color: var(--color-accent-dark); }

.btn-link {
  color: var(--color-accent);
  font-weight: 500;
  border-radius: 0;
  background: none;
  border: none;
  padding: 0;
}
.btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link {
  background-color: transparent;
  box-shadow: none;
}

/* ==========================================================================
   Product grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  background: var(--color-surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #ccd3da;
}
.product-card img {
  max-width: 60%;
  height: auto;
  margin-bottom: 15px;
  max-height: 190px;
}
.product-card h3 {
  margin: 10px 0;
  font-size: 1em;
  color: var(--color-text);
}
.product-price {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 15px;
}
.product-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.product-controls input {
  width: 50px;
  padding: 6px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.add-to-cart-btn {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92em;
  transition: background-color 0.2s ease;
}
.add-to-cart-btn:hover { background-color: var(--color-accent-dark); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.pricing-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  background: var(--color-surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border: 1px solid var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 14px;
  border-radius: 999px;
}
.pricing-card h3 {
  margin: 0 0 10px 0;
  color: var(--color-text);
  font-size: 1.3em;
  font-weight: 700;
}
.pricing-price {
  font-size: 2em;
  font-weight: 800;
  color: var(--color-text);
  margin: 10px 0 22px 0;
}
.pricing-price span {
  display: block;
  font-size: 0.34em;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 6px;
  text-transform: none;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  text-align: left;
}
.pricing-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95em;
}
.pricing-features li::before {
  content: "\2713";
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-note {
  margin-top: 20px;
  font-size: 0.88em;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Code table (SMS-Steuercodes)
   ========================================================================== */
.table-wrap { overflow-x: auto; }
.code-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.code-table th, .code-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94em;
}
.code-table th {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
}
.code-table code {
  background-color: var(--color-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
  color: var(--color-text);
}
.qr-image {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 10px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: #fff;
}

/* ==========================================================================
   Warenkorb (Cart)
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 800px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: #fff;
}
.cart-item-details h4 {
  margin: 0 0 4px 0;
  font-size: 0.96em;
  font-weight: 600;
  color: var(--color-text);
}
.cart-item-details p {
  margin: 0;
  font-size: 0.9em;
  color: var(--color-text-muted);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-actions input {
  width: 52px;
  text-align: center;
  padding: 7px 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.cart-item-actions button {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 7px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cart-item-actions button:hover {
  background: #fdf1f0;
  color: var(--color-danger);
  border-color: #f1c6c0;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
.cart-empty p { margin: 0 0 18px 0; font-size: 1.02em; }

.cart-summary-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--color-surface);
  position: sticky;
  top: 20px;
}
.cart-summary-card h3 { margin: 0 0 16px 0; font-size: 1.05em; }
#cart-summary p,
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 10px 0;
  font-size: 0.95em;
  color: var(--color-text-muted);
}
.summary-final-total, #cart-summary p:last-child {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 1.1em !important;
  color: var(--color-text) !important;
}
#cart-summary { margin-bottom: 4px; text-align: left; font-size: 1em; }
.cart-actions { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.cart-actions .cta-button { margin-top: 0; text-align: center; }
.cart-trust {
  margin: 16px 0 0 0;
  font-size: 0.8em;
  color: var(--color-text-muted);
  text-align: center;
}

.summary-discount { color: var(--color-accent-dark) !important; }

/* ==========================================================================
   Forms
   ========================================================================== */
.coupon-group { display: flex; gap: 10px; align-items: center; }
.coupon-group button { width: auto; padding: 10px 15px; font-size: 1em; flex-shrink: 0; }

.form-group-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 34px;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.form-container h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 25px;
    border: none;
    padding-bottom: 0;
}
.form-container h2::after { display: none; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.92em;
    color: var(--color-text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }

button[type="submit"] {
    background-color: var(--color-accent);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s ease;
}
button[type="submit"]:hover { background-color: var(--color-accent-dark); }

#paypal-button-container { margin-top: 10px; }
#paypal-hint { color: var(--color-accent-dark); font-size: 0.9em; margin-top: 8px; text-align: center; }
.payment-option-hint { font-size: 0.85em; color: var(--color-text-muted, #666); margin: 4px 0 0 28px; }
.form-hint { font-size: 0.85em; color: var(--color-text-muted, #666); margin: -10px 0 18px; }

/* ==========================================================================
   Notifications
   ========================================================================== */
#msg, #info {
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 18px;
    color: #fff;
    font-weight: 600;
    display: none;
    z-index: 1100;
}
#msg { background-color: #c0392b; }
#info { background-color: var(--color-accent-dark); }

.hidden { display: none; visibility: hidden; }
td.right { text-align: right; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--color-header);
    color: var(--color-header-text-muted);
    padding: 18px 28px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================================
   Tracker-Tabs (Trackerübersicht, Trackerdetail)
   ========================================================================== */
.tracker-tabs { list-style:none; margin:20px 0 0 0; padding:0; display:flex; gap:8px; border-bottom:2px solid var(--color-border); }
.tracker-tabs li { padding:8px 16px; cursor:pointer; font-weight:bold; color:var(--color-text-muted); border-bottom:2px solid transparent; margin-bottom:-2px; }
.tracker-tabs li.active { color:var(--color-text); border-bottom-color:var(--color-accent); }
.tracker-tab-panel { display:none; padding-top:15px; }
.tracker-tab-panel.active { display:block; }

.compass-arrow { display:inline-block; font-weight:700; color:var(--color-accent); }
footer p { margin: 0; font-size: 0.88em; }
footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; }
footer nav ul li { margin-left: 18px; }
footer nav ul li a { color: var(--color-header-text-muted); text-decoration: none; font-size: 0.88em; }
footer nav ul li a:hover { color: #fff; text-decoration: underline; }

/* PayPal Express im Checkout */
.express-checkout {
    background: var(--color-accent-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px 8px;
    margin-bottom: 8px;
}
.express-checkout h3 { margin: 0 0 6px; font-size: 1.05em; }
.express-checkout p { margin: 0 0 14px; font-size: 0.9em; color: var(--color-text-muted); }
#paypal-express-container { max-width: 400px; }
.checkout-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--color-text-muted);
    font-size: 0.85em;
}
.checkout-divider::before,
.checkout-divider::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.paypal-express-info { font-size: 0.85em; color: var(--color-text-muted); margin-top: 6px; }

/* Tracker -> Optionen */
.rconf-status { font-size: 0.9em; color: var(--color-text-muted); min-height: 1.2em; }
.rconf-status.error { color: var(--color-danger); }
.rconf-result { width: 100%; max-width: 700px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.rconf-device { margin: 0 0 12px; }
.device-status::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--color-text-muted); vertical-align: middle; }
.device-status.online::before { background: var(--color-accent); }
.device-status.offline::before { background: var(--color-danger); }
