/*
Theme Name: EasyGo
Theme URI: https://example.com/
Author: EasyGo
Author URI: https://example.com/
Description: EasyGo WordPress-Theme (Tailwind, DE).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easygo
*/

/* Contact Form 7 — EasyGo (Split-Layout; unabhängig von .wpcf7-Wrapper, robust gegen Tailwind-Preflight) */
.easygo-cf7 {
  --eg-text: #1c1c19;
  --eg-muted: #70787b;
  --eg-outline-variant: #bfc8cb;
  --eg-primary: #00353f;
  --eg-on-secondary-container: #6e5200;
  --eg-secondary-container: #fcc42c;
  --eg-error: #ba1a1a;
}

.easygo-cf7 form.wpcf7-form,
.easygo-cf7 .wpcf7 form.wpcf7-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .easygo-cf7--split form.wpcf7-form,
  .easygo-cf7--split .wpcf7 form.wpcf7-form {
    grid-template-columns: 1fr 1fr;
  }
}

.easygo-cf7 form.wpcf7-form > p,
.easygo-cf7 .wpcf7 form.wpcf7-form > p {
  margin: 0;
}

.easygo-cf7--split form.wpcf7-form > p:has(textarea),
.easygo-cf7--split form.wpcf7-form > p:has(.wpcf7-acceptance),
.easygo-cf7--split form.wpcf7-form > p:has(input.wpcf7-submit),
.easygo-cf7--split form.wpcf7-form > p:has(.wpcf7-spinner),
.easygo-cf7--split .wpcf7 form.wpcf7-form > p:has(textarea),
.easygo-cf7--split .wpcf7 form.wpcf7-form > p:has(.wpcf7-acceptance),
.easygo-cf7--split .wpcf7 form.wpcf7-form > p:has(input.wpcf7-submit),
.easygo-cf7--split .wpcf7 form.wpcf7-form > p:has(.wpcf7-spinner) {
  grid-column: 1 / -1;
}

.easygo-cf7 form.wpcf7-form label,
.easygo-cf7 .wpcf7 label {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--eg-muted);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.easygo-cf7 form.wpcf7-form p:focus-within label,
.easygo-cf7 .wpcf7 p:focus-within label {
  color: var(--eg-primary);
}

.easygo-cf7 form.wpcf7-form .wpcf7-form-control-wrap,
.easygo-cf7 .wpcf7-form-control-wrap,
.easygo-cf7 .wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0;
}

.easygo-cf7 form.wpcf7-form input[type="text"],
.easygo-cf7 form.wpcf7-form input[type="email"],
.easygo-cf7 form.wpcf7-form input[type="tel"],
.easygo-cf7 form.wpcf7-form input[type="url"],
.easygo-cf7 form.wpcf7-form input[type="date"],
.easygo-cf7 form.wpcf7-form input[type="number"],
.easygo-cf7 form.wpcf7-form select,
.easygo-cf7 form.wpcf7-form textarea,
.easygo-cf7 .wpcf7 input[type="text"],
.easygo-cf7 .wpcf7 input[type="email"],
.easygo-cf7 .wpcf7 input[type="tel"],
.easygo-cf7 .wpcf7 input[type="url"],
.easygo-cf7 .wpcf7 input[type="date"],
.easygo-cf7 .wpcf7 input[type="number"],
.easygo-cf7 .wpcf7 select,
.easygo-cf7 .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 0 !important;
  border-bottom: 2px solid var(--eg-outline-variant) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none;
  padding: 0.75rem 0 !important;
  font-size: 15px !important;
  font-weight: 600;
  font-family: "Manrope", sans-serif !important;
  line-height: 1.5;
  color: var(--eg-text) !important;
  outline: none;
  box-shadow: none !important;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.easygo-cf7 form.wpcf7-form select,
.easygo-cf7 .wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2370787b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.75rem !important;
  cursor: pointer;
}

.easygo-cf7 form.wpcf7-form input::placeholder,
.easygo-cf7 form.wpcf7-form textarea::placeholder,
.easygo-cf7 .wpcf7 input::placeholder,
.easygo-cf7 .wpcf7 textarea::placeholder {
  color: rgba(112, 120, 123, 0.5);
  font-weight: 500;
}

.easygo-cf7 form.wpcf7-form input:focus,
.easygo-cf7 form.wpcf7-form select:focus,
.easygo-cf7 form.wpcf7-form textarea:focus,
.easygo-cf7 .wpcf7 input:focus,
.easygo-cf7 .wpcf7 select:focus,
.easygo-cf7 .wpcf7 textarea:focus {
  border-bottom-color: var(--eg-primary) !important;
  box-shadow: none !important;
  outline: none;
}

.easygo-cf7 form.wpcf7-form textarea,
.easygo-cf7 .wpcf7 textarea {
  min-height: 6rem;
  resize: none;
  line-height: 1.5;
}

.easygo-cf7 form.wpcf7-form input.wpcf7-submit,
.easygo-cf7 .wpcf7 input.wpcf7-submit {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: auto !important;
  min-width: 14rem;
  margin-top: 0.5rem;
  padding: 1.25rem 2.5rem !important;
  border: 0 !important;
  border-radius: 0.125rem !important;
  background: var(--eg-secondary-container) !important;
  background-image: none !important;
  color: var(--eg-on-secondary-container) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 700;
  font-size: 0.875rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 20px 40px -15px rgba(28, 28, 25, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.easygo-cf7 form.wpcf7-form input.wpcf7-submit:hover,
.easygo-cf7 .wpcf7 input.wpcf7-submit:hover {
  background: #785a00 !important;
  color: #ffffff !important;
  opacity: 0.95;
}

.easygo-cf7 form.wpcf7-form input.wpcf7-submit:active,
.easygo-cf7 .wpcf7 input.wpcf7-submit:active {
  transform: translateY(1px);
}

.easygo-cf7 .wpcf7-spinner,
.easygo-cf7 .wpcf7 .wpcf7-spinner {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.easygo-cf7 span.wpcf7-not-valid-tip,
.easygo-cf7 .wpcf7 span.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--eg-error);
}

.easygo-cf7 div.wpcf7-response-output,
.easygo-cf7 .wpcf7 div.wpcf7-response-output {
  margin: 1.5rem 0 0 0;
  padding: 1rem 1rem;
  border: 1px solid var(--eg-outline-variant);
  border-radius: 0.25rem;
  background: rgba(252, 249, 245, 0.95);
  color: var(--eg-text);
  font-weight: 600;
  font-size: 14px;
}

.easygo-cf7 form.wpcf7-form.sent div.wpcf7-response-output,
.easygo-cf7 .wpcf7 form.sent div.wpcf7-response-output {
  border-color: rgba(0, 77, 91, 0.35);
}

.easygo-cf7 form.wpcf7-form.invalid div.wpcf7-response-output,
.easygo-cf7 form.wpcf7-form.failed div.wpcf7-response-output,
.easygo-cf7 form.wpcf7-form.aborted div.wpcf7-response-output,
.easygo-cf7 .wpcf7 form.invalid div.wpcf7-response-output,
.easygo-cf7 .wpcf7 form.failed div.wpcf7-response-output,
.easygo-cf7 .wpcf7 form.aborted div.wpcf7-response-output {
  border-color: rgba(186, 26, 26, 0.45);
}

/* CF7: Checkbox/Zustimmung */
.easygo-cf7 .wpcf7-list-item,
.easygo-cf7 .wpcf7 .wpcf7-list-item {
  margin: 0;
}

.easygo-cf7 form.wpcf7-form input[type="checkbox"],
.easygo-cf7 .wpcf7 input[type="checkbox"] {
  width: auto !important;
  min-width: 1rem;
  border: 0 !important;
  border-bottom: 0 !important;
  accent-color: var(--eg-primary);
  margin-right: 0.5rem;
  padding: 0 !important;
  appearance: auto;
  -webkit-appearance: auto;
}

.easygo-cf7 .wpcf7-acceptance label,
.easygo-cf7 .wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* Yazı/Sayfa içerik tipografisi (the_content) */
.easygo-content {
  font-size: 16px;
  line-height: 1.8;
}

.easygo-content p { margin: 0 0 16px; }
.easygo-content h2,
.easygo-content h3,
.easygo-content h4 {
  color: #00353f;
  font-weight: 900;
  line-height: 1.25;
  margin: 28px 0 12px;
}
.easygo-content h2 { font-size: 28px; }
.easygo-content h3 { font-size: 22px; }
.easygo-content h4 { font-size: 18px; }

.easygo-content a {
  color: #004d5b;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.easygo-content ul,
.easygo-content ol { margin: 0 0 16px 22px; }
.easygo-content li { margin: 6px 0; }

.easygo-content blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid #fcc42c;
  background: rgba(0, 77, 91, 0.06);
  border-radius: 14px;
  color: #1c1c19;
  font-weight: 700;
}

.easygo-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Preloader */
.easygo-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fcf9f5;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.easygo-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.easygo-preloader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #bfc8cb;
  border-top-color: #00353f;
  border-radius: 50%;
  animation: easygo-spin 0.7s linear infinite;
}

@keyframes easygo-spin {
  to { transform: rotate(360deg); }
}

/* Floating WhatsApp FAB */
.easygo-whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.easygo-whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.easygo-whatsapp-fab:active {
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .easygo-whatsapp-fab {
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
  }
}

/* Hero Startseite (front-page) */
.easygo-hero-card {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(252, 196, 44, 0.12) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(0, 77, 91, 0.35) 0%, transparent 50%),
    linear-gradient(155deg, #00353f 0%, #024a57 48%, #002830 100%);
}
