/* =========================================================
   ANIMALoffice Service-Portal
   Corporate Identity nach animal-office.at (Hauptseite):
   – Grün   #93c248  (Primär / Akzent)
   – Navy   #262d37  (Text / Überschriften / Footer)
   – Fonts  Sora (Headlines) + Open Sans (Text)
   ========================================================= */

:root {
  --green:       #93c248;
  --green-dark:  #7ba838;
  --green-soft:  #eef5e2;
  --green-tint:  #f5f9ee;
  --ink:         #262d37;
  --ink-soft:    #32373c;
  --muted:       #6b7280;
  --line:        #e4e7ea;
  --bg:          #ffffff;
  --bg-alt:      #f7f9fa;
  --warn:        #c0561f;
  --radius:      8px;
  --shadow:      0 6px 22px rgba(38,45,55,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Sora", "Open Sans", sans-serif;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: 2.1rem; margin: 0 0 .8rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.18rem; margin: 1.5rem 0 .4rem; }

img { max-width: 100%; height: auto; }

/* ---------- Top-Leiste (grün) ---------- */

.topbar { background: var(--green); color: #fff; font-size: .9rem; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 44px; flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .ico { opacity: .9; margin-right: 6px; }

.topbar-search { display: flex; align-items: center; }
.topbar-search input {
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .85rem;
  min-width: 190px;
}
.topbar-search input::placeholder { color: rgba(255,255,255,.85); }
.topbar-search input:focus { outline: none; background: rgba(255,255,255,.28); }

/* ---------- Header (weiß) ---------- */

.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(38,45,55,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 50px; width: auto; display: block; }

.nav-toggle {
  display: none; font-size: 1.5rem; background: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 12px; cursor: pointer; color: var(--ink);
}

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; padding: 30px 15px;
  color: var(--ink); font-weight: 600; font-size: .98rem;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.main-nav a:hover { color: var(--green-dark); text-decoration: none; }
.main-nav > ul > li.active > a { color: var(--green-dark); border-bottom-color: var(--green); }

.sub-nav {
  list-style: none; margin: 0; padding: 0;
  display: none; position: absolute; top: 100%; left: 0; width: 230px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green);
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  z-index: 110;
}
.main-nav li.has-sub:hover .sub-nav { display: block; }
.sub-nav li { display: block; width: 100%; }
.sub-nav a { display: block; padding: 12px 18px; border: 0; margin: 0; text-align: left; white-space: nowrap; }
.sub-nav li.active a, .sub-nav a:hover { background: var(--green-soft); color: var(--green-dark); }

.nav-cta {
  margin-left: 8px; padding: 10px 20px !important;
  border: 2px solid var(--green) !important; border-radius: 24px;
  color: var(--green-dark) !important; font-weight: 700;
}
.nav-cta:hover { background: var(--green); color: #fff !important; }

/* ---------- Layout ---------- */

main.wrap { padding-top: 36px; padding-bottom: 52px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 40px; align-items: start;
}

.page-intro { max-width: 820px; color: #4b5563; font-size: 1.02rem; }

/* ---------- Sidebar ---------- */

.sidebar-box {
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--green); border-radius: var(--radius);
  padding: 20px; font-size: .93rem; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-box h3 { margin-top: 0; font-size: 1.05rem; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.sidebar-box li:last-child { border-bottom: 0; }
.cat-count { color: var(--muted); font-size: .85em; }

/* ---------- News-Karten ---------- */

.post-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.post-topper img { display: block; width: 100%; }
.post-body { padding: 22px 26px 26px; }

.post-meta {
  font-size: .8rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem;
}
.post-meta a { color: var(--green-dark); }

.post-label {
  display: inline-block; background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; border-radius: 4px; padding: 3px 10px; margin-bottom: .6rem;
}
.post-card h2 { margin: .1rem 0 .6rem; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--green-dark); text-decoration: none; }

.read-more { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--green-dark); }
.read-more::after { content: " →"; }

.post-tags { margin-top: 1.3rem; font-size: .85rem; color: var(--muted); }
.post-tags span {
  display: inline-block; background: var(--green-tint); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 9px; margin: 0 6px 6px 0;
}

.post-content img { border-radius: var(--radius); border: 1px solid var(--line); }
.post-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.post-content th { background: var(--green-soft); }
.post-content blockquote {
  margin: 1rem 0; padding: .6rem 1.1rem; border-left: 4px solid var(--green); background: var(--bg-alt);
}
.post-content code {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; font-size: .9em;
}

/* Pagination */
.pagination { display: flex; gap: 7px; flex-wrap: wrap; margin: 26px 0; }
.pagination a, .pagination span {
  display: inline-block; min-width: 40px; text-align: center; padding: 7px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.pagination a:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

.back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.back-link::before { content: "← "; }

/* Suche */
.search-form { display: flex; gap: 9px; margin: 0 0 26px; }
.search-form input[type=text] {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: .96rem; font-family: inherit;
}
.search-form input[type=text]:focus { outline: none; border-color: var(--green); }
.search-form button {
  padding: 11px 22px; background: var(--green); color: #fff; border: 0;
  border-radius: var(--radius); font-weight: 700; cursor: pointer; font-family: inherit;
}
.search-form button:hover { background: var(--green-dark); }

/* ---------- Downloadcenter-Karten ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 26px; }
.dc-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.dc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(38,45,55,.13); text-decoration: none; }
.dc-card .dc-icon { font-size: 2rem; margin-bottom: 12px; }
.dc-card h3 { margin: 0 0 .5rem; color: var(--ink); }
.dc-card p { margin: 0; color: #4b5563; font-size: .94rem; flex: 1; }
.dc-card .dc-go { margin-top: 16px; font-weight: 700; color: var(--green-dark); }

/* ---------- Tabs ---------- */

.tabs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 22px; }
.tab-menu {
  display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #fff;
  position: sticky; top: 104px; box-shadow: var(--shadow);
}
.tab-menu button {
  text-align: left; padding: 12px 15px; background: #fff; border: 0;
  border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.tab-menu button:last-child { border-bottom: 0; }
.tab-menu button:hover { background: var(--green-soft); }
.tab-menu button.active { background: var(--green); color: #fff; font-weight: 700; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel > :first-child { margin-top: 0; }

/* ---------- Download-Tabellen ---------- */

.dl-table { width: 100%; border-collapse: collapse; background: #fff; margin: 12px 0 30px; }
.dl-table th, .dl-table td { border: 1px solid var(--line); padding: 11px 13px; vertical-align: middle; text-align: left; }
.dl-table th { background: var(--green); color: #fff; font-weight: 700; }
.dl-table tr:nth-child(even) td { background: var(--bg-alt); }
.dl-table td.center, .dl-table th.center { text-align: center; width: 96px; }
.dl-table img { vertical-align: middle; }
.os-icon { font-weight: 800; font-size: .85rem; letter-spacing: .05em; }

a.dl-btn {
  display: inline-block; background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 6px 16px; font-size: .85rem; font-weight: 700;
}
a.dl-btn:hover { background: var(--green-dark); text-decoration: none; }
.dl-table p.smallfont, .dl-table p.SmallFont { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Hinweisboxen ---------- */

.notice { border-radius: var(--radius); padding: 13px 17px; margin: 15px 0; font-size: .96rem; border: 1px solid; }
.notice-warn { background: #fbf0e9; border-color: #edcdbb; color: var(--warn); }
.notice-info { background: var(--green-soft); border-color: #cfe2ae; color: var(--green-dark); }

/* ---------- History ---------- */

.history h3 { border-bottom: 2px solid var(--green); padding-bottom: 5px; margin-top: 2.2rem; }
.history dt { font-weight: 700; margin-top: .8rem; color: var(--ink); }
.history dd { margin: 0 0 .35rem 0; color: #4b5563; }

/* ---------- Videos ---------- */

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; margin-top: 22px; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.video-card h3 { margin-top: 0; }
.video-card p { font-size: .94rem; color: #4b5563; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b9c0cb; margin-top: 48px; font-size: .93rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand-logo { height: 46px; margin-bottom: 14px; }
.site-footer h3 {
  color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--green); display: inline-block; padding-bottom: 5px;
}
.site-footer a { color: #a9e06a; }
.site-footer a:hover { color: #fff; }
.site-footer h3 a { color: #fff; }
.site-footer h3 a:hover { color: var(--green); text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid #3a414c; padding-top: 15px; padding-bottom: 20px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #a9e06a; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .layout, .tabs { grid-template-columns: 1fr; }
  .tab-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .tab-menu button { border-bottom: 0; flex: 1 1 auto; text-align: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); margin: 0; }
  .main-nav > ul > li.active > a { border-bottom-color: var(--line); }
  .nav-cta { margin: 10px 0; text-align: center; }
  .sub-nav { display: block; position: static; border: 0; box-shadow: none; padding-left: 16px; }
  .topbar-search { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
