<artifact type="code" language="css" title="css/style.css – Vollständige Datei">
/* ============================================================
Jungbluth Medizintechnik – style.css
Responsiv | Mobile-First | Alle Fixes enthalten
============================================================ */

/* --- Reset & Basis --- */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
font-family: 'Open Sans', Arial, sans-serif;
font-size: 16px;
color: #333;
background: #fff;
line-height: 1.6;
}

a {
color: #1a3a5c;
text-decoration: none;
}

a:hover {
text-decoration: underline;
color: #2a6496;
}

img {
max-width: 100%;
height: auto;
display: block;
}

ul {
list-style: none;
}

/* ============================================================
HEADER & NAVIGATION
============================================================ */

header {
background: #1a3a5c;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
height: 70px;
}

.logo {
display: flex;
align-items: center;
gap: 12px;
}

.logo img {
height: 50px;
width: auto;
}

.logo-text {
color: #fff;
font-size: 1.1rem;
font-weight: 700;
line-height: 1.2;
}

.logo-text span {
display: block;
font-size: 0.75rem;
font-weight: 400;
opacity: 0.85;
}

nav ul {
display: flex;
gap: 8px;
}

nav ul li a {
color: #fff;
padding: 8px 14px;
border-radius: 4px;
font-size: 0.9rem;
font-weight: 600;
transition: background 0.2s;
white-space: nowrap;
}

nav ul li a:hover {
background: rgba(255,255,255,0.15);
text-decoration: none;
}

/* Hamburger */
.hamburger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
padding: 8px;
background: none;
border: none;
}

.hamburger span {
display: block;
width: 26px;
height: 3px;
background: #fff;
border-radius: 2px;
transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
opacity: 0;
}
.hamburger.open span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
.hamburger {
display: flex;
}

          
nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a3a5c;
    padding: 10px 0 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

nav.open {
    display: block;
}

nav ul {
    flex-direction: column;
    gap: 0;
}

nav ul li a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

        

}

/* ============================================================
HERO SLIDER
============================================================ */

.slider {
position: relative;
width: 100%;
overflow: hidden;
background: #0d2035;
max-height: 520px;
}

.slide {
display: none;
width: 100%;
}

.slide.active {
display: block;
}

.slide img {
width: 100%;
height: 520px;
object-fit: cover;
object-position: center;
}

.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(26,58,92,0.7);
color: #fff;
border: none;
font-size: 1.8rem;
padding: 10px 18px;
cursor: pointer;
border-radius: 4px;
transition: background 0.2s;
z-index: 10;
}

.slider-btn:hover {
background: rgba(26,58,92,0.95);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
position: absolute;
bottom: 14px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
z-index: 10;
}

.dot {
width: 11px;
height: 11px;
border-radius: 50%;
background: rgba(255,255,255,0.5);
cursor: pointer;
border: none;
transition: background 0.2s;
}

.dot.active {
background: #fff;
}

@media (max-width: 768px) {
.slider { max-height: 260px; }
.slide img { height: 260px; }
.slider-btn { font-size: 1.2rem; padding: 7px 13px; }
}

/* ============================================================
MAIN CONTENT WRAPPER
============================================================ */

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* ============================================================
WILLKOMMEN SECTION
============================================================ */

.welcome-section {
padding: 50px 0 40px;
background: #f9f9f9;
}

.welcome-section h1 {
font-size: 1.9rem;
color: #1a3a5c;
margin-bottom: 18px;
border-left: 5px solid #1a3a5c;
padding-left: 16px;
}

.welcome-section p {
font-size: 1rem;
line-height: 1.75;
color: #444;
margin-bottom: 14px;
max-width: 860px;
}

/* Öffnungszeiten */
.opening-hours {
margin-top: 28px;
background: #fff;
border: 1px solid #dde4ec;
border-radius: 6px;
padding: 22px 26px;
max-width: 480px;
box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.opening-hours h3 {
color: #1a3a5c;
font-size: 1.05rem;
margin-bottom: 14px;
display: flex;
align-items: center;
gap: 8px;
}

.opening-hours table {
width: 100%;
border-collapse: collapse;
font-size: 0.92rem;
}

.opening-hours table td {
padding: 5px 10px 5px 0;
color: #444;
vertical-align: top;
}

.opening-hours table td:first-child {
font-weight: 600;
color: #1a3a5c;
white-space: nowrap;
width: 140px;
}

@media (max-width: 600px) {
.welcome-section h1 { font-size: 1.4rem; }
.opening-hours { padding: 16px; max-width: 100%; }
.opening-hours table td:first-child { width: 110px; }
}

/* ============================================================
SERVICE KACHELN
============================================================ */

.services-section {
padding: 50px 0;
background: #fff;
}

.services-section h2 {
font-size: 1.6rem;
color: #1a3a5c;
margin-bottom: 30px;
text-align: center;
border-bottom: 3px solid #1a3a5c;
padding-bottom: 12px;
}

.services-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}

.service-card {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 12px rgba(0,0,0,0.1);
transition: transform 0.25s, box-shadow 0.25s;
background: #fff;
}

.service-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.service-card img {
width: 100%;
height: 200px;
object-fit: cover;
}

.service-card-body {
padding: 18px;
}

.service-card-body h3 {
font-size: 1.05rem;
color: #1a3a5c;
margin-bottom: 8px;
}

.service-card-body p {
font-size: 0.9rem;
color: #555;
line-height: 1.6;
}

@media (max-width: 600px) {
.services-grid {
grid-template-columns: 1fr;
}
.service-card img { height: 180px; }
}

/* ============================================================
ACCORDION
============================================================ */

.accordion-section {
padding: 50px 0;
background: #f4f7fb;
}

.accordion-section h2 {
font-size: 1.6rem;
color: #1a3a5c;
margin-bottom: 28px;
border-bottom: 3px solid #1a3a5c;
padding-bottom: 12px;
}

.accordion {
border: 1px solid #dde4ec;
border-radius: 6px;
overflow: hidden;
background: #fff;
margin-bottom: 30px;
}

.accordion-item {
width: 100%;
box-sizing: border-box;
border-bottom: 1px solid #dde4ec;
overflow: hidden;
}

.accordion-item:last-child {
border-bottom: none;
}

.accordion-header {
width: 100%;
background: #fff;
border: none;
text-align: left;
padding: 15px 44px 15px 18px;
font-size: 0.97rem;
font-weight: 600;
color: #1a3a5c;
cursor: pointer;
position: relative;
transition: background 0.2s;
box-sizing: border-box;
word-break: break-word;
hyphens: auto;
-webkit-hyphens: auto;
line-height: 1.4;
}

.accordion-header:hover {
background: #eef3f9;
}

.accordion-header::after {
content: '+';
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
font-size: 1.4rem;
color: #1a3a5c;
transition: transform 0.3s;
line-height: 1;
}

.accordion-item.active .accordion-header::after {
content: '−';
}

/* --- Panel: Dynamische Höhe per JS --- */
.accordion-panel {
overflow: hidden;
height: 0;
transition: height 0.35s ease, padding 0.35s ease;
padding: 0 18px;
box-sizing: border-box;
width: 100%;
}

.accordion-panel.active {
padding: 14px 18px 18px 18px;
/* height wird per JS auf scrollHeight gesetzt */
}

.accordion-panel p,
.accordion-panel li,
.accordion-panel span,
.accordion-panel a {
word-break: break-word;
overflow-wrap: break-word;
hyphens: auto;
-webkit-hyphens: auto;
-ms-hyphens: auto;
line-height: 1.75;
font-size: 0.95rem;
max-width: 100%;
display: block;
color: #444;
}

.accordion-panel a {
color: #1a3a5c;
}

.accordion-panel a:hover {
text-decoration: underline;
}

/* Mobile Accordion */
@media (max-width: 768px) {
.accordion-panel {
padding: 0 12px;
}
.accordion-panel.active {
padding: 12px 12px 16px 12px;
}
.accordion-panel p,
.accordion-panel li,
.accordion-panel span,
.accordion-panel a {
font-size: 0.9rem;
line-height: 1.7;
}
.accordion-header {
font-size: 0.9rem;
padding: 13px 40px 13px 14px;
}
}

@media (max-width: 480px) {
.accordion-panel.active {
padding: 10px 10px 14px 10px;
}
.accordion-panel p,
.accordion-panel li,
.accordion-panel span,
.accordion-panel a {
font-size: 0.85rem;
line-height: 1.65;
}
.accordion-header {
font-size: 0.85rem;
padding: 11px 36px 11px 12px;
}
}

/* ============================================================
KONTAKT SECTION
============================================================ */

.contact-section {
padding: 50px 0;
background: #1a3a5c;
color: #fff;
}

.contact-section h2 {
font-size: 1.6rem;
margin-bottom: 28px;
border-bottom: 3px solid rgba(255,255,255,0.3);
padding-bottom: 12px;
}

.contact-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

.contact-block h3 {
font-size: 1.05rem;
margin-bottom: 12px;
color: #a8c8e8;
}

.contact-block p,
.contact-block a {
font-size: 0.95rem;
color: rgba(255,255,255,0.88);
line-height: 1.8;
display: block;
}

.contact-block a:hover {
color: #fff;
text-decoration: underline;
}

@media (max-width: 600px) {
.contact-grid {
grid-template-columns: 1fr;
gap: 22px;
}
}

/* ============================================================
FOOTER
============================================================ */

footer {
background: #0d2035;
color: rgba(255,255,255,0.6);
text-align: center;
padding: 18px 20px;
font-size: 0.82rem;
}

footer a {
color: rgba(255,255,255,0.75);
}

footer a:hover {
color: #fff;
}
</artifact>