/* ================================================
   Konrath Bau GmbH — Modern Redesign
   ================================================ */

/* Google Fonts loaded via JS after consent — see assets/js/consent.js */

:root {
  --red: #e42426;
  --blue: #1356aa;
  --dark: #111827;
  --mid: #374151;
  --gray: #6b7280;
  --light-gray: #9ca3af;
  --light: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }
a:hover { color: #c41e20; text-decoration: none; }

/* ---- Navbar ---- */
.navbar {
  background: var(--white) !important;
  padding: 0 !important;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.navbar-brand {
  padding: 0 !important;
  align-items: center !important;
  gap: 0 !important;
}

.navbar-brand img {
  height: 52px !important;
  width: auto;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 14px;
  line-height: 1.15;
}

.navbar-brand .brand-red {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--red) !important;
  letter-spacing: 0.06em;
  margin: 0 !important;
}

.navbar-brand .brand-blue {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
  letter-spacing: 0.04em;
  margin: 0 !important;
}

.nav-item a.nav-link {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--mid) !important;
  padding: 0.6rem 1rem !important;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.nav-item a.nav-link:hover {
  color: var(--red) !important;
  background: #fef2f2;
}

/* ---- Hero ---- */
.site-hero {
  background: linear-gradient(140deg, #0f172a 0%, #1e3a5f 55%, #162d4a 100%);
  color: white;
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.site-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%);
}

.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.site-hero > .container { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.site-hero h1 em {
  font-style: normal;
  color: #f87171;
}

.site-hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat .num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
}

.hero-stat .num span {
  color: #f87171;
}

.hero-stat .lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  display: block;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(140deg, #0f172a 0%, #1e3a5f 100%);
  color: white;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%);
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

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

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.accent-bar {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 2px;
  margin: 0.75rem 0 1.75rem;
}

/* ---- Profile ---- */
.profile-wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.profile-info .name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.profile-info .role {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* ---- Cards ---- */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.info-card .icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.info-card .icon-box i {
  font-size: 1.3rem;
  color: var(--red);
  background: none !important;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.info-card p {
  color: var(--gray);
  font-size: 0.925rem;
  line-height: 1.75;
  margin: 0;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  color: var(--mid);
  font-size: 0.925rem;
  border-bottom: 1px solid #f3f4f6;
}

.info-card ul li:last-child { border-bottom: none; }

.info-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---- Completed Projects List ---- */
.done-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.done-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  font-size: 0.925rem;
  line-height: 1.5;
}

.done-list li:last-child { border-bottom: none; }

.done-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.done-note {
  color: var(--gray);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.75rem;
}

/* ---- Project Cards (projekte.html) ---- */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
}

.project-card-head {
  padding: 1.25rem 1.5rem;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.project-card-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.project-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.project-imgs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-imgs img {
  width: 200px;
  height: 145px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.project-text {
  flex: 1;
  min-width: 200px;
}

.project-text p {
  color: var(--gray);
  font-size: 0.925rem;
  line-height: 1.75;
  margin: 0;
}

/* ---- Jobs ---- */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.2s ease;
}

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

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.job-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.job-card > p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.job-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.job-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  color: var(--mid);
  font-size: 0.9rem;
}

.job-section ul li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.job-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.salary-note {
  background: var(--light);
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.apply-btn:hover {
  background: #c41e20;
  color: var(--white) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ---- Legal (Impressum) ---- */
.legal-section {
  padding: 4rem 0;
}

.legal-block {
  margin-bottom: 3rem;
}

.legal-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.legal-block p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 1rem;
}

.legal-block p strong {
  color: var(--mid);
}

.legal-block a {
  color: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.contact-item {
  font-size: 0.9rem;
  color: var(--mid);
}

.contact-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  display: block;
  margin-bottom: 0.1rem;
}

/* ---- Footer ---- */
.footer-clean {
  background: var(--dark) !important;
}

.footer-clean footer {
  padding: 3rem 0 2rem;
}

.footer-clean h3 {
  color: var(--white) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 1rem !important;
}

.footer-clean ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-clean ul li {
  margin-bottom: 0.4rem;
}

.footer-clean ul a {
  color: var(--light-gray) !important;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: color 0.15s;
}

.footer-clean ul a:hover {
  color: var(--white) !important;
}

.footer-clean small {
  color: var(--light-gray);
  font-size: 0.875rem;
  line-height: 1.85;
  display: block;
}

.footer-clean small a {
  color: var(--light-gray) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.footer-clean small a:hover {
  color: var(--white) !important;
}

.footer-bottom-bar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 0.8rem;
  color: #4b5563;
}

.footer-bottom-bar span {
  color: var(--red);
}

/* ---- Consent Banner ---- */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #e5e7eb;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
  font-size: 0.875rem;
  line-height: 1.6;
}

.consent-text {
  flex: 1;
  min-width: 200px;
  color: #d1d5db;
}

.consent-text strong {
  color: #f9fafb;
  display: block;
  margin-bottom: 0.2rem;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.consent-btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.consent-btn-primary:hover {
  background: #c41e20;
}

.consent-btn-secondary {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #374151;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.consent-btn-secondary:hover {
  border-color: #6b7280;
  color: #e5e7eb;
}

.consent-reset-link {
  color: #6b7280 !important;
  font-size: 0.8rem;
  text-decoration: none !important;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.consent-reset-link:hover {
  color: #9ca3af !important;
  text-decoration: underline !important;
}

/* ---- Map ---- */
.map-placeholder {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.map-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 340px;
}

.map-placeholder-inner i {
  font-size: 2.25rem;
  color: var(--gray);
}

.map-placeholder-inner p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.map-placeholder-inner small {
  color: var(--gray);
  font-size: 0.8rem;
  line-height: 1.5;
}

.map-consent-btn {
  margin-top: 0.75rem;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.map-consent-btn:hover {
  background: #0f4899;
}

.map-iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius);
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .site-hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .project-imgs img { width: 100%; height: 180px; }
  .profile-wrap { flex-direction: column; text-align: center; }
  .job-grid { grid-template-columns: 1fr; }
}
