body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}.aspect--9\:16,.responsive.ratio-916{padding-bottom:177.7777%}.aspect--1\:1,.responsive.ratio-11{padding-bottom:100%}
/* ERFA Elektro Industrie Zentralschweiz – Theme 2026 */
:root {
  --red: #8a1c1c;
  --red-dark: #6b1414;
  --navy: #13263d;
  --blue: #2a5d9f;
  --blue-light: #e8f0fa;
  --text: #1d2733;
  --muted: #5b6b7d;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e1e6ec;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(19, 38, 61, .08);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.inside { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
#header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
#header .inside {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
#header .logo img { max-height: 46px; width: auto; }

/* Hauptnavigation */
#header .mod_navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
#header .mod_navigation a,
#header .mod_navigation strong {
  display: block; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--navy);
}
#header .mod_navigation a:hover { background: var(--blue-light); color: var(--blue); }
#header .mod_navigation .active,
#header .mod_navigation .trail { color: var(--red); background: #fbeeee; }
#header .mod_navigation ul ul { display: none; }

/* Burger (nur mobil sichtbar) */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
  background: var(--navy) center / cover no-repeat;
  color: #fff;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,38,61,.05) 30%, rgba(19,38,61,.85) 100%);
}
.hero .hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 48px 24px; }
.hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { margin: .4em 0 0; font-size: 1.1rem; opacity: .9; }

/* RockSolid Slider an Hero anpassen */
.mod_rocksolid_slider, .content-rocksolid-slider { margin-bottom: 0; }

/* ---------- Inhalt ---------- */
#container {
  max-width: var(--max); margin: 0 auto; padding: 48px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px;
}
#container:not(:has(#right)) { grid-template-columns: minmax(0, 1fr); }
#main .inside, #right .inside { padding: 0; max-width: none; }
#main > .inside > :first-child h1:first-child,
#main .mod_article:first-child > :first-child > h1 { margin-top: 0; }

.mod_article {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px clamp(20px, 4vw, 48px); margin-bottom: 32px;
}

/* Breadcrumb */
.mod_breadcrumb ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.mod_breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); }

/* Links-Listen (Hyperlink-Elemente) */
.content-hyperlink, .ce_hyperlink { margin: 0; }
.content-hyperlink a, .ce_hyperlink a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 500;
}
.content-hyperlink a::before, .ce_hyperlink a::before { content: "→"; color: var(--red); font-weight: 700; }
.content-hyperlink a:hover, .ce_hyperlink a:hover { background: var(--blue-light); }

/* Bilder */
.content-image figure, .ce_image figure { margin: 24px 0; }
.content-image img, .ce_image img, .content-text img { border-radius: 8px; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* Akkordeon */
.content-accordion details, .handorgel { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.content-accordion summary, .handorgel__header button {
  cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy);
  background: none; border: 0; width: 100%; text-align: left; font-size: 1rem;
}

/* ---------- Seitenleiste ---------- */
#right .mod_article, #right > .inside > div {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 24px;
}
#right h2, #right h3 { margin-top: 0; font-size: 1.1rem; }

.btn, #right .content-hyperlink.btn a, .ce_hyperlink.btn a {
  display: block; text-align: center; padding: 14px 20px; border-radius: 10px;
  background: var(--red); color: #fff; font-weight: 650; border: 0;
}
.btn::before, #right .content-hyperlink.btn a::before { content: none; }
.btn:hover, #right .content-hyperlink.btn a:hover { background: var(--red-dark); color: #fff; }

/* ---------- Events & News ---------- */
.mod_eventlist .event, .mod_newslist .layout_latest, .mod_newslist .news {
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.mod_eventlist .event:last-child { border-bottom: 0; }
.mod_eventlist .date, .mod_eventlist time, .mod_newslist time {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .03em;
  color: var(--red); text-transform: uppercase;
}
.mod_eventlist h2, .mod_eventlist h3 { font-size: 1.05rem; margin: 4px 0; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- Formulare ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.widget { margin-bottom: 18px; }
.widget label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
button[type=submit], .submit {
  padding: 12px 28px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--red); color: #fff; font: inherit; font-weight: 650;
}
button[type=submit]:hover, .submit:hover { background: var(--red-dark); }

/* ---------- Footer ---------- */
#footer { background: var(--navy); color: #c5d0dc; font-size: .92rem; }
#footer .inside { padding: 48px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
#footer a { color: #fff; }
#footer a:hover { color: #f3b3b3; }
#footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  #container { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .nav-toggle { display: block; }
  #header .mod_navigation {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  #header.nav-open .mod_navigation { display: block; }
  #header .mod_navigation ul { flex-direction: column; padding: 12px 16px; }
  #header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  #header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 220px; }
  .mod_article { padding: 28px 20px; }
}
/* Hero volle Breite */
.custom .inside, #hero .inside { max-width: none; padding: 0; }
/* Hero Startseite */
.hero-home { min-height: 520px; }
.hero-home h1 { max-width: 760px; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero-home .hero-text > p { max-width: 620px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 700; color: #f3b3b3; margin-bottom: 12px !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { display: inline-block; }
.btn-ghost { background: transparent !important; border: 1px solid rgba(255,255,255,.6) !important; color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12) !important; }
@media (max-width: 900px) { .hero-home { min-height: 420px; } }
/* Hero Lesbarkeit */
.hero-kicker { display: inline-block; background: var(--red); color: #fff !important; padding: 6px 12px; border-radius: 6px; }
.hero-home::after { background: linear-gradient(90deg, rgba(19,38,61,.88) 0%, rgba(19,38,61,.55) 55%, rgba(19,38,61,.15) 100%); }
/* Startseite */
.home .mod_article { background: none; box-shadow: none; padding: 0; }
.home .content-headline, .home .content-text { max-width: 780px; }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 56px; }
.home-card {
  display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; color: var(--text); border-top: 4px solid var(--red);
  transition: transform .2s, box-shadow .2s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(19,38,61,.12); color: var(--text); }
.home-card svg { width: 32px; height: 32px; stroke: var(--red); }
.home-card h3 { margin: 14px 0 6px; }
.home-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.home-card-link { color: var(--blue); font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) { .home-cards { grid-template-columns: minmax(0, 1fr); } }
/* Icons Startseiten-Karten */
.home-card-icon { display: block; width: 32px; height: 32px; background: var(--red); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E"); }
.icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.icon-lock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
/* Startseite: Termine und Mitglieder als Karten */
.home .mod_eventlist, .home .content-gallery, .home .ce_gallery {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px clamp(20px, 4vw, 40px); margin-bottom: 32px;
}
.home .mod_eventlist > h2, .home .mod_eventlist > h3,
.home .content-gallery > h2, .home .ce_gallery > h2 { margin-top: 0; }

/* Logoleiste */
.content-gallery ul, .ce_gallery ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px;
}
.content-gallery figure, .ce_gallery figure {
  margin: 0; height: 90px; padding: 14px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.content-gallery img, .ce_gallery img {
  max-height: 60px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s;
}
.content-gallery figure:hover img, .ce_gallery figure:hover img { filter: none; opacity: 1; }
/* Seitenleiste */
#right .mod_eventlist, #right .sidebar-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 24px;
}
#right .mod_eventlist > h2, #right .mod_eventlist > h3 { font-size: 1.1rem; margin-top: 0; }
.sidebar-box { border-top: 4px solid var(--red); }
.sidebar-box h3 { margin: 0 0 8px; font-size: 1.1rem; }
.sidebar-box p { color: var(--muted); font-size: .95rem; }
.sidebar-box .btn { display: block; text-align: center; }
/* Intern-Button im Header */
#header .inside { justify-content: flex-start; }
#header .mod_navigation { margin-left: auto; }
.header-btn { display: inline-block !important; padding: 10px 20px !important; margin-left: 12px; font-size: .95rem; }
@media (max-width: 900px) {
  .header-btn { order: 2; margin-left: auto; padding: 8px 14px !important; }
  .nav-toggle { order: 3; }
}
/* Footer */
#footer .inside { display: block; padding: 56px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
#footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
#footer ul { display: block; }
#footer li { margin-bottom: 8px; }
#footer p { line-height: 1.7; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
/* Downloads */
.content-download, .ce_download { margin: 0; }
.content-download a, .ce_download a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 500;
}
.content-download a::before, .ce_download a::before {
  content: "PDF"; flex: none; font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  color: #fff; background: var(--red); border-radius: 4px; padding: 3px 6px;
}
.content-download a:hover, .ce_download a:hover { background: var(--blue-light); }
.content-download .size, .ce_download .size { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 400; }

