/*
Theme Name: KIWI Theme
Theme URI: https://txt.kiwi
Author: Der KIWI GmbH
Author URI: https://txt.kiwi
Description: Custom-Theme für txt.kiwi – Inhalte werden über WordPress-Seiten gepflegt.
Version: 2.0
License: Proprietary
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ── CSS Variables ── */
:root {
  --dark: #4b4f54;
  --accent: #4ecac2;
  --accent-green: #D2FF9F;
  --accent-blue: #5989e8;
  --white: #ffffff;
  --light-bg: #fcfcfc;
  --light-gray: #f0f0f0;
  --text: #333333;
  --text-light: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-blue); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  max-width: 1140px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links .current-menu-item a::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(78,202,194,0.4);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center bottom;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(75,79,84,0.82);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 24px;
  animation: fadeUp 1s ease-out;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--white);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 24px;
}
.hero h1 strong { font-weight: 700; }
.hero-divider {
  width: 50px; height: 3px;
  background: var(--white);
  margin: 0 auto 32px;
}

/* ── Sections ── */
.section { padding: 100px 0; }
.section--gray { background: var(--light-bg); }
.section--dark { background: var(--dark); color: var(--white); }

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.3;
}
.section-heading strong { font-weight: 700; }
.section-divider {
  width: 50px; height: 3px;
  background: var(--dark);
  margin: 24px auto 60px;
}
.section-divider--white { background: var(--white); }

/* ── Keywords ── */
.keywords {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.keyword {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  letter-spacing: 4px;
  padding: 2px 8px;
  box-shadow: inset 0 -0.6em 0 var(--accent-green);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.feature-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.feature-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.testimonial-slide.active { opacity: 1; }
.testimonial-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 24px;
}
.testimonial-author { font-weight: 600; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-light); }

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}
.team-card { text-align: center; }
.team-card img {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.team-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  margin-bottom: 4px;
}
.team-card .role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.team-card .team-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}
.contact-info {
  background: var(--light-bg);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-form-wrap {
  padding: 60px 48px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 36px;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(78,202,194,0.4);
}

/* ── Legal / WP Content ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal-content h1,
.wp-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  margin-bottom: 32px;
}
.legal-content h2,
.wp-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-content h3,
.wp-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-content p,
.wp-content p {
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.8;
}
.legal-content ul,
.wp-content ul {
  margin: 12px 0 12px 24px;
  color: var(--text-light);
  line-height: 1.8;
}
.wp-content blockquote {
  border-left: 3px solid var(--accent-green);
  padding: 16px 24px;
  margin: 20px 0;
  font-style: italic;
  background: rgba(210,255,159,0.08);
  border-radius: 0 8px 8px 0;
}

/* ── Page Header Banner ── */
.page-banner {
  position: relative;
  padding: 80px 0;
  background: var(--dark);
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(75,79,84,0.82);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  font-weight: 400;
}
.page-banner .hero-divider {
  margin-top: 24px;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  text-align: center;
  font-size: 14px;
}
.footer a { color: var(--accent); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-links a:hover { color: var(--white); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .hamburger { display: flex; }
  .features-grid,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .keywords { gap: 20px; }
  .keyword { font-size: 20px; letter-spacing: 3px; }
}
