/*
Theme Name: Kathrin Otto Rechtsanwältin
Theme URI:
Author: Claude
Description: Professionelles Theme für Kathrin Otto, Fachanwältin für Miet- und WEG-Recht
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kathrin-otto
Tags: law-firm, professional, responsive
*/

/* ============================================================
   CSS-VARIABLEN
   ============================================================ */
:root {
  --color-primary:    #1a2744;   /* Marine-Dunkelblau */
  --color-accent:     #c09a5b;   /* Warmgold */
  --color-bg:         #f9f8f5;   /* Cremeweiß */
  --color-bg-alt:     #edecea;   /* Hellgrau */
  --color-text:       #2c2c2c;
  --color-text-light: #666;
  --color-border:     #d8d4cc;
  --color-white:      #ffffff;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', 'Segoe UI', Arial, sans-serif;

  --radius:      4px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.12);

  --container:   1100px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   RESET & BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* Listen im redaktionellen Content: Bullets aligned mit Fließtext (Hanging Indent) */
.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}
.entry-content li {
  margin-bottom: .35rem;
}
.entry-content li:last-child {
  margin-bottom: 0;
}
.entry-content li > ul,
.entry-content li > ol {
  margin-top: .35rem;
  margin-bottom: .5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 680px;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.25rem 0 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: #253668;
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--accent:hover {
  background: #a8824a;
  color: var(--color-white);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* Logo */
.site-branding a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-branding .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-branding .tagline {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Hauptnavigation */
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: .25rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width .25s;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  width: 100%;
}

.main-nav a:hover { color: var(--color-primary); }

/* Kontakt-Button in Nav */
.nav-cta { margin-left: 1rem; }

/* Burger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3f6e 100%);
  color: var(--color-white);
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 60L60 0M-10 10L10-10M50 70L70 50" stroke="rgba(255,255,255,.04)" stroke-width="1"/></svg>');
}

.hero__inner {
  position: relative;
  max-width: 720px;
}

.hero__subtitle {
  color: var(--color-accent);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   KARTE: LEISTUNG / FEATURE
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 39, 68, .08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

.card h3 { margin-bottom: .75rem; }

.card a.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.card a.read-more:hover { text-decoration: underline; }

/* ============================================================
   ÜBER MICH – PORTRAIT-BLOCK
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--gap);
  align-items: center;
}

.about-split__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about-split__image .placeholder-img {
  aspect-ratio: 3/4;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: .875rem;
}

/* Qualifikationen-Liste */
.quals {
  list-style: none;
  margin: 1.5rem 0;
}

.quals li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}

.quals li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
  margin-top: 2px;
}

/* ============================================================
   NEWS / BLOG
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s;
}

.news-card:hover { box-shadow: var(--shadow-md); }

.news-card__img {
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 1.5rem;
}

.news-card__meta {
  font-size: .8rem;
  color: var(--color-text-light);
  margin-bottom: .5rem;
}

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
}

.news-card p {
  font-size: .9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--gap);
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-info p {
  font-size: .95rem;
  color: var(--color-text-light);
}

.contact-detail {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  font-size: .9rem;
}

.contact-detail strong { color: var(--color-primary); }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,39,68,.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* WordPress-Standard-Kontaktformular Klassen (Contact Form 7) */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
  width: 100%;
  padding: .65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
}

.wpcf7-form .wpcf7-submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.wpcf7-form .wpcf7-submit:hover { background: #253668; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: var(--gap);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: .5rem;
}

.footer-brand p {
  font-size: .875rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav ul { list-style: none; }

.footer-nav li { margin-bottom: .5rem; }

.footer-nav a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color .2s;
}

.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--color-accent); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-center .divider { margin-left: auto; margin-right: auto; }
.text-center .lead { margin: 0 auto; }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* WordPress Align-Klassen */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-text-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-split,
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-split__image { max-width: 320px; }
}

@media (max-width: 768px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav.is-open a {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .hero__actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
