/*
Theme Name: KFZ Abmeldung
Theme URI: https://example.com
Author: KFZ Service
Author URI: https://example.com
Description: Modernes Theme für digitale Fahrzeugabmeldung
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kfz-abmeldung
Domain Path: /languages
*/

:root {
  --primary: #0f6a6a;
  --primary-dark: #0d5454;
  --primary-light: #e7f4f4;
  --accent: #f59f0b;
  --accent-dark: #c97f08;
  --text-dark: #111827;
  --text-gray: #4b5563;
  --text-light: #9ca3af;
  --bg-light: #f8fafc;
  --border: #d1d5db;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.12);

  /* Legacy aliases used by css-forms.css */
  --primary-color: var(--primary);
  --secondary-color: var(--accent);
  --light-color: var(--bg-light);
  --text-color: var(--text-dark);
  --gray-color: var(--text-gray);
  --border-color: var(--border);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #ffffff;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo,
.logo a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  padding: 3.5rem 1.25rem 2.5rem;
}

.hero-reference {
  background: linear-gradient(180deg, #f3f8f8 0%, #ffffff 68%);
  border-bottom: 1px solid #eef2f7;
}

.hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #b7dede;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  max-width: 780px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.hero-cityline {
  margin-top: 1.25rem;
  color: #374151;
  font-size: 0.94rem;
}

.authority-note {
  max-width: 820px;
  margin: 1rem auto 1.1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: #fffaf0;
  border-radius: 12px;
  color: #374151;
  text-align: left;
}

.authority-note strong {
  color: #111827;
}

.search-box {
  margin: 1.4rem auto 0;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid #d9e1e7;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  text-align: left;
  padding: 1.5rem;
}

.search-box h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.search-intro {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 106, 106, 0.16);
}

.plz-suggestions {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
}

.plz-suggestions.show {
  display: block;
}

.plz-suggestion-item {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.plz-suggestion-meta {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #4b5563;
}

.plz-suggestion-item:hover {
  background: var(--primary-light);
}

.btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(15, 106, 106, 0.22);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 106, 106, 0.28);
}

.btn-secondary {
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section {
  padding: 3.25rem 1.25rem;
}

.section-compact {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-light {
  background: var(--bg-light);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 860px;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title.text-left {
  text-align: left;
}

.section-title h2 {
  margin-bottom: 0;
}

.info-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.process-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.95rem;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.process-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.process-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bullet-grid h3 {
  font-size: 1.03rem;
}

.bullet-grid ul {
  margin-left: 1rem;
  color: var(--text-gray);
}

.bullet-grid li {
  margin-bottom: 0.4rem;
}

.city-cloud {
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
  line-height: 1.85;
  color: #374151;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.faq-item h3 {
  color: #1f2937;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.faq-item p {
  margin-top: 0.7rem;
  margin-bottom: 0;
  display: none;
}

.faq-item.open p {
  display: block;
}

.cta-form {
  max-width: 520px;
  margin: 0.8rem auto 0;
}

footer {
  margin-top: 2.5rem;
  background: #111827;
  color: #ffffff;
  padding: 2.2rem 1.25rem 1.2rem;
}

footer h3 {
  color: #ffffff;
  margin-bottom: 0.9rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.footer-content--simple {
  grid-template-columns: 1.4fr 1fr;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #d1d5db;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.post-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.2rem;
  border-radius: 10px;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: #111827;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.35);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  color: #e5e7eb;
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner__actions .btn,
.cookie-banner__actions .btn-secondary {
  width: auto;
  min-width: 120px;
  padding: 0.7rem 1rem;
  box-shadow: none;
}

.cookie-banner__actions .btn-secondary {
  border: 1px solid #4b5563;
  background: transparent;
  color: #f9fafb;
}

@media (max-width: 900px) {
  nav ul {
    gap: 0.9rem;
  }

  nav a {
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav {
    width: 100%;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    word-break: break-word;
  }

  h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-box {
    padding: 1rem;
    border-radius: 10px;
  }

  .search-box h3 {
    font-size: 1.05rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-inner,
  .section-inner.narrow {
    padding: 0;
  }

  .process-list,
  .bullet-grid {
    grid-template-columns: 1fr;
  }

  .authority-note {
    font-size: 0.9rem;
    padding: 0.8rem 0.9rem;
  }

  .info-panel {
    padding: 1rem;
  }

  .city-cloud {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .faq-container {
    padding: 0;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .cookie-banner {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__actions .btn,
  .cookie-banner__actions .btn-secondary {
    width: 100%;
  }
}
