/*
Theme Name: Branchenverzeichnis DACH
Theme URI: https://example.com
Author: Ramiz Ramaj
Description: Modernes, helles Branchenverzeichnis-Theme für Deutschland, Österreich und die Schweiz. Mit Firmeneinträgen, Branchen, Ländern und Suche.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: branchenverzeichnis
*/

:root {
  --bv-bg: #f7f8fa;
  --bv-surface: #ffffff;
  --bv-text: #14213d;
  --bv-muted: #5c6b80;
  --bv-border: #e3e7ee;
  --bv-primary: #0f766e;
  --bv-primary-dark: #0b5a54;
  --bv-accent: #f59e0b;
  --bv-radius: 14px;
  --bv-shadow: 0 6px 24px rgba(20, 33, 61, 0.07);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bv-bg);
  color: var(--bv-text);
  line-height: 1.6;
}
a { color: var(--bv-primary); text-decoration: none; }
a:hover { color: var(--bv-primary-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.2; margin: 0 0 .5em; }

.bv-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.bv-header { background: var(--bv-surface); border-bottom: 1px solid var(--bv-border); }
.bv-header .bv-container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.bv-logo { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--bv-text); }
.bv-logo span { color: var(--bv-primary); }
.bv-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.bv-nav a { color: var(--bv-muted); font-weight: 600; }
.bv-nav a:hover { color: var(--bv-primary); }

/* Hero */
.bv-hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, #e8f5f3 0%, var(--bv-bg) 100%); }
.bv-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.bv-hero p { color: var(--bv-muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 32px; }

/* Search */
.bv-search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; background: var(--bv-surface); padding: 10px; border-radius: var(--bv-radius); box-shadow: var(--bv-shadow); max-width: 900px; margin: 0 auto; }
.bv-search input, .bv-search select { width: 100%; padding: 14px 16px; border: 1px solid var(--bv-border); border-radius: 10px; font: inherit; background: #fff; color: var(--bv-text); }
.bv-btn { display: inline-block; background: var(--bv-primary); color: #fff; border: 0; padding: 14px 26px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.bv-btn:hover { background: var(--bv-primary-dark); color: #fff; }

/* Sections */
.bv-section { padding: 56px 0; }
.bv-section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }

/* Categories */
.bv-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.bv-cat { background: var(--bv-surface); border: 1px solid var(--bv-border); border-radius: var(--bv-radius); padding: 20px; color: var(--bv-text); transition: .2s; }
.bv-cat:hover { border-color: var(--bv-primary); transform: translateY(-2px); box-shadow: var(--bv-shadow); color: var(--bv-text); }
.bv-cat strong { display: block; font-size: 1.05rem; }
.bv-cat small { color: var(--bv-muted); }

/* Countries */
.bv-countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bv-country { background: var(--bv-surface); border-radius: var(--bv-radius); padding: 28px; text-align: center; border: 1px solid var(--bv-border); color: var(--bv-text); font-weight: 700; font-size: 1.1rem; }
.bv-country .flag { font-size: 2.2rem; display: block; }

/* Listing cards */
.bv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.bv-card { background: var(--bv-surface); border: 1px solid var(--bv-border); border-radius: var(--bv-radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.bv-card:hover { box-shadow: var(--bv-shadow); }
.bv-card-img { aspect-ratio: 16/9; background: #e8f5f3; display: flex; align-items: center; justify-content: center; font-family: "Sora"; font-size: 2.5rem; color: var(--bv-primary); }
.bv-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bv-card-body { padding: 18px 20px 20px; }
.bv-card h3 { font-size: 1.15rem; }
.bv-card h3 a { color: var(--bv-text); }
.bv-meta { color: var(--bv-muted); font-size: .92rem; }
.bv-tag { display: inline-block; background: #e8f5f3; color: var(--bv-primary-dark); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin: 0 4px 8px 0; }

/* Single */
.bv-single { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 48px 0; }
.bv-box { background: var(--bv-surface); border: 1px solid var(--bv-border); border-radius: var(--bv-radius); padding: 28px; }
.bv-contact dt { font-weight: 700; font-size: .85rem; color: var(--bv-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.bv-contact dd { margin: 2px 0 0; }
.bv-map iframe { width: 100%; height: 260px; border: 0; border-radius: 10px; margin-top: 18px; }

/* Pagination */
.bv-pagination { margin-top: 32px; display: flex; gap: 6px; justify-content: center; }
.bv-pagination .page-numbers { padding: 8px 14px; background: var(--bv-surface); border: 1px solid var(--bv-border); border-radius: 8px; }
.bv-pagination .current { background: var(--bv-primary); color: #fff; border-color: var(--bv-primary); }

/* Footer */
.bv-footer { background: var(--bv-text); color: #c7d0dd; padding: 40px 0; margin-top: 40px; font-size: .95rem; }
.bv-footer a { color: #fff; }

@media (max-width: 800px) {
  .bv-search { grid-template-columns: 1fr; }
  .bv-single { grid-template-columns: 1fr; }
  .bv-countries { grid-template-columns: 1fr; }
  .bv-header .bv-container { height: auto; min-height: 72px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .bv-nav { width: 100%; }
  .bv-nav ul { flex-wrap: wrap; gap: 12px 18px; }
}

/* Formulare & Konto */
.bv-nav ul { align-items: center; }
.bv-btn-sm { padding: 8px 16px !important; color: #fff !important; }
.bv-form-box { max-width: 460px; margin: 20px auto; background: var(--bv-surface); border: 1px solid var(--bv-border); border-radius: var(--bv-radius); padding: 32px; box-shadow: var(--bv-shadow); }
.bv-form-wide { max-width: 760px; }
.bv-form label, #loginform label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.bv-form input[type=text], .bv-form input[type=email], .bv-form input[type=password], .bv-form input[type=url], .bv-form input[type=file], .bv-form select, .bv-form textarea,
#loginform input[type=text], #loginform input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--bv-border); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.bv-form input:focus, .bv-form select:focus, .bv-form textarea:focus { outline: 2px solid var(--bv-primary); border-color: transparent; }
.bv-form h3 { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--bv-border); font-size: 1.05rem; }
.bv-form small { font-weight: 400; color: var(--bv-muted); }
.bv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bv-check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
#loginform .button-primary { background: var(--bv-primary); color: #fff; border: 0; padding: 12px 26px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.bv-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: #e8f5f3; color: var(--bv-primary-dark); font-weight: 600; }
.bv-notice-error { background: #fdecec; color: #b42318; }
.bv-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.bv-thumbs span { position: relative; }
.bv-thumbs img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.bv-thumbs a { position: absolute; top: -6px; right: -6px; background: #b42318; color: #fff; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 12px; }
.bv-konto { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.bv-konto-head { display: flex; align-items: center; gap: 16px; }
.bv-konto-head img { border-radius: 50%; }
.bv-konto-head h2 { margin: 0; }
.bv-konto-head .bv-btn { margin-left: auto; }
.bv-table { width: 100%; border-collapse: collapse; }
.bv-table th, .bv-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--bv-border); }
.bv-actions a { margin-right: 12px; font-weight: 600; }
.bv-danger { color: #b42318 !important; }
.bv-status { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #fef3c7; color: #92400e; }
.bv-status-publish { background: #e8f5f3; color: var(--bv-primary-dark); }
.bv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 24px; }
.bv-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 800px) { .bv-form-row { grid-template-columns: 1fr; } .bv-konto-head { flex-wrap: wrap; } }

/* Neu in 1.2.0: Kontakt-Icons, Leistungen, Stellenanzeigen, Kontaktformular */
.bv-contact-row { display: flex; gap: 10px; margin-top: 14px; align-items: flex-start; }
.bv-contact-row .bv-ico { flex: 0 0 34px; width: 34px; height: 34px; background: #e8f5f3; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.bv-ico-label { display: block; font-size: .78rem; color: var(--bv-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.bv-ico-val { display: block; font-weight: 600; }
.bv-leistungen { margin: 12px 0 20px; padding: 0; list-style: none; }
.bv-leistungen li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--bv-border); position: relative; }
.bv-leistungen li:last-child { border-bottom: 0; }
.bv-leistungen li::before { content: "✓"; position: absolute; left: 2px; top: 9px; color: var(--bv-primary); font-weight: 700; }
.bv-job { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--bv-border); border-radius: 12px; margin-bottom: 10px; background: var(--bv-surface); }
.bv-job strong { display: block; }
.bv-job-meta { color: var(--bv-muted); font-size: .88rem; display: block; }
.bv-job-typ { background: #e8f5f3; color: var(--bv-primary-dark); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.bv-jobliste { display: grid; gap: 10px; }
.bv-kform { margin-top: 4px; }
.bv-kform .bv-notice { margin-top: 12px; }
@media (max-width: 800px) { .bv-job { flex-direction: column; align-items: flex-start; } }

.bv-konto, .bv-form-box, .bv-konto-head > div { min-width: 0; }
.bv-konto-head { flex-wrap: wrap; }
.bv-konto-head h2, .bv-konto-head .bv-meta { overflow-wrap: anywhere; }
.bv-actions { min-width: 170px; }
.bv-actions a { display: inline-block; }
@media (max-width: 600px) {
 .bv-form-box, .bv-box { padding: 20px; }
 .bv-konto .bv-box { overflow-x: auto; }
 .bv-header .bv-logo { overflow-wrap: anywhere; }
 .bv-konto-head .bv-btn { margin-left: 0; }
}
