/* Drupaletics – Modern Revamp
   Design: clean white, Drupal-blue accent, system fonts, responsive */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #0677C9;
  --blue-dark:   #0558A0;
  --blue-light:  #e8f3fb;
  --text:        #1a1a1a;
  --text-muted:  #555;
  --bg:          #ffffff;
  --bg-alt:      #f5f7fa;
  --border:      #dde2e8;
  --radius:      6px;
  --shadow:      0 2px 8px rgba(0,0,0,.08);
  --max:         1100px;
  --font:        system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2rem;   margin-bottom: .75rem; }
h2 { font-size: 1.5rem; margin-bottom: .65rem; }
h3 { font-size: 1.25rem;margin-bottom: .5rem; }
h4 { font-size: 1.1rem; margin-bottom: .4rem; }

p  { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: .25rem; }
blockquote { border-left: 4px solid var(--blue); margin: 1rem 0; padding: .75rem 1.25rem;
             background: var(--blue-light); color: var(--text-muted); font-style: italic;
             border-radius: 0 var(--radius) var(--radius) 0; }
code, pre { font-family: 'Courier New', monospace; background: var(--bg-alt); border-radius: 4px; }
code { padding: .15em .4em; font-size: .9em; }
pre { padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Container ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / Nav ── */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.site-header .container {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: .7rem; padding-bottom: .7rem;
  flex-wrap: wrap;
}
.site-logo {
  font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
  white-space: nowrap;
}
.site-logo:hover { color: #fff; text-decoration: none; opacity: .9; }
.site-logo span { opacity: .7; font-weight: 400; font-size: .85rem;
                  display: block; letter-spacing: 0; }

.nav-primary { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem;
               margin: 0; padding: 0; }
.nav-primary li a {
  display: block; padding: .4rem .8rem;
  color: rgba(255,255,255,.88); border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background .15s;
}
.nav-primary li a:hover,
.nav-primary li a.active { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,.5);
  color: #fff; font-size: 1.2rem; border-radius: var(--radius);
  padding: .3rem .6rem; cursor: pointer; margin-left: auto;
}

/* ── Page hero (sub-pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: .35rem; }
.page-hero .breadcrumb { font-size: .85rem; opacity: .8; }
.page-hero .breadcrumb a { color: #fff; }
.page-hero .breadcrumb a:hover { opacity: .8; }

/* ── Home hero ── */
.home-hero {
  background: linear-gradient(135deg, #0558A0 0%, #0a9bd6 100%);
  color: #fff; text-align: center;
  padding: 5rem 1.25rem 4rem;
}
.home-hero h1 { font-size: 3rem; letter-spacing: -.04em; margin-bottom: .5rem; }
.home-hero p  { font-size: 1.2rem; opacity: .9; max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: .65rem 1.4rem;
  border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.btn-white   { background: #fff;             color: var(--blue); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }

/* ── Layout ── */
.page-body { padding: 2rem 0 3rem; }

.layout { display: grid; gap: 2rem; }
.layout.has-sidebar { grid-template-columns: 1fr 280px; }
.layout.full-width  { grid-template-columns: 1fr; }

/* ── Content cards / nodes ── */
.node-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.node-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.node-card h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.node-card .meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .8rem; }
.node-card .tags { margin-top: .75rem; }
.node-card .tags a {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  border-radius: 2rem; padding: .2rem .7rem; font-size: .78rem; margin: .2rem .1rem;
}
.node-card .read-more { font-weight: 600; font-size: .9rem; }

/* ── Team grid ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; }
.team-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.team-card img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 1rem; border: 3px solid var(--blue-light);
}
.team-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.team-card .role { color: var(--blue); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.team-card p { font-size: .88rem; color: var(--text-muted); }

/* ── Sessions ── */
.session-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start;
}
.session-card h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.session-card .session-meta { font-size: .82rem; color: var(--text-muted); }
.session-votes {
  background: var(--blue); color: #fff; border-radius: var(--radius);
  padding: .3rem .7rem; text-align: center; font-weight: 700; white-space: nowrap;
}
.session-votes small { display: block; font-size: .65rem; font-weight: 400; }
.badge {
  display: inline-block; border-radius: 2rem; padding: .15rem .6rem;
  font-size: .75rem; font-weight: 600; margin: .1rem;
}
.badge-cat { background: #e3f2fd; color: #0d47a1; }
.badge-art { background: #fce4ec; color: #880e4f; }
.badge-diff { background: #e8f5e9; color: #1b5e20; }

/* ── Photos ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.photo-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
              transition: transform .2s; }
.photo-item:hover { transform: scale(1.03); }
.photo-item a { display: block; }
.photo-item img { width: 100%; height: 200px; object-fit: cover; }
.photo-item .caption { padding: .5rem .75rem; font-size: .85rem; font-weight: 500; }

/* ── Sponsors ── */
.sponsor-section { margin-bottom: 2.5rem; }
.sponsor-section h2 { border-bottom: 2px solid var(--blue); padding-bottom: .4rem; margin-bottom: 1.25rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.5rem; }
.sponsor-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.sponsor-card img { max-height: 80px; width: auto; margin-bottom: 1rem; }
.sponsor-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.sponsor-card p { font-size: .88rem; color: var(--text-muted); }

/* ── Forum ── */
.forum-section { margin-bottom: 2rem; }
.forum-section h2 {
  background: var(--blue); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0; font-size: 1rem;
}
.forum-table { width: 100%; border-collapse: collapse; background: var(--bg);
               border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius);
               overflow: hidden; }
.forum-table th, .forum-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.forum-table th { background: var(--bg-alt); font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.forum-table tr:last-child td { border-bottom: none; }
.forum-table tr:hover td { background: var(--bg-alt); }
.forum-count { text-align: right; font-weight: 600; color: var(--blue); }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius);
            margin-bottom: 1rem; overflow: hidden; }
.faq-question {
  background: var(--bg-alt); padding: 1rem 1.25rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { padding: 1rem 1.25rem; }

/* ── Contact form ── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .6rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  padding: .7rem 2rem; border-radius: var(--radius); font-size: 1rem; font-weight: 600;
}
.btn-submit:hover { background: var(--blue-dark); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.sidebar-block .block-title {
  background: var(--blue); color: #fff; padding: .6rem 1rem;
  font-size: .9rem; font-weight: 700;
}
.sidebar-block .block-body { padding: 1rem; }
.sidebar-block ul { margin: 0; padding: 0; list-style: none; }
.sidebar-block li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sidebar-block li:last-child { border-bottom: none; }
.sidebar-block li a { color: var(--text); }
.sidebar-block li a:hover { color: var(--blue); }

/* ── Participants ── */
.participant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 1rem; }
.participant-card { text-align: center; }
.participant-card img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .4rem; border: 2px solid var(--border);
}
.participant-card a { font-size: .85rem; font-weight: 500; display: block; }

/* ── Pager ── */
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-block; padding: .4rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .9rem;
}
.pager a:hover { background: var(--blue-light); }
.pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Info / notice boxes ── */
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.notice-info { background: var(--blue-light); border-left: 4px solid var(--blue); }
.notice-success { background: #e8f5e9; border-left: 4px solid #4caf50; }
.notice-warn { background: #fff8e1; border-left: 4px solid #ffc107; }

/* ── Tables ── */
.content-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.content-table th, .content-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.content-table th { background: var(--bg-alt); font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.content-table tr:last-child td { border-bottom: none; }
.content-table tr:hover td { background: var(--bg-alt); }

/* ── Page navigation (book nav) ── */
.page-nav { display: flex; justify-content: space-between; margin-top: 2rem;
            padding-top: 1.25rem; border-top: 1px solid var(--border); }
.page-nav a { font-weight: 600; font-size: .9rem; }

/* ── Footer ── */
.site-footer {
  background: #111; color: rgba(255,255,255,.7);
  padding: 2rem 0; margin-top: 4rem;
  font-size: .88rem;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-note { opacity: .6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .layout.has-sidebar { grid-template-columns: 1fr; }
  .nav-primary { display: none; flex-direction: column; width: 100%; padding: .5rem 0; }
  .nav-primary.open { display: flex; }
  .nav-toggle { display: block; }
  .home-hero h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .site-footer .container { flex-direction: column; text-align: center; }
  h1 { font-size: 1.6rem; }
  .session-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sponsor-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
}

/* ── Drupal content compatibility (old class names still in HTML) ── */
.content-area table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.content-area th, .content-area td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.content-area th { background: var(--bg-alt); font-weight: 700; color: var(--text-muted); font-size: .85rem; }
.content-area table caption h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; }

.content-area .node, .content-area .node-blog {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.content-area .node-title a { color: var(--text); font-size: 1.2rem; font-weight: 700; }
.content-area .node-title a:hover { color: var(--blue); }
.content-area .node-body, .content-area .node-info .submitted { color: var(--text-muted); font-size: .88rem; }
.content-area .node-kategorie a, .content-area .node-tags a {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  border-radius: 2rem; padding: .15rem .6rem; font-size: .78rem; margin: .1rem;
}
.content-area .submitted, .content-area .meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.content-area .links { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; gap: .75rem; }
.content-area .links li { margin: 0; }

.content-area .views-exposed-form {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end;
}
.content-area .views-exposed-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .25rem; }
.content-area select, .content-area input[type="text"], .content-area input[type="submit"] {
  padding: .45rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .9rem; background: var(--bg);
}
.content-area input[type="submit"] {
  background: var(--blue); color: #fff; border-color: var(--blue); cursor: pointer; font-weight: 600;
}
.content-area input[type="submit"]:hover { background: var(--blue-dark); }

.content-area .view-header { margin-bottom: 1.25rem; }
.content-area .item-list ul { list-style: none; margin: 0; padding: 0; }
.content-area .item-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.content-area .item-list li:last-child { border-bottom: none; }

/* Forum */
.content-area table#forum-0, .content-area .forum-table {
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.content-area table#forum-0 thead { background: var(--blue); color: #fff; }
.content-area table#forum-0 thead th { color: #fff; background: transparent; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; opacity: .85; }
.breadcrumb a { color: #fff; }
.breadcrumb a::after { content: ' › '; margin: 0 .3em; }
.breadcrumb a:last-child::after { content: ''; }

/* Book navigation */
.book-navigation { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: .5rem; }
.book-navigation a { font-weight: 600; font-size: .9rem; }

/* General form */
textarea { font-family: var(--font); }
.description { font-size: .82rem; color: var(--text-muted); margin-top: .25rem; }
