/*
Theme Name: medtec one
Theme URI: https://medtec.one
Author: medtec one GmbH
Description: Modernes, helles Theme für medtec one – Software für Medizinprodukte. Zeigt Produkte, Team-Kultur und offene Stellen.
Version: 1.6
License: Proprietary
Text Domain: medtecone
*/

/* ══ LOCAL FONTS (DSGVO-konform, kein Google-Request) ══ */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

@font-face { font-family: 'Outfit'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/outfit-latin-800-normal.woff2') format('woff2'); }

/* ══ VARIABLES ══ */
:root {
  --bg: #fafbfd;
  --bg-alt: #f0f4f8;
  --bg-card: #ffffff;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --fg-dim: #94a3b8;
  --accent: #1a5fb4;
  --accent-bright: #2d7be5;
  --accent-light: #e8f0fe;
  --accent-glow: rgba(26, 95, 180, .08);
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --gradient-brand: linear-gradient(135deg, #0d3b7a, #1a5fb4, #2d7be5);
  --radius: 14px;
  --radius-lg: 20px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --max-w: 1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
}

.container { max-width: var(--max-w); margin: 0 auto; }

/* ══ NAV ══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(250, 251, 253, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .85rem; font-weight: 500; color: var(--fg-muted);
  text-decoration: none; transition: color .3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: .5rem 1.3rem; background: var(--accent); color: #fff !important;
  border-radius: 100px; font-size: .82rem; font-weight: 600; transition: all .3s;
}
.nav-cta:hover { background: var(--accent-bright); }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher ul { list-style: none; display: flex; gap: .5rem; }
.lang-switcher a {
  display: inline-block; padding: .25rem .5rem; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--fg-dim);
  border: 1px solid var(--border); border-radius: 6px; transition: all .3s;
}
.lang-switcher a:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; transition: .3s; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: 100px; font-size: .88rem;
  font-weight: 600; text-decoration: none; transition: all .3s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(26, 95, 180, .2);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26, 95, 180, .25); }
.btn-outline {
  background: transparent; color: var(--accent); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-light); }

/* ══ HERO ══ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 10rem var(--gutter) 6rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; top: -250px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(26, 95, 180, .07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero-logo { width: 72px; height: 72px; margin-bottom: 2rem; animation: floatIn .8s ease both; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem; background: var(--accent-light);
  color: var(--accent); font-size: .75rem; font-weight: 700;
  border-radius: 100px; margin-bottom: 1.75rem;
  letter-spacing: .05em; text-transform: uppercase;
  animation: floatIn .8s ease .1s both;
}
.hero h1 {
  font-family: 'Outfit', sans-serif; font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  max-width: 750px; margin-bottom: 1.25rem; animation: floatIn .8s ease .2s both;
}
.hero h1 .accent { color: var(--accent); }
.hero > p {
  font-size: clamp(.95rem, 1.6vw, 1.1rem); color: var(--fg-muted);
  max-width: 520px; margin-bottom: 2.5rem; animation: floatIn .8s ease .3s both;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; animation: floatIn .8s ease .4s both; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══ SECTIONS ══ */
.site-section { padding: 5.5rem var(--gutter); position: relative; }
.section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent); margin-bottom: .6rem;
}
.section-heading {
  font-family: 'Outfit', sans-serif; font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .75rem;
}
.section-sub { color: var(--fg-muted); max-width: 520px; font-size: .98rem; margin-bottom: 3rem; }

/* ══ VISION / ABOUT ══ */
.vision { background: var(--bg-alt); }
.vision-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: start; max-width: var(--max-w); margin: 0 auto;
}
.vision-text p { color: var(--fg-muted); margin-bottom: 1rem; font-size: .95rem; }
.vision-text p strong { color: var(--fg); }
.vision-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: all .3s;
}
.v-card:hover { border-color: var(--border-hover); box-shadow: 0 4px 20px rgba(0,0,0,.05); transform: translateY(-2px); }
.v-card .icon { font-size: 1.5rem; margin-bottom: .6rem; }
.v-card h3 { font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.v-card p { font-size: .82rem; color: var(--fg-muted); }

/* ══ PRODUCTS ══ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2.25rem;
  position: relative; overflow: hidden;
  transition: all .3s;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: center;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 8px 30px rgba(26,95,180,.08); transform: translateY(-3px); }
.product-card .tag {
  display: inline-block; padding: .2rem .7rem; background: var(--accent-light);
  color: var(--accent); font-size: .7rem; font-weight: 700; border-radius: 100px;
  margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase;
}
.product-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: .65rem;
}
.product-card p {
  font-size: .92rem; color: var(--fg-muted);
  line-height: 1.7;
}

/* Image variant of product card */
.product-card-image {
  padding: 0;
  border: none;
  background: transparent;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius-lg);
  transition: transform .8s ease;
}
.product-card-image:hover img { transform: scale(1.04); }
.product-card-image:hover { transform: none; box-shadow: none; }

/* ══ CAREERS ══ */
.careers { background: var(--bg-alt); }
.careers-narrow { max-width: 1160px; }

.careers-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.careers-side-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
}
.careers-side-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform .8s ease;
}
.careers-side-image:hover img { transform: scale(1.05); }

.careers-groups-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.careers-group {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all .3s;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.careers-group:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  transform: translateY(-2px);
}
.careers-group h4 {
  font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.perks { list-style: none; display: grid; gap: .65rem; }
.perks li {
  display: flex; align-items: start; gap: .75rem;
  font-size: .9rem; color: var(--fg-muted); line-height: 1.5;
}
.perks li .check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent); display: flex;
  align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; margin-top: .2rem;
}
.careers-cta { margin-top: 2rem; }

/* ══ CONTACT ══ */
.contact-wrapper { max-width: 600px; margin: 0 auto; }
.contact-info {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem;
  padding: 1.5rem; background: var(--bg-alt); border-radius: var(--radius);
}
.contact-info div { font-size: .88rem; color: var(--fg-muted); }
.contact-info div strong { display: block; color: var(--fg); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }

.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--fg-muted); text-transform: uppercase; }
.form-group input, .form-group textarea {
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .92rem; background: var(--bg-card);
  color: var(--fg); transition: border-color .3s, box-shadow .3s; outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--fg-dim); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 120px; }

/* ══ CONTACT FORM 7 STYLING ══ */
.contact-form-wrapper { margin-top: .5rem; }
.wpcf7 { max-width: 100%; }
.wpcf7-form { display: grid; gap: 1.1rem; }
.wpcf7-form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  color: var(--fg-muted); text-transform: uppercase;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .92rem; background: var(--bg-card);
  color: var(--fg); transition: border-color .3s, box-shadow .3s; outline: none; resize: vertical;
}
.wpcf7-form input::placeholder, .wpcf7-form textarea::placeholder { color: var(--fg-dim); }
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.wpcf7-form textarea { min-height: 120px; }
.wpcf7-form input[type="submit"] {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: 100px; font-size: .88rem;
  font-weight: 600; cursor: pointer; border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(26, 95, 180, .2);
  transition: all .3s; justify-self: start;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--accent-bright); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 180, .25);
}
.wpcf7-response-output {
  border: none !important; padding: 1rem !important;
  border-radius: 10px; font-size: .88rem; margin-top: 1rem !important;
}
.wpcf7-mail-sent-ok { background: #f0fdf4; color: #166534; }
.wpcf7-validation-errors { background: #fef2f2; color: #991b1b; }
.wpcf7-not-valid-tip { font-size: .78rem; color: #dc2626; margin-top: .25rem; }
.wpcf7-form .wpcf7-not-valid { border-color: #dc2626; }

/* ══ LEGAL PAGES (Datenschutz, Impressum) ══ */
.legal-content h1, .legal-content h2, .entry-content h1, .entry-content h2 {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--fg);
  margin: 2.5rem 0 .75rem; font-weight: 700;
}
.legal-content h3, .entry-content h3 {
  font-size: 1.05rem; color: var(--fg); margin: 1.5rem 0 .5rem; font-weight: 600;
}
.legal-content p, .entry-content p { margin-bottom: .75rem; }
.legal-content a, .entry-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover, .entry-content a:hover { text-decoration: underline; }
.legal-content strong, .entry-content strong { color: var(--fg); }

/* ══ FOOTER ══ */
.site-footer {
  padding: 2.5rem var(--gutter); border-top: 1px solid var(--border); background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-brand img { height: 24px; }
.site-footer p { font-size: .78rem; color: var(--fg-dim); line-height: 1.6; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: .8rem; color: var(--fg-muted); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--fg); }

/* ══ REVEAL ANIMATION ══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ WP DEFAULTS ══ */
.wp-block-post-content, .entry-content { max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--gutter); }
.page-template-default .entry-content h1, .page-template-default .entry-content h2 { font-family: 'Outfit', sans-serif; }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--border); gap: 1rem; }
  .vision-grid, .careers-groups-grid, .careers-body, .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .careers-side-image { aspect-ratio: 4/3; max-width: 500px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
