/* ============================================================
   Dr. Bernd Müller, IT — stylesheet
   IT-Architektur & IAM Consulting
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --c-bg:         #F8FAFC;
  --c-dark:       #0F172A;
  --c-dark-2:     #1E293B;
  --c-dark-3:     #334155;
  --c-primary:    #1E40AF;
  --c-primary-h:  #1D4ED8;
  --c-accent:     #38BDF8;
  --c-accent-d:   #0EA5E9;
  --c-white:      #FFFFFF;
  --c-text:       #1E293B;
  --c-text-2:     #475569;
  --c-muted:      #94A3B8;
  --c-border:     #E2E8F0;
  --c-border-d:   #CBD5E1;
  --c-card:       #FFFFFF;
  --c-success:    #16A34A;
  --c-error:      #DC2626;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-sm:   4px;
  --r:      8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-full: 9999px;

  --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 rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);

  --t-fast: 0.15s ease;
  --t:      0.2s ease;
  --t-slow: 0.3s ease;

  --max-w:  1200px;
  --nav-h:  70px;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
ul, ol   { list-style: none; }
button   { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }
a        { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem);   letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
h4 { font-size: 1rem; }

p { color: var(--c-text-2); line-height: 1.75; }
strong { color: var(--c-text); font-weight: 600; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section       { padding: 6rem 0; }
.section--sm   { padding: 4rem 0; }
.section--white { background-color: var(--c-white); }
.section--bg    { background-color: var(--c-bg); }
.section--dark  { background-color: var(--c-dark); }
.section--dark-2 { background-color: var(--c-dark-2); }

/* Section Header */
.section-header {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-header h2    { margin-bottom: 1rem; }
.section-header p     { font-size: 1.05rem; line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-d);
  background: rgba(14,165,233,0.1);
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.section--dark .section-label {
  color: var(--c-accent);
  background: rgba(56,189,248,0.12);
}
.section--dark .section-header h2,
.section--dark h2             { color: var(--c-white); }
.section--dark .section-header p,
.section--dark p              { color: var(--c-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background-color: var(--c-primary);
  color: var(--c-white);
}
.btn--primary:hover {
  background-color: var(--c-primary-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30,64,175,0.35);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,0.08);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border-d);
}
.btn--ghost-dark:hover {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--full { width: 100%; justify-content: center; }

/* --- Navigation --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--t);
}
.header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.35); }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.nav__logo-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-white);
  letter-spacing: -0.01em;
}
.nav__logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  padding: 0.5rem 0.875rem;
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
}
.nav__link:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.07);
}
.nav__link--cta {
  color: var(--c-white);
  background: var(--c-primary);
  padding: 0.5rem 1.25rem;
  margin-left: 0.5rem;
}
.nav__link--cta:hover { background: var(--c-primary-h); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav__toggle:hover { background: rgba(255,255,255,0.08); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--t);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--c-dark);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(14,165,233,0.18), transparent),
    radial-gradient(ellipse 55% 40% at 90% 85%, rgba(30,64,175,0.22), transparent);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero__container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 5rem 1.5rem 6rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid rgba(56,189,248,0.28);
  background: rgba(56,189,248,0.07);
  padding: 0.375rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 1.5rem;
}
.hero__title-accent { color: var(--c-accent); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3.5rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.hero__stat-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30,64,175,0.4);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: rgba(30,64,175,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--c-primary);
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.25rem; }
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-full);
  background: rgba(30,64,175,0.06);
  color: var(--c-primary);
  border: 1px solid rgba(30,64,175,0.14);
}

/* --- Expertise --- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.expertise-category h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.875rem;
}
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.expertise-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  transition: all var(--t-fast);
  cursor: default;
}
.expertise-tag:hover {
  background: rgba(56,189,248,0.14);
  border-color: rgba(56,189,248,0.35);
  color: var(--c-accent);
}
.expertise-tag--hl {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.3);
  color: var(--c-accent);
}

/* --- Philosophy --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.philosophy-quote {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  padding-left: 1.5rem;
  border-left: 4px solid var(--c-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.philosophy-content p { margin-bottom: 1rem; font-size: 0.975rem; }

.principles { display: flex; flex-direction: column; gap: 1.5rem; }
.principle  { display: flex; gap: 1rem; align-items: flex-start; }
.principle__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: rgba(30,64,175,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.principle__body h4    { font-size: 0.95rem; margin-bottom: 0.25rem; }
.principle__body p     { font-size: 0.85rem; line-height: 1.6; }

/* --- About --- */
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: var(--r-full);
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-name {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.about-role {
  font-size: 0.95rem;
  color: var(--c-accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.about-bio {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.about-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
}
.about-highlight svg { color: var(--c-accent); flex-shrink: 0; }

/* --- Contact --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-details--centered {
  max-width: 480px;
  margin: 0 auto;
}
.contact-item      { display: flex; align-items: center; gap: 0.875rem; }
.contact-item__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: rgba(30,64,175,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.contact-item__label { font-size: 0.72rem; color: var(--c-muted); display: block; margin-bottom: 0.1rem; }
.contact-item__value { font-size: 0.9rem; font-weight: 500; color: var(--c-text); }
.contact-item__value a { color: var(--c-primary); transition: color var(--t-fast); }
.contact-item__value a:hover { color: var(--c-primary-h); text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--c-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__brand      { font-weight: 700; color: var(--c-white); font-size: 0.9rem; }
.footer__brand span { font-weight: 400; color: var(--c-muted); font-size: 0.8rem; margin-left: 0.5rem; }
.footer__links      { display: flex; gap: 1.5rem; }
.footer__link       { font-size: 0.82rem; color: var(--c-muted); transition: color var(--t-fast); }
.footer__link:hover { color: var(--c-white); }
.footer__copy       { font-size: 0.78rem; color: var(--c-muted); }

/* --- Page Hero (impressum, etc.) --- */
.page-hero {
  background: var(--c-dark);
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
}
.page-hero h1 { color: var(--c-white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.55); font-size: 1rem; }

/* Legal Content */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-section  { margin-bottom: 3rem; }
.legal-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--c-border);
}
.legal-section h3  { font-size: 0.975rem; margin: 1.25rem 0 0.5rem; }
.legal-section p   { margin-bottom: 0.875rem; font-size: 0.9rem; }
.legal-section a   { color: var(--c-primary); }
.legal-section a:hover { text-decoration: underline; }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(15,23,42,0.98);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    gap: 0.125rem;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 0.7rem 1rem; }
  .nav__link--cta { margin-left: 0; text-align: center; }

  .hero__container { padding: 3.5rem 1.5rem 5rem; }
  .services-grid   { grid-template-columns: 1fr; }
  .expertise-grid  { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .hero__title { font-size: 2.3rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { gap: 1.75rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem 1.25rem; }
}
